java2db

Connect to the OpenLdap with java JNDI



OpenLDAP is a free software and no additional jar files require to connect to the OpenLdap using java.

Requirements to Connect to the OpenLdap  :

Connect to the OpenLdapSoftware requirement:

……Connect to the OpenLdap OpenLDAP (Download OpenLDAP).

……Connect to the OpenLdap Java  (Download Java).

Connect to the OpenLdapAuthentication requirement :

……Connect to the OpenLdap OpenLDAP  IP and PORT .

……Connect to the OpenLdap Login DN , Password .

 

Example to connect to the OpenLdap :

Execution Result:

From the above example code :

Connect to the OpenLdap “ldap://localhost:389” is the Ip(ldap://localhost) and port(389) of  the OpenLDAP server.If the

…….server resides remotely ,provide the exact IP (Ex: 10.180.9.21)  and port (Ex:389).
Connect to the OpenLdap Connection type is “simple” ,that means, it will take the plain text as a password .
Connect to the OpenLdapcn=manager,dc=maxcrc,dc=com” is the  distinguished name (It is the default DN).
Connect to the OpenLdap The password is “password“.(That had given at OpenLdap installation).
Connect to the OpenLdap Add all the above values to a HashTable or Properties , pass it to InitialDirContext method.




Related Posts :
Delete entry from OpenLdap with java JNDI
Search or select all entries from OpenLdap specific dir with java JNDI
Search or select entry from OpenLdap with java JNDI
Update or edit entry in OpenLdap with java JNDI
Add new entry in OpenLdap using java JNDI
Select more than one entry from LDAP directory using java JNDI
Select an entry from LDAP using java JNDI
Update or modify LDAP entry using java JNDI
   [will not be published]



^ <