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

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 above 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
cn: Joesh Scott
uid: jscott
uidNumber: 2500
gidNumber: 120
homeDirectory: /home/jscott
loginShell: /usr/bin/ksh
gecos: John Scott,San Jose,+1 555-555-5555
7.3.6.5 Specific return codes for ldapugmod
The ldapugmod tool returns a list of return codes shown in Table 7-7.
Table 7-7 Return codes for ldapugmod
MessageReturn Code
Cannot discover user's home directory information.
MOD_CANNOT_GET_USER_HOMEDIR
258 Command and tool reference