Hi Matt,
If you’re attempting to authenticate a user against an LDAP-compliant directory (such as Active Directory), you should be using an LDAP BIND operation to accomplish this. Rather than attempting to retrieve the password from your directory server, you should authenticate (or bind) to the directory using the DN of the user logging in.
Typically, we first perform an LDAP BIND as a user with the ability to search the entire user directory (many LDAP servers impose search limitations for anonymous users). We then execute an LDAP SEARCH in order to confirm existence of the account and locate the DN of the user attempting to log in. Finally we perform a second LDAP BIND, this time as the individual user. A failed bind will indicate the authentication was unsuccesful.
Remember, a directory server can store user passwords using any encryption mechanism they desire. Most of them use one-way hash algorithms that prevent the actual passwords from being decrypted.
The LDAP BIND is the way to go. I’ve provided a link to a tutorial on the Sun website which you may find helpful:
[url=“LDAP Authentication”]JDK 19 Documentation - Home
Regards,
-jmh
#Integration-Server-and-ESB#webMethods#Flow-and-Java-services