LDAP-UX Client Services B.05.01 Administrator Guide for HP directory servers and Windows ADS
Perform the following ldapugmod command for the user entry, mlee:
./ldapugmod -t passwd -c "Mackey user entry" mlee
This command replaces all instances of description with the single comment, Mackey user
entry. The result of the mlee entry is as follows:
dn: uid=mLou,ou=people,dc=example,dc=com
cn: Mackey Lee
uid: mlee
uidNumber: 2200
gidNumber: 212
homeDirectory: /home/mlee
loginShell: /usr/bin/ksh
gecos: Mark Lee,New York,555-666-6000
description: Mackey user entry
Example 2
In this example, the entry in an LDAP directory is as follows:
dn: uid=slou,ou=people,dc=example,dc=com
cn: Smith Lou
cn: Smitta Lou
uid: slou
uidNumber: 2500
gidNumber: 120
homeDirectory: /home/slou
loginShell: /usr/bin/ksh
gecos: Smith Lou,San Jose,+1 555-510-5000
Perform the following ldapugmod command for the user entry, slou:
./ldapugmod -t passwd -R "cn=Smitta Lou" slou "cn=Smitty Lou"
The preceding command removes the instance of Smitta Lou and replaces it with the value,
Smitty Lou. The resulting slou entry is as follows:
dn: uid=slou,ou=people,dc=example,dc=com
cn: Smith Lou
cn: Smitty Lou
uid: slou
uidNumber: 2500
gidNumber: 120
homeDirectory: /home/slou
loginShell: /usr/bin/ksh
gecos: Smith Lou,San Jose,+1 555-510-5000
Example 3
In this example, the entry in an LDAP directory is as follows:
dn: uid=jscott,ou=people,dc=example,dc=com
cn: John Scott
cn: Joe Scott
uid: jscott
uidNumber: 2500
gidNumber: 120
homeDirectory: /home/jscott
loginShell: /usr/bin/ksh
gecos: John Scott,San Jose,+1 555-555-5555
Perform the following ldapugmod command for the user entry, jscott:
./ldapugmod -t passwd -A "cn=Joesh Scott" jscott
This command adds an instance of the cn attribute, cn=Joesh Scott to the entry. The result of
the user entry is as follows:
dn: uid=jscott,ou=people,dc=example,dc=com
cn: John Scott
cn: Joe Scott
9.3 LDAP user and group management tools 321