LDAP-UX Client Services B.04.15 Administrator's Guide
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 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
6.3.6.5 Specific Return Codes for ldapugmod
The ldapugmod tool returns a list of return codes shown in Table 6-8.
Table 6-8 Return Codes for ldapugmod
MessageReturn Code
Cannot discover user's home directory information.
MOD_CANNOT_GET_USER_HOMEDIR
Member(s) need to be specified for the specified option.
For exmaple,
ldapugmod -t group -r ""
The output of the command is as follows:
ERROR: MOD_COMMANDLINE_ERR:
member(s) need to be specified for -r
option.
ldapugmod -t group -a ""
The output of the command is as follows:
ERROR: MOD_COMMANDLINE_ERR: member(s)
need to be specified for -a option.
MOD_COMMANDLINE_ERR
Cannot remove user account from the specified group,
will be skipped.
MOD_MEMBER_SKIPPED
182 Command and Tool Reference