ldapsearch, Kerberos and Active Directory
Trying to use -Y GSSAPI
when ldapsearching Active Directory and getting:
SASL/GSSAPI authentication started
ldap_sasl_interactive_bind_s: Local error (-2)
additional info: SASL(-1): generic failure: GSSAPI Error: An invalid name was supplied (Success)
Does the host’s IP address you try to connect to not resolve back to it’s name, for example:
ldapsearch -H ldap://gc.local/
gc.local has address 192.168.0.1
1.0.168.192.in-addr.arpa domain name pointer foo.local.
foo.local has address 192.168.0.1
Try using the other name: ldapsearch -H ldap://foo.local/