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

options and must precede the <attr>=<value> parameters (if
provided).
<attr>=<value>
This option specifies arbitrary LDAP attributes and values.
<attr>=<value> parameters are optional and must be specified
as the last parameters on the command line.
5.6.4.2 Examples of Adding a Group
Use the following command to add a new group entry for the group name, groupA. In this
example, ldapugadd creates the new group, groupA, and defines initial group membership by
adding the user account tsheu as a member.
./ldapugadd -t group -M tsheu groupA
Use the following command to display the new group entry, groupA:
./ldapuglist -t group -f "(cn=groupA)"
The output of the group entry is as follows:
dn: cn=groupA,ou=Group,dc=example,dc=com
cn: groupA gidNumber: 550 memberUid: tsheu
Command Arguments Applicable to -t group
The following are the command arguments and options used in the above examples of the
ldapugadd -t group commands:
-M <member>
Defines initial group membership by adding the specified user accounts
as members.
-g <gid_nubmer>
Specifies the group id number for the new group.
<group_name>
Required argument. Specifies the POSIX style group name for the new
group entry.
5.6.4.3 Modifying Defaults in /etc/opt/ldapux/ldapug.conf
You can use the ldapugadd -D command to change default values of the uidNumber_range,
gidNumber_range, user_gidNumber, default_homeDirectory and
default_loginShell parameters in the /etc/opt/ldapux/ldapug.conf file.
The following commands set new default minimum and maximum ranges of UID numbers in
the local configuration file, /etc/opt/ldapux/ldapug.conf. The ldapugadd tool randomly
selects a new ID from this range if you do not specify an account number.
cd /opt/ldapux/bin ./ldapugadd
-D -t passwd -u 1000:5000
The following command sets new default minimum and maximum ranges of GID numbers in
the local configuration file, /etc/opt/ldapux/ldapug.conf. The ldapugadd tool randomly
selects a new ID from this range if you do not specify a group number.
./ldapugadd -D -t group -g 200:2500
The following command sets new default group ID number in the local configuration file, /etc/
opt/ldapux/ldapug.conf. The ldapugadd tool uses this new value when creating new user
entries in an LDAP directory server.
./ldapugadd -D -t passwd -g 5000
The following command sets new default login shell in the local configuration file, /etc/opt/
ldapux/ldapug.conf. The ldapugadd tool uses this new login shell when creating new user
entries in an LDAP directory server.
./ldapugadd -D -t passwd -s /net/bin/sh
The following command sets new default parent home directory in the local configuration file,
/etc/opt/ldapux/ldapug.conf. The ldapugadd tool uses this new home directory when
creating new user entries in an LDAP directory server.
118 Administering LDAP-UX Client Services