LDAP-UX Client Services B.05.01 Administrator Guide for HP directory servers and Windows ADS
Command arguments
The following describes arguments and options used in the preceding 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.
7.7.1.5 Modifying a group (ldapugmod)
Modifying group attributes
The following command sets the gidNumber value for the group entry GroupA to 2500:
./ldapugmod -t group -g 2500 groupA
The following group entry contains multiple description attribute values:
dn: cn=GroupB,ou=Group,dc=example,dc=com
cn: GroupB
gidNumber: 350
MemberUid: tlee
Description: Test Group
Description: A Group Entry
The following command replaces all instances of the description attribute for the GroupB entry
with a new (single) description value of Group B Entry:
./ldapugmod -t group GroupB "description=Group B Entry"
The following shows the modified GroupB entry:
dn: cn=GroupB,ou=Group,dc=example,dc=com
cn: GroupB
gidNumber: 350
MemberUid: tlee
Description: Group B Entry
To add an instance of the description attribute and value to the group entry without removing
already existing values for that attribute, use the -A option, as in the following example:
./ldapugmod -t group -A "description=Best group in the world" groupB
The following displays the GroupB entry with the added description value:
dn: cn=GroupB,ou=Group,dc=example,dc=com
cn: GroupB
228 Administering LDAP-UX Client Services