Closed GoogleCodeExporter closed 9 years ago
Attached is a patch that implements more correct checking.
Two additional items appear in this patch - they were useful to us but might
not be implemented in an ideal manner.
1. Try to retrieve minimum password length value from the AD domain attribute
minPwdLength instead of using the value explicitly defined PWM.
implemented in UserStatusHelper.java and Validator.java
2. An added check in PasswordUtility.java that probably should be in LDAPChai
related to testing for a password violation return code 19 from AD and
returning a more user friendly error message.
Original comment by oner...@gmail.com
on 3 Feb 2011 at 2:42
Attachments:
Nice patches! Thanks for contributing!
For #1, I have added your domain checking logic to the password policy reader
in chai:
http://code.google.com/p/ldapchai/source/browse/trunk/src/com/novell/ldapchai/im
pl/ad/entry/UserImpl.java#60
For #2, I have added the error code translation to the AD error map in chai:
http://code.google.com/p/ldapchai/source/browse/trunk/src/com/novell/ldapchai/im
pl/ad/ADErrorMap.java#75
I've also done some other chai error handler refactoring that should get things
a littler closer to being flexible enough to handle non-edirectory errors
correctly. Both of these methods are pretty sparse though, contributions
welcome.
The remainder of the patch around Validator.java should be added. Please test
the patches and confirm they are working as expected here.
Thanks again for supplying a patch!
Original comment by jrivard
on 7 Feb 2011 at 5:17
Forgot to mention the changes are in svn revision 105.
Original comment by jrivard
on 7 Feb 2011 at 5:20
Original comment by jrivard
on 21 Mar 2011 at 3:56
Original issue reported on code.google.com by
oner...@gmail.com
on 3 Feb 2011 at 1:59