Thursday, February 9, 2012

LDAP Password Change Validation

Our QA team was in dilemma today: there was a HTML form which collected change password request, and updated the user password in LDAP on success scenario. There was no login form corresponding to this to validate if the password has been successfully updated in LDAP. To help the team, I developed a quick tool to test the LDAP by binding the user to it. The tool source is available here: http://code.google.com/p/wiztools/source/browse/#svn%2Fldap-auth-validator%2Ftrunk

Usage:

$ java -jar ldap-auth-validator-1.0-SNAPSHOT-jar-with-dependencies.jar \
                                    -u <ldap://host:port/base.dn> [user-cn]

On executing the command, the tool will ask the user to input password. If the password allows the user to bind to the ldap, SUCCESS output will be printed.

No comments: