LDAP-UX Client Services B.04.15 with Microsoft Windows Active Directory Server Administrator's Guide (edition 8)

Table Of Contents
objectclass: posixAccount
sn: ${surname}
${posixProfile}
Below is a default template for the group name service:
dn: cn=${cn},ou=groups,${basedn}
objectclass: groupOfNames
objectclass: posixGroup
${posixProfile}
Default Template Files for a Windows ADS
Below is a default template for the passwd name service:
dn:cn=${cn},cn=users,${basedn}
objectclass: user
${posixProfile}
sAMAccountName: ${uid}
msSFU30NisDomain: ${domain}
#By default, ldapugadd creates disabled accounts.
#Change below to 544 to enable accounts by default.
userAccountControl: 546
Below is a default template for the group name service:
dn:cn=${cn},cn=users,${basedn}
objectclass: group
${posixProfile}
sAMAccountName: ${cn}
msSFU30NisDomain: ${domain}
LDAP-UX provides two default template files (for user and group entries) for a standard LDAP
directory server, along with two default template files for Windows Active Directory Server
under the /etc/opt/ldapux/ug_templates directory.
For detailed information on how to use the correct format to define template files, see “Defining
Template Files” (page 195).
NOTE: By default, LDAP-UX links two default template files to the default template files for
a standard directory server. If you attempt to use default template files when using ldapugadd
to access a Windows ADS, you must manually use the following commands to re-link the default
templates to the default templates for the Windows ADS:
ln -fs /etc/opt/ldapux/ug_templates/ug_passwd_ads.tmpl \
/etc/opt/ldapux/ug_templates/ug_passwd_default.tmpl
ln -fs /etc/opt/ldapux/ug_templates/ug_group_ads.tmpl \
/etc/opt/ldapux/ug_templates/ug_group_default.tmpl
Defining Template Files
Pre-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 RFC2307–type attributes
and values. Customized attribute values are defined using the ${<name>} construct. The
LDAP User and Group Management Tools 195