LDAP-UX Client Services B.05.00 with Microsoft Windows Active Directory Server Administrator's Guide (obsolete beyond B.05.00)

<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.
6.7.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 previous 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.
6.7.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 an account number is not specified.
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 a group number is not specified.
./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 value when creating new user entries
in a 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 login shell when creating new user entries
in a directory server.
./ldapugadd -D -t passwd -s /net/bin/ksh
The following command sets new default parent home directory in the local configuration file,
/etc/opt/ldapux/ldapug.conf. The ldapugadd tool uses this home directory when creating
new user entries in a directory server.
6.7 User and group management 121