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

# 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
NOTE: You can not modify the ldapug.conf file directly. To change the local host default
values defined in the /etc/opt/ldapux/ldapug.conf, you must use the ldapugadd -D
command with applicable command options to alter them. See Section 7.3.5.4.1 (page 234) for
details.
7.3.5.6 Template files
Template files define user and group entries that allow ldapugadd to discover the required
data models for new user and group entries. Template files define what object classes and
attributes are required to create new user and group entries and allow ldapugadd to discover
required attributes and data elements before creating the entries. LDAP-UX provides customers
the flexibility that allows each directory deployment to define unique data models for users and
groups when adding new entries to an LDAP directory server.
7.3.5.6.1 Template file naming
The ldapugadd tool supports multiple template files per name service. LDAP-UX only supports
the passwd and group services. All template files are stored in the /etc/opt/ldapux/
ug_templates directory. Define the template file name using the following format:
ug_serviceName_Name.tmpl
Where
serviceName Is the name of the supported service, either passwd or group.
Name Is the arbitrary name of the specific template file. The name, default, is
reserved as the default template name and is used when a specific template
name is not specified.
For example, ug_passwd_default.tmpl is the default template file for the passwd name
service and ug_group_default.tmpl is the default template file for the group name service.
ug_passwd_vpn_user.tmpl may be used when creating new users of “VPN” type. Template
files stored outside of the ug_templates directory do not need to follow any specific format
described above.
When specifying the name of a template file as part of the -T option on the command line, either
the exact file name or a short name may be used. The file name can be either a full or a relative
path name, but it must begin with a slash (/) or a period (.) character. That file name can exist
anywhere in the file system.
When specifying a short name, the file must exist under the /etc/opt/ldapux/ug_templates
directory and must follow the format specified above. A short name is defined as the
distinguishing portion of the template file name. For example, if you define the short name
“operator for the passwd service, the template file can be /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 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).
242 Command and tool reference