3.2. Managing Directory Entries Using the Web Console
You can add, edit, rename, and delete LDAP entries using the web console.
3.2.1. Adding an LDAP Entry Using the Web Console Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
You can use the LDAP Browser in the web console to search for entries in the Directory Server databases.
You can create the following entries using the web console:
- users
- groups
- roles
- organizational units (OUs)
- custom entries
For example, you want to create a POSIX user
cn=John Smith,ou=people,dc=example,dc=com with a password.
Prerequisites
- You are logged in to the Directory Server web console.
- The parent entry exists. For example,
ou=people,dc=example,dc=com.
Procedure
- In the web console, open the menu to reveal the list of existing suffixes.
- Using the or view, expand the parent entry
ou=people,dc=example,dc=comunder which you want to create a user. - Click the and select to open the wizard window.
- Select the option and click .
- For the user entry, select type and click .
- Optional: Select additional attributes, such as
userPassword, and click . You can view all selected attributes by expanding the drop-down list near the step name. - Set a value for each attribute:
- Click on the pencil button of the attribute and add a value.Note that a separate menu opens when you set the
userPasswordvalue. The value is filled with asterisks (*) to hide the plain text. - Click on the check button to save changes.
- Optional: Set an additional attribute value by clicking the
. - After you have set all values, click .
- Verify that all entry details are correct and click . Directory Server creates the entry with mandatory attributes for a POSIX user and sets the password to it. You can click to modify entry settings, or click to cancel the entry creation.
- View the and click .
Verification
- Navigate to
. - Select the database suffix that contains the entry, such as
dc=example,cd=com. - Enter your search criteria in the field, such as
John, and press . - Find the entry you recently created in the list of entries.
3.2.2. Editing an LDAP Entry Using the Web Console Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
You can modify a directory entry using the web console. This example modifies a user entry
cn=John Smith,ou=people,dc=example,dc=com by:
- adding telephone numbers
556778987and556897445. - adding email
jsmith@example.com. - changing the password.
Prerequisites
You are logged into the Directory Server web console.
Procedure
- In the web console, open the menu to reveal the list of existing suffixes.
- Using the or view, expand the entry you want to edit, such as
cn=John Smith,ou=people,dc=example,dc=com. - Click the and select to open the wizard window.
- Optional: In the step, add or delete object classes for the entry. Click .
- In the step, add
telephoneNumberandmailattributes to the entry and click . If you do not see an attribute you want to add to the entry it means that you did not add corresponding object class in the previous step.Note
In this step, you can not delete mandatory attributes of the selected object classes. - In the step, set
telephoneNumberto556778987and556897445,mailtojsmith@example.comand changeuserPasswordvalue:- Click on the pencil button of the attribute and add or change a new value.
- Click on the check button to save changes.
- Optional: Set an additional value to an attribute by clicking the
. The telephoneNumberattribute has two values in this example. When you set all values, click .
- Review your changes and click .
- To edit the entry, click . You can click to modify entry settings, or click to cancel the entry editing.
- View the and click .
Verification
- Expand the entry details and view the new changes appear among the entry attributes.
3.2.3. Renaming and Relocating an LDAP Entry or Subtree Using the Web Console Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
You can rename or relocate a directory entry or a subtree using the web console. This example renames and relocates the entry
cn=John Smith,ou=people,dc=example,dc=com to cn=Tom Smith,ou=clients,dc=example,dc=com.
Prerequisites
You are logged into the Directory Server web console.
Procedure
- In the web console, open the menu to reveal the list of existing suffixes.
- Using the or view, expand the entry you want to modify, such as
cn=John Smith,ou=people,dc=example,dc=com. - Click the and select to open the wizard window.
- In the step:
- Set a new value
Tom Smithfor the naming attributecnand click . - Optional: Select another naming attribute from the drop-down menu.
- Optional: In case you want to delete the old entry and create a new one using the new RDN, check .
- In step, select the parent entry for the new location, and click .
- Review changes you made to the entry and click .
- If the entry details are correct, click . You can click to make other changes to the entry or click to cancel the entry modification.
- View and click .
Verification
- Expand the entry details and review the updated entry.
3.2.4. Deleting an LDAP Entry Using the Web Console Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
You can delete a directory entry or a subtree using the web console. This example deletes the entry
cn=Tom Smith,ou=clients,dc=example,dc=com.
Prerequisites
You are logged into the Directory Server web console.
Procedure
- In the web console, open the menu to reveal the list of existing suffixes.
- Using the or view, expand the entry you want to delete, such as
cn=Tom Smith,ou=clients,dc=example,dc=com. - Click the and select to open the wizard window.
- Click after you review the data about the entry you want to delete.
- In the step, toggle the switch to the position and click . You can click to cancel the entry deletion.
- View the and click .
Verification
- Navigate to
. - Select the suffix where the entry previously existed, such as
dc=example,cd=com. - Enter your search criteria in the field, such as
Tom, and press . - Verify that the deleted entry is no longer present.