LDAP-UX Client Services B.05.01 Administrator Guide for HP directory servers and Windows ADS
9.3.10.2 Options
NOTE: Because each of the -a, -D, -A, -P, -R, -L, -b, -f, -h and -m options described in
this section generates arbitrary output formats, you may only use one of these options per invocation
of the ldapcfinfo command. Using multiples of these options in a single command line might
prevent you from distinguishing outputs applied to a specific option, and will result in an error.
The -T option is ignored unless the -R option is specified.
The ldapcfinfo tool supports the following command options:
-t <type> Specifies the type of the service name for which to retrieve
configuration information. The valid service names are passwd,
group, netgroup, services, rpc, hosts, networks,
automount, NIS-based publickey, protocols and pam. If you
do not specify this argument, ldapcfinfo defaults to the passwd
name service (if applicable to the argument specified). If the -t option
is the only argument specified on the command line, ldapcfinfo
reports if LDAP-UX is properly configured and active for the specified
service.
-A Reports if the user running the ldapcfinfo command has the ability
to access the LDAP administrator’s credential, if configured.
ldapcfinfo returns zero exit status if the user has rights to access
the LDAP administrator’s credential. The ldapcfinfo tool returns a
nonzero exit status if the user does not have permission. For detailed
information about the LDAP-UX administrator credential, see
Section 2.4.7 (page 85) :
-P Displays the distinguished name (DN) of the LDAP-UX configuration
profile and LDAP directory server that stores that profile. The output
format is as follows:
dn: distinguishedName
host: hostname/ip:port
If SSL or TLS is configured to download the profile, host: is replaced
with hostssl:.
-R Displays the required attributes as defined in the default template file
or the template file specified with the -T option. If you do not specify
the -T option, you must specify the -t passwd or -t group option
to indicate which default template file to be examined. Each attribute
required by the requested template file displays on separate lines,
one per line. Because the RFC 2307 POSIX attributes are a static
known list and are required, only nonPOSIX attributes are displayed.
-T <template_file> Specifies the LDIF template file to be used to create new user or group
entries. The <template_file> parameter can be either a full or
relative path name or a short name. A short name is defined as the
distinguishing portion of the template file name. For example, for the
passwd service, if the short name “operator” is specified, the
resulting template file is /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 this parameter, the default template file with the
-t passwd option is /etc/opt/ldapux/ug_templates/
9.3 LDAP user and group management tools 349