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

If you do not specify this option, the description attribute is
not added to the user entry. Because the field often contains
white spaces, you must protect it from shell parsing by enclosing
it in quote characters. For example:
-c example description
-T <template_file>
Optional. Specifies the LDIF template file to be used to create
new user entries. The <template_file> parameter may be a
full or relative path name or a short name. A short name is
defined as the distinguishing portion of the template file name.
For example, for the passwd service, if the short name “operator
is specified, the resulting template file is /etc/opt/ldapux/
ug_templates/ug_passwd_operator.tmpl. All LDAP-UX
default template files are stored in the /etc/opt/ldapux/
ug_templates directory. A full or relative path name must
begin with a slash (/) or a period (.) character.
If you do not specify this argument, ldapugadd uses the default
template file /etc/opt/ldapux/ug_templates/
ug_passwd_default.tmpl.
-x <domain>
Optional. Specifies the users domain name. Use this option to
specify the ${domain} value that can be used in the template
file. If you do not specify this value, the domain name is created
by using the first dc component of the new users distinguished
name. If the distinguished name does not contain any dc
components, and the ${domain} variable is specified in the
template file, ldapugadd generates an error.
-m
Optional. Creates a new home directory for the defined user.
User and group ownership of the newly created directory is
assigned to the user and his/her primary login group. If the -k
option is specified, the files and sub-directories found in
<skel_dir> are copied to the users home directory, and user
and group ownership permissions are altered as specified above.
If the -k option is not specified, skeleton files are copied from
/etc/skel. The -m option requires the user has sufficient
privilege to create the new home directory, copy skeleton files
and change ownership of those files and directories. The
ldapugadd tool creates a users home directory only after
successfully adding the user entry to the directory server and
adding the user to the primary and secondary groups. If
ldapugadd is unable to properly create the users home
directory, per the above process, the newly created changes in
the directory server are not removed. See the “Security
Considerations” section below for more information.
-k <skel_dir> Optional. The ldapugadd tool ignores the -k option unless you
specify the -m option. The <skel_dir> argument specifies a
directory which contains skeleton files and directories that need
to be copied into newly created user home directories. Also see
-m.
<attr>=<value>[...]
Optional. Enables specification of arbitrary LDAP attributes and
values. Because of potential object class requirements, additional
information beyond the basic POSIX account and group data
you might need to specify in order to create new entries in the
LDAP directory server. For example, if the person object class
164 Command and Tool Reference