LDAP-UX Client Services B.05.00 with Microsoft Windows Active Directory Server Administrator's Guide (obsolete beyond B.05.00)
./ldapugmod -t passwd -I "Ann Louie,Building-6,222-2222" alouie
The following command adds the description attribute and value to the user entry, mscott:
./ldapugmod -t passwd -A "description=test user entry" mscott
Command Arguments
The following describes arguments/options used in the previous examples for the ldapugmod
-t passwd commands:
-PW Sets the user or group password attribute. If you specify -PW, you must
specify either the LDAP-UGCRED environment variable or the -PP option.
-A <attrval> Specifies an attribute and value to be added to a user or group entry.
When working with multi-valued attributes, you can use the -A option to
add a new value for a multi-valued attribute, without removing already
existing values for that attributes.
-R <attrval> Specifies an attribute and value to be removed from a user or group entry.
When working with multi-valued attributes, you can use the -R option to
remove a specified value for a multi-valued attributes.
-u <uidNumber> Replaces the user's numeric id number.
-I <gecos> Replaces the GECOS fields for the user. Typically the GECOS argument
contains the following four fields which represent (in order):
• The user's full name
• The user's work location
• The user's work telephone number
• The user's home telephone number (often omitted)
Each field in the <gecos> argument must be separated by a comma.
<attr>=<value> Allows modification of arbitrary LDAP attributes and values.
6.7.6 Modifying a group
You can use ldapugmod tool to modify exiting groups in a directory server. This section provides
examples of using ldapugmod to modify group entry information.
The following command replaces the gidNumber value for the group entry, GroupA:
./ldapugmod -t group -g 2500 groupA
In the following example, a group entry contains multiple values of the description attribute.
The group entry is as follows:
dn: cn=GroupB,ou=Groups,dc=org,dc=example,dc=com
cn: GroupB
gidNumber: 350
MemberUid: tlee
Description: Test Group
Description: A Group Entry
Run the following command to replace all instances of the description attribute with new value
“Group B Entry” for the GroupB entry:
./ldapugmod -t group GroupB "description=Group B Entry"
The result of the GroupB entry is as follows:
dn: cn=GroupB,ou=Groups,dc=org,dc=example,dc=com
cn: GroupB
gidNumber: 350
MemberUid: tlee
Description: Group B Entry
6.7 User and group management 123