On 09/20/2016 10:08 AM, Sergey Klyushin wrote:
> 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
Since you asked the same question on the discussion forum at
https://sourceforge.net/p/ldap-sdk/discussion/1001257/thread/cf9a5e72/?limit=25,
I went ahead and responded to it there.
Neil
|