directory-api mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Murawski <stm...@gmail.com>
Subject Re: Cannot bind to Active Directory when Password has Umlauts
Date Thu, 18 Sep 2014 13:43:06 GMT
Hi,

sorry for the previous message.
The error was somewhere else.

KInd regards,
Stefan

2014-09-18 14:34 GMT+02:00 Stefan Murawski <stmura@gmail.com>:

> Hi,
>
> I am using M20 of the Api with the following code:
>
> BindRequest bindRequest = new BindRequestImpl();
> bindRequest.setSimple(true);
> bindRequest.setName(user);
> bindRequest.setCredentials(password);
> BindResponse resp = connection.bind(bindRequest);
> if (resp == null) {
> throw new LdapException("Response is NULL");
> } else if (resp.getLdapResult().getResultCode() != ResultCodeEnum.SUCCESS)
> {
> throw new LdapException("Error: "
> + resp.getLdapResult().getResultCode());
> }
>
> If the user has a Password with Umlauts
> like: V3YtF3HiV3YtF3HiV3YtF3HiöäüV3YtF3HiV3YtF3Hi
>
> I will get the following Exception:
> MessageType : BIND_RESPONSE
> Message ID : 1
>     BindResponse
>         Ldap Result
>             Result code : (INVALID_CREDENTIALS) invalidCredentials
>             Matched Dn : ''
>             Diagnostic message : '80090308: LdapErr: DSID-0C0903A9,
> comment: AcceptSecurityContext error, data 52e, v1db1
>
> I also tried: bindRequest.setCredentials(Strings.getBytesUtf8(password));
> and using M24 to no avail.
>
> Looking for clues and help.
>
> Thank you!,
> Stefan
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message