LDAP-UX Client Services B.04.15 with Microsoft Windows Active Directory Server Administrator's Guide (edition 8)

Table Of Contents
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=org,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=org,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
In the following example, a group entry contains multiple values of the description attribute.
The group entry is as follows:
dn: cn=GroupC,ou=Groups,dc=org,dc=example,dc=com
cn= GroupC
gidNumber: 310
MemberUid:tlee
Description: A IT Group
Description: A Group Entry
The following command replaces all instances of the description attribute with new value
Group C Entry” for the group entry, GroupC:
./ldapugmod -t group GroupC "description=Group C Entry"
The resulting GroupC entry is as follows:
dn: cn=GroupC,ou=Groups,dc=org,dc=example,dc=com
cn= GroupC
gidNumber: 310
MemberUid:tlee
Description: Group C Entry
Run the following commands to unset the LDAP_BINDDN, LDAP_BINDCRED and LDAP_UGCRED
environment variables:
unset LDAP_BIND
unset LDAP_BINDCRED
unset LDAP_UGCRED
212 Command, Tool, Schema Extension Utility, and Migration Script Reference