LDAP-UX Client Services B.05.01 Administrator Guide for HP directory servers and Windows ADS
9.3.5.6.3 Defining template files
Defined substitution constructs
Each template file must follow the LDIF data format and also permit substitution of values from the
ldapugadd command. Each template file can be built using custom RFC 2307–type attributes
and values. Customized attribute values are defined using the ${<name>} construct. The LDAP-UX
supports several predefined substitution constructs, ${<name>}, where <name> represents:
posixProfile Represents all RFC 2307-type attributes and values for the particular name
service (either passwd or group). If LDAP-UX configuration has defined attribute
mapping for particular attributes, the mapped attributes are substituted in its
place. When you use the posixProfile construct for posixAccount-type
entries, LDAP-UX will add the following attributes and values to the new user
entry:
• cn
• uid
• userPassword
• uidNumber
• gidNumber
• gecos
• homeDirectory
• loginShell
When you use the posixProfile construct with posixGroup-type entries,
LDAP-UX will add the following attributes and values to the new group entry:
• cn
• userPassword
• gidNumber
• memberUid
NOTE: Because use of posixProfile supports attribute mapping, if the
preceding attributes have been mapped as configured in the LDAP-UX
configuration profile, the mapped attributes and values are added to the entry
instead of the RFC 2307–defined attributes. For example, if the posixAccount
attribute gecos has been mapped to cn, l and telephoneNumber then
LDAP-UX adds cn, l and telephoneNumber information to the entry instead
of gecos. If the posixGroup attribute memberUid has been mapped to
uniqueMember, then LDAP-UX adds uniqueMember information to the entry
instead of memberUid.
basedn Represents the substitution of the distinguished name of the default search base
(defaultSearchBase) as defined in the LDAP-UX configuration profile.
uid Represents the user’s account name when used in a passwd template file.
uidNumber Represents the user’s account ID number when you define it in a passwd
template file for the new user entry.
cn Represents the users’s full name when you define it in a passwd template file.
Represents the group name when you define it in a group template file.
gidNumber Represents the group ID number when you specify it in a group template file
for the new group entry.
308 Command and tool reference