directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lécharny <elecha...@gmail.com>
Subject Re: ApacheDS Configuration : Bind Error Messages
Date Thu, 09 Nov 2017 05:08:57 GMT


Le 09/11/2017 à 03:40, Sunil Kalahasti a écrit :
> Hello every one,
>
>
> I am trying to provide user friendly authentication error messages.
>
>
> It seems like for all authentication issues, ApacheDS throws common error code with 49,
Invalid Credentials.
>
>
> Could anyone please let me know if there is a way to enable user friendly bind error
messages like Account Locked, Password Expired etc? Thanks in advance.

Those kind of information can be get by using the PasswordPolicy control
when binding. The response will contain the control with the associated
error message, which can be one of :

       error   [1] ENUMERATED {
           passwordExpired             (0),
           accountLocked               (1),
           changeAfterReset            (2),
           passwordModNotAllowed       (3),
           mustSupplyOldPassword       (4),
           insufficientPasswordQuality (5),
           passwordTooShort            (6),
           passwordTooYoung            (7),
           passwordInHistory           (8) } OPTIONAL }

-- 
Emmanuel Lecharny

Symas.com
directory.apache.org


Mime
View raw message