java2db

Delete entry from OpenLdap with java JNDI



Delete entry from OpenLdap is nothing but removing specific directory from the OpenLdap active directory structure .

Requirements to delete entry 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).

Delete entry from OpenLdapAuthentication requirement :

……Delete entry from OpenLdap OpenLDAP  IP and  PORT .

……Delete entry from OpenLdap Login DN  ,  Password .

Delete entry from OpenLdap

From the above active directory structure we are going to delete the entry of uid=1145.

Example Code to delete entry from OpenLdap :

Execution Result:

 

Update or edit entry in OpenLdap Connect to the OpenLdap server with valid credentials.

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 (login DN).

Connect to the OpenLdap destroySubcontext(“uid=1145,ou=People,dc=maxcrc,dc=com“) method will delete the entry

……(uid=1145) from OpenLdap active directory structure .
Note : Specify the exact location of the entry that you need to be delete.




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



^ <