Page created: 4 Feb 2020
|
Page updated: 22 Jul 2020
| 1 min read
Product PingDirectory 8.1 Directory Capability Product documentation Content Type Administration User task IT Administrator Administrator Audience Software Deployment Method
-
Use the ldapsearch tool to locate a specific entry.
$ bin/ldapsearch -h server.example.com -p 389 -D "cn=admin,dc=example,dc=com" \ -w password -b dc=example,dc=com "(uid=user.2004)"
-
Use the ldapmodify command to change attributes from the
command line. Specify the modification using the
changetype:modify
directive, and then specify which attributes are to be changes using the add and replace directive.In this example, we add thepostOfficeBox
attribute, change the mobile and telephone numbers of a specific user entry. ThepostOfficeBox
attribute must be present in your schema to allow the addition. The three changes are separated by a dash ("-"). When you are done typing, you can press CTRL-D (Unix EOF escape sequence) twice or CTRL-Z (Windows) to process the request.$ bin/ldapmodify -h server.example.com -p 389 -D "cn=admin,dc=example,dc=com" -w password dn: uid=user.2004,ou=People,dc=example,dc=com changetype: modify add: postOfficeBox postOfficeBox: 111 - replace: mobile mobile: +1 039 831 3737 - replace: telephoneNumber telephoneNumber: +1 097 453 8232