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

6.3.8 The ldapcfinfo Tool
Use the ldapcfinfo tool to discover LDAP-UX configuration information about the LDAP-UX
product. The ldapcfinfo tool can also be used to discover the list of required attributes when
creating new users or groups to an LDAP directory server. Non-interactive LDAP applications
can use this tool to find LDAP-UX configuration details when adding new users or groups. The
ldapcfinfo tool can also report if LDAP-UX is properly configured and active for the specified
service.
6.3.8.1 Synopsis
ldapcfinfo [-t <type>] [-T <template_file>] [-a <DN>] [-m <atobName>] [-A|-P|-D|-L |-R|-b|-s |-f |-h]
6.3.8.2 Options
NOTE: Because each of the -a, -D, -A, -P, -R, -L, -b, -f, -h and -m options described below
generates arbitrary output formats, you may only use one of these options per invocation of the
ldapcfinfo command. Use of multiple of these options in a single command line may 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, 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 administrators credential, if configured.
ldapcfinfo returns zero exit status if the user has rights to access
the LDAP administrators credential. The ldapcfinfo tool returns
a non-zero exit status if the user does not have permission. For
detailed information about the LDAP-UX administrator credential,
see the section titled “Configure LDAP-UX Client Services with
Publickey Support” in the LDAP-UX Client Services Administrator's
Guide available at:
http://docs.hp.com/en/internet.html
-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
6.3 LDAP User and Group Management Tools 191