LDAP-UX Client Services B.05.01 Administrator Guide for HP directory servers and Windows ADS

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. For more information about this command
option, see Section 9.3.5.4.1 (page 299).
9.3.5.6 Template files
Template files define user and group entries that enable ldapugadd to discover the required data
models for new user and group entries. Template files define the object classes and attributes
required to create new user and group entries and enable ldapugadd to discover required
attributes and data elements before creating the entries. LDAP-UX provides customers the flexibility
that enables each directory deployment to define unique data models for users and groups when
adding new entries to an LDAP directory server.
9.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 previously.
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 previously. 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).
9.3.5.6.2 Default template files
The LDAP-UX Integration product provides two default template files for a standard directory server
for a passwd and group service entry.
Default template files for a standard directory server
The following is a default template file for the passwd name service.
306 Command and tool reference