Modifying an Existing Entry

The preceding section outlined the steps necessary to add a new entry to the directory. This section will focus on altering entries that are already in the directory. To modify a single attribute of an entry, we use an LDAPModification object. We modify multiple attributes by using an LDAPModificationSet. Once the LDAPModification object has been built, the changes are written back via the modify method of LDAPConnection. Modifying an attribute value can include adding a new value, changing a value, and/or removing a value. After a brief look at the general procedure for modifying an entry, we will examine each of these cases.

Summary of Steps to Modify an Existing Entry

Modifying an entry in the directory requires ...

Get LDAP Programming with Java™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.