java2db

Search or select all entries from OpenLdap specific dir with java JNDI



Set the search filter is null , specify the Distinguished Name to Search or select all entries from OpenLdap active directory structure.

Requirements to Search or select all entries from OpenLdap  :

Update or edit entry in OpenLdapSoftware requirement:

……Update or edit entry in OpenLdap OpenLDAP (Download OpenLDAP).

……Update or edit entry in OpenLdap Java  (Download Java).

Search or select all entries from OpenLdapAuthentication requirement :

……Search or select all entries from OpenLdap OpenLDAP  IP and PORT .

……Connect to the OpenLdap Login DN , Password .

 

Search or select all entries from OpenLdap

From the above active directory structure, total five entries are there in the directory called  ou=People.

Example Code to Search or select all entries from OpenLdap :

Execution Result:

 

Search or select all entries from OpenLdap Connect to the OpenLdap server with valid credentials(line number 22 to 34).

Search or select all entries from OpenLdap “ldap://localhost:389” is the Ip(ldap://localhost) and port(389) of  the OpenLDAP server.If the

……..server resides at remote location ,provide the exact IP (Ex: 10.180.9.21)  and port (Ex:389).
Search or select all entries from OpenLdap Connection type is “simple” ,that means, it will take the plain text as a password .
Search or select all entries from OpenLdapcn=manager,dc=maxcrc,dc=com” is the  distinguished name (login DN).
Search or select all entries from OpenLdapou=People,dc=maxcrc,dc=com”  is the search DN.




Related Posts :
SELECT statement to get records from the table in sql
Delete entry from OpenLdap 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
Connect to the OpenLdap with java JNDI
Select more than one entry from LDAP directory using java JNDI
Select an entry from LDAP using java JNDI
   [will not be published]



^ <