HP-UX Reference (11i v2 07/12) - 1M System Administration Commands A-M (vol 3)
l
ldapugadd(1M) ldapugadd(1M)
the specified end values. The colon character (
:) will be used to indicate a range has been
specified, instead of the default_gid specified above.
-u min_uid:max_uid
Sets new default minimum and maximum ranges that
ldapugadd will use when provi-
sioning an uid number for newly created user entries. The uid range is inclusive of the
specified end values.
Arguments Applicable to ’-t passwd’
-u uid_number
Specifies the user’s numeric ID number. If the specified uidNumber already exists in the
directory server,
ldapugadd will not add the new entry and return an error exit status,
unless the -F option is specified.
If this argument is not specified, a new user ID number will be provisioned by randomly
selecting a value from the uidNumber range specified by
ldapugadd -D -u.If
ldapugadd randomly selects a uidNumber that is already in use on the directory server,
ldapugadd will randomly select another uidNumber and try again until it finds an
unused uidNumber or exhausts retry attempts. Retry attempts will be limited to 90% of
the range of available uidNumbers (specified with
-D -u min_uid:max_uid and described
above).
-g group/gid Specifies the user’s primary login group name or id number. After creating the user entry
ldapugadd will also attempt to add the user as a member of the specified group using the
ldapugmod -t group command.
Note: to support numeric group names, ldapugadd will always attempt to resolve the
specified argument as a group name (even if it is a numeric string). If the specified argu-
ment is not found as a group name, ldapugadd will check to see if the argument is a
numeric string and if so, use that as the group ID number. If that numeric group can not
be found in any active name service repository, ldapugadd will issue an ERROR mes-
sage. If the specific argument is not numeric and can not be found in an active name ser-
vice repository, ldapugadd will exit with an ERROR and not create the new entry.
If this argument is not specified, the user will become a member of default login group, as
specified by the ldapugadd -D -g default_gid command.
-f full_name This option is only required for the passwd service and is used to specify the user’s full
name. If undefined, the user’s full name will default to the account name.
-x domain Specifies the user’s domain name. This variable is used to specify the
${domain} value
that can be used in the template file. If this value is not specified, the domain name will be
created by using the first "dc" component of the new user’s distinguished name. If the dis-
tinguished name does not contain any "dc" components, and the
${domain}
variable is
specified in the template file,
ldapugadd will generate an error.
-G group/gid[,...]
Specifies the user’s alternate group memberships. group/gid is expected to be the POSIX
textual name of the group or the group ID number. That group must exist in the directory
server (not the
/etc/group file).
If the specified group name is invalid or does not exist in the directory server, ldapugadd
will issue a warning message for each invalid group. To support numeric group names,
ldapugadd will always attempt 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 will check to see if the argument is a numeric string and if so, use that as the
group ID number.
After the user’s entry is successfully created (and only if), ldapugadd will call ldapug-
mod -t group
(see ldapugmod(1M)) for each group specified, to add the user to listed
groups.
If more than one group is specified, each group name must be separated by a comma. No
whitespace is allowed between or within group names. If ldapugadd fails to add the user
as a member of a particular group, ldapugadd will issue a warning message and continue
to add the user to the other remaining groups specified.
HP-UX 11i Version 2: December 2007 Update − 3 − Hewlett-Packard Company 465