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

As it may occur in any identity repository, modification of this repository will likely have
impacts as defined by the organization security policy. When using ldapugmod, you are
expected to have full knowledge of the organization security policy and the impact of
modifying identity information in that identity repository.
7.3.6.7 Limitations
Because LDAP directories require data be stored according to the UTF-8 (RFC3629) character
encoding method, all characters displayed by ldapugmod are UTF-8, and assumed to be part of
the ISO-10646 character set. The ldapugmod tool does not perform conversion of the locale
character set to or from the UTF-8 character set.
7.3.6.8 Examples
The following commands set the LDAP_BINDDN and LDAP_BINDCRED environment variables:
export LDAP_BINDDN = "cn=Jane Admin,ou=admins,dc=example,dc=com"
export LDAP_BINDCRED = "Jane_Password"
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"
260 Command and tool reference