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

Run the following command to go to the /opt/ldapux/bin directory where ldapugmod
resides:
cd /opt/ldapux/bin
The following commands are used to change the password of the user, mlee, using the new user
password defined in LDAP_UGCRED:
export LDAP_UGCRED = "mlee's new Password" ./ldapugmod -t passwd -PW mlee
The following command replaces the uidNumber value for the user entry, mMackey:
./ldapugmod -t passwd -u 300 mMackey
The following command replaces the sn value for the user entry, mLou:
./ldapugmod -t passwd mLou "sn=Lou"
The following command replaces the gecos fields for the user entry, mLou:
./ldapugmod -t passwd -I "Mike Lou,Building-6,222-2222" mLou
The following command adds the description attribute and value to the user entry, atam:
./ldapugmod -t passwd -A "description=test user entry" atam
The following command extends the existing user entry,
userid=212,ou=users,dc=example,dc=com, with the POSIX attributes and values for
homeDirectory, uid and gidNumber. The ldapugmod tool adds the PosixAccount object
class to the entry.
./ldapugmod -t passwd -D "userid=212,ou=users,dc=example,dc=com"
-O -A "homeDirectory=/home/testusr" -A "gidNumber=200" -A "uid=testusr"
The following command adds the three members, atam, mlou, mscott, to the group entry,
groupA:
./ldapugmod -t group -a atam,mlou,mscott GroupA
The following command removes one member, atam from the group entry, groupB:
./ldapugmod -t group -r atam GroupB
The following command replaces all instances of the description attribute with value Group
C Entry” for the group entry, GroupC:
./ldapugmod -t group GroupC "description=Group C Entry"
184 Command and Tool Reference