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

ug_passwd_ads.tmpl files are currently available on the system, the output of the preceding
command would be as follows:
/etc/opt/ldapux/ug_templates/ug_passwd_ads.tmpl
/etc/opt/ldapux/ug_templates/ug_passwd_std.tmpl
/etc/opt/ldapux/ug_templates/ug_passwd_default.tmpl
As another example, the following command displays a list of available template files that
ldapugadd uses to add a group entry for the group name service:
./ldapcfinfo -t group -L
If the /etc/opt/ldapux/ug_templates/ug_group_std.tmpl, /etc/opt/ldapux/
ug_templates/ug_group_default.tmpl, and /etc/opt/ldapux/ug_templates/
ug_group_ads.tmpl template files are currently available on the system, the command output
would be as follows:
/etc/opt/ldapux/ug_templates/ug_group_ads.tmpl
/etc/opt/ldapux/ug_templates/ug_group_std.tmpl
/etc/opt/ldapux/ug_templates/ug_group_default.tmpl
7.7.1.7.3 Discovering required attributes
To discover which attributes defined in a template file are required to create a new user or group
entry, use the ldapcfinfo -t <type> -R command . Because the RFC 2307 POSIX attributes
are a static known list and are required, ldapcfinfo displays only nonPOSIX attributes. The
valid <type> value can be passwd or group.
The following command displays the nonPOSIX attributes defined in the default template file /etc/
opt/ldapux/ug_tempates/ug_passwd_std.tmpl (on an HP directory server) or /etc/
opt/ldapux/ug_templates/ug_passwd_ads.tmpl (on a Windows ADS) that are required
by the ldapugadd command for the passwd name service:
./ldapcfinfo -t passwd -R
7.7.1.7.4 Displaying configuration defaults
To display the LDAP default values in the /etc/opt/ldapux/ldapug.conf file that are used
for the ldapugadd command, use the ldapcfinfo -t <type> -D command . The valid
<type> value can be passwd or group.
If you specify the -t password -D option, ldapcfinfo displays the UID range, default primary
GID number, default home directory, and default login shell information. The -t group -D option
displays the GID range.
For example, the following command displays the LDAP default values in the /etc/opt/ldapux/
ldapug.conf file:
./ldapcfinfo -t passwd -D
The following is an example of the output displayed by this command for the passwd name
service:
uidNumber_range=100:20000
default_gidNumber=20
default_homeDirectory=/home
default_loginShell=/usr/bin/sh
As another example, the following command displays the LDAP default configuration values in the
/etc/opt/ldapux/ldapug.conf file for the group name service:
./ldapcfinfo -t group -D
An example of the output for this command follows:
gidNumber_range=100:2000
7.7.1.7.5 Displaying the DN of the LDAP-UX profile
To display the location of the LDAP-UX configuration profile, use the following command:
232 Administering LDAP-UX Client Services