LDAP-UX Client Services B.05.01 Administrator Guide for HP directory servers and Windows ADS
-u <uid_number> Optional. Specifies the user’s numeric ID number. If the specified
uidNumber value already exists in the directory server,
ldapugadd does not add the new entry and returns an error
status, unless you specify the -F option.
If this argument is not specified, ldapugadd randomly selects a
new user ID number from the uidNumber range specified by the
ldapugadd -D -u command. If you do not specify the
uidNumber range with the ldapugadd -D -u command,
ldapugadd randomly selects a value from default UID range
specified in the /etc/opt/lapux/ldapug.conf file. If
ldapugadd randomly selects a uidNumber that is already in use
on the directory server, ldapugadd then randomly selects another
uidNumber and tries again until it finds an unused uidNumber or
exhausts retry attempts. Retry attempts are limited to 90% of the
range of available uidNumbers (specified with -D -u
<min_uid>:<max_uid>).
-g <group/gid> Optional. Specifies the user's primary login group name or ID
number. After creating the user entry, ldapugadd attempts to
add the user as a member of the specified group using the
ldapugmod -t group command.
To support numeric group names, ldapugadd always attempts
to resolve the specified argument as a group name (even if it is a
numeric string). If the specified argument is not found as a group
name, ldapugadd determines whether the argument is a numeric
string and if so, uses that as the group ID number. If that numeric
group cannot be found in any active name service repository,
ldapugadd issues an ERROR message. If the specific argument
is not numeric and can not be found in an active name service
repository, ldapugadd exits with an ERROR and does not create
the new entry.
If you do not specify this argument, the user becomes a member
of the default login group as specified by the ldapugadd -D
-g <default_gid> command.
-G <group/gid>[,...] Optional. Specifies the user's alternate group memberships.
<group/gid> is the POSIX group name or the group ID number.
The specified <group> name must exist in the directory server (not
in the /etc/group file). If the specified group name is invalid
or does not exist in the directory server, ldapugadd issues a
warning message for each invalid group. To support numeric
group names, ldapugadd always attempts to resolve the specified
argument as a group name (even if it is a numeric string). If the
specified argument is not found as a group name, ldapugadd
determines whether the argument is a numeric string and if so,
use that as the group ID number. Only if the user entry is
successfully created , ldapuguadd will call the ldapugmod -t
group for each <group> specified to add the user to listed groups.
If you specify more than one group, you must separate each group
by a comma. No white space is allowed between or within group
names. If ldapugadd fails to add the user as a member of a
300 Command and tool reference