LDAP-UX Client Services B.05.01 Administrator Guide for HP directory servers and Windows ADS
-T <template_file> Optional. Specifies the LDIF template file that is used to create new
group entries. If you do not specify the -T option, ldapugadd uses
the default template file either /etc/opt/ldapux/ug_templates/
ug_passwd_default.tmpl or /etc/opt/ldapux/
ug_templates/ug_group_default.tmpl depending on the
service type you specify (-t passwd or -t group).
The <template_file> parameter can be either a full or relative
path name or a short name. For more information, see
Section 9.3.5.6 (page 306).
<attr>=<value> Optional. Enables specification of arbitrary LDAP attributes and
values. Because of potential object class requirements, you might
need to specify additional information beyond the basic POSIX
account and group data to create new entries in the LDAP directory
server. For example, if the person object class is used as a structural
class for posixAccounts, then the sn (surname) attribute must be
specified in order to properly create a new entry.
This attribute needs to be defined in the template file, and
attribute/value pair needs to be specified on the ldapugadd
command line. The <attr>=<value> parameter is used to specify
attributes required by the template file. However, if you specify an
attribute that is not defined in the defined template file, that
attribute/value pair is considered as an optional attribute/value and
will be added to the entry exactly as specified.
<attr>=<value> parameters are optional, but you must specify
them as the last parameters on the command line.
9.3.5.5 LDAP User and Group (UG) tool configuration file
The local configuration file /etc/opt/ldapux/ldapug.conf is used by the ldapugadd tool
to manage the following default values when creating new user and group entries in an LDAP
directory server:
• A default group ID for new users.
• The valid UID number range for new users.
• The valid GID number range for new groups.
• The base path for a new user's home directory. By default, LDAP-UX appends the user's account
name to the base path to create the full path name.
• The default login shell for new users.
LDAP-UX provides the default ldapug.conf file as follows:
#
# This file is used by the ldapugadd tool for management
# of default values for creating new user and group entries.
# This file can not be modified directly, but instead through
# the ldapugadd -D command.
#
uidNumber_range=100:20000
gidNumber_range=100:2000
default_gidNumber=20
default_homeDirectory=/home
default_loginShell=/usr/bin/sh
9.3 LDAP user and group management tools 305