I have LDAP schema where are users. I need remove one attribute named "notify" which have values: phone number or mail or remove attribute from user. I found method
LDAPConnection myCon = new LDAPConnection("localhost",389);
myCon.delete("uid=test1, ou=People, o=domain.com, o=isp");
but this remove whole user and i need remove only one attribute "notifyTo" of this user. I need remove whole attribute not only its value.
Thanks for reply
You need to call modify method on LDAPConnection class :-)
From the javadocs:
Example code from javadocs:
This sample is for removing one value of one of your entry's attributes. You need to delete all values :-)