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