Hello,
I do bind to AD with GenericSASLBindRequest, using Kerberos token.
byte[] kerberosToken = getKerberosToken(user, password);
ASN1OctetString credentials = new ASN1OctetString(kerberosToken);
GenericSASLBindRequest genericSASLBindRequest = new GenericSASLBindRequest(null, "GSS-SPNEGO", credentials, null);
bindResult = ldapConnection.bind(genericSASLBindRequest);
Bind succeeds!!!
However, when I try to do search on the same connection, search still goes without any Kerberos and obviously AD doesn't respond.
What should I do to force connection to use Kerberos on search requests?
Thanks in advance,
Sergey
|