[Date Prev][Date Next]
Account Locked message?
Hello. I've been working on a system with low security requirement and
high usability requirement. I uses ppolicy overlay and enabled
ppolicy_use_lockout to avoid people gets confused when they failed to
login too many times:
Restart openldap server and test again by trying to bind with the wrong
password enough times (in my case, 20 times). Then try to bind with the
ldapsearch -H ldap://gtz.ods.org/ -xD ou=æèç,st=jiangxi,o=LGOP -W
ldap_bind: Invalid credentials (49)
Here I still got error 49. I thought I could get something like "Account
Locked" and a different error code. According to man page:
A client will always receive an LDAP InvalidCredentials response
when Binding to a locked account. By default, when a Password
Policy control was provided on the Bind request, a Password Polâ
icy response will be included with no special error code set.
This option changes the Password Policy response to include the
AccountLocked error code. Note that sending the AccountLocked
error code provides useful information to an attacker; sites
that are sensitive to security issues should not enable this
Well I checked related RFC (http://www.ietf.org/rfc/rfc4511.txt) and
didn't find "Account Locked error code". In fact,
listed a list of error code, non of them is "Account Locked" error code.
Is my setting working? How can I tell? The web application needs to tell
if an account is locked, this to improve user usability;
Thanks a lot in advance!
Huateng Tower, Unit 1788
Jia 302 3rd area of Jinsong, Chao Yang
Tel: +86 (10) 8773 0650 ext 603
Mobile: 135 9950 2413