Pages

Ads 468x60px

Labels

Wednesday, July 25, 2012

Java: Authentication and Connection with LDAP using JNDI

This will help you to connect with LDAP using JNDI (Java Naming and Directory Interface). I used this to connect with IBM Tivoli Directory Server (TDS). The connection with LDAP will be on SSL and you can modify it for non SSL too. You can also authenticate a user of IBM Tivoli Directory Server (TDS). If user exists then he will be authenticated otherwise the given authentication method will throw an exception. I have used all default values for the connection, you should change all values according your environment settings.