LDAP-UX Client Services B.05.00 Administrator's Guide

NOTE: The ldapugmod tool does not allow you to use the same attribute and value pair more
than once, either as part of <attr>=<value>, -R or -A, or with other command line options.
The ldapugmod tool exits with error status before sending any conflict modification request to
the LDAP directory server.
Example 1
In this example, an entry in an LDAP directory is as follows:
dn: uid=mLee,ou=people,dc=example,dc=com
cn: Mark Lee
cn: Michael Lee
uid: mlee
uidNumber: 2200
gidNumber: 212
homeDirectory: /home/mlee
loginShell: /usr/bin/ksh
gecos: Mark Lee,New York,555-666-6000
description: test user entry
description: multi-valued attribute entry
Perform the following ldapugmod command for the user entry, mlee:
cd /opt/ldapux/bin
./ldapugmod -t passwd mlee "cn=Mackey Lee"
The above commands replace all instances of cn with the single value, Mackey Lee. The resulting
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: test user entry
description: multi-valued attribute entry
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
7.3 LDAP user and group management tools 257