run ldapsearch e.g. LD_LIBRARY_PATH=/usr/lib/:$LD_LIBRARY_PATH ldapsearch -H ldap://ldap.edt.org -D 'dc=edt,dc=org' -Y GSSAPI -v
Possible error msgs if various packages/etc not installed
NO cyrus-sasl-devel error msg on compile time:
ldapsearch: not compiled with SASL support
NO cyrus-sasl-gssapi or cyrus-sasl-devel error msg:
ldap_sasl_interactive_bind: Unknown authentication method (-6)
additional info: SASL(-4): no mechanism available: No worthy mechs found
NO kinit ran to login, error msg:
ldap_sasl_interactive_bind: Local error (-2)
additional info: SASL(-1): generic failure: GSSAPI Error: Unspecified GSS failure. Minor code may provide more information (No Kerberos credentials available (default cache: FILE:/tmp/krb5cc_0))
Example building/using ldapsearch in kerberos env:
Example env: https://github.com/antagme/Documentation_Project/blob/master/example1fast.md
Creating container to add with our own ldap/etc build...
docker build -f Dockerfile.build -t ldapdev .
docker run -it --rm --name ldapdev --net ldap --ip 172.18.0.4 ldapdev
yum install -y cyrus-sasl-gssapi krb5-workstation
kinit user01
(password kuser01)LD_LIBRARY_PATH=/usr/lib/:$LD_LIBRARY_PATH ldapsearch -H ldap://ldap.edt.org -D 'dc=edt,dc=org' -Y GSSAPI -v
Possible error msgs if various packages/etc not installed
NO cyrus-sasl-devel error msg on compile time: ldapsearch: not compiled with SASL support
NO cyrus-sasl-gssapi or cyrus-sasl-devel error msg: ldap_sasl_interactive_bind: Unknown authentication method (-6) additional info: SASL(-4): no mechanism available: No worthy mechs found
NO kinit ran to login, error msg: ldap_sasl_interactive_bind: Local error (-2) additional info: SASL(-1): generic failure: GSSAPI Error: Unspecified GSS failure. Minor code may provide more information (No Kerberos credentials available (default cache: FILE:/tmp/krb5cc_0))