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

The following command checks to see if LDAP-UX is properly configured for the automount
service:
./ldapcfinfo -t automount
Assume that the automount service is not configured for LDAP-UX support, below is the output
of the above command:
WARNING: CFI_CONFIG_FAILURE: "automount"
service not configured for LDAP-UX support
5.6.8.2 Listing Available Templates
Use the ldapcfinfo -t <type> -L command to display a list of available templates. The
valid <type> value can be passwd or group.
Run the following command to display a list of available template files that ldapugadd uses to
create a new user entry for the passwd name service:
./ldapcfinfo -t passwd -L
Assume that the /etc/opt/ldapux/ug_templates/ug_passwd_std.tmpl, /etc/opt/
ldapux/ug_templates/ug_passwd_default.tmpl /etc/opt/ldapux/ug_templates/
ug_passwd_ads.tmpl files are currently available on the system, the output of the above
command is 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
Run the following command to display a list of available template files that ldapugadd uses to
a group entry for the group name service:
./ldapcfinfo -t group -L
Assume that the /etc/opt/ldapux/ug_templates/ug_group_std.tmpl, /etc/opt/
ldapux/ug_templates/ug_group_default.tmpl /etc/opt/ldapux/ug_templates/
ug_group_ads.tmpl files are currently available on the system, the output of the above
command is 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
5.6.8.3 Discovering Required Attributes
Use the ldapcfinfo -t <type> -R command to discover what attributes defined in a template
file are required to create a new user or group entry. Because the RFC 2307 POSIX attributes are
a static known list and are required, ldapcfinfo displays only non-POSIX attributes. The valid
<type> value can be passwd or group.
The following command displays the non-POSIX attributes defined in the default template file,
/etc/opt/ldapux/ug_tempates/ug_passwd_std.tmpl, required by the ldapugadd
command for the passwd name service:
./ldapcfinfo -t passwd -R
The output of the command is as follows:
Surname
5.6.8.4 Displaying Configuration Defaults
Use the ldapcfinfo -t <type> -D command to display the LDAP default values in the
/etc/opt/ldapux/ldapug.conf file used for the ldapugadd command. The valid <type>
value can be passwd or group. If you specify the -t password -D option, ldapcfinfo
displays UID range, default primary GID number, default home directory and default login shell
information. The -t group -D option displays the GID range.
Run the following command to display the LDAP default values in the /etc/opt/ldapux/
ldapug.conf file:
./ldapcfinfo -t passwd -D
5.6 User and Group Management 123