HP-UX Reference (11i v2 07/12) - 1M System Administration Commands A-M (vol 3)

l
ldapcfinfo(1M) ldapcfinfo(1M)
Note
Since each -a, -D,
-A, -P, -R, -L, -b, -f
, -h, and -m options all generate varying output formats, only
one of these options may be used per invocation of the
ldapcfinfo command. Use of multiple of the
above options in a single command line may prevent distinguishing which output applies to which option,
and will result in an error.
The
-T option is ignored unless the
-R option is specified.
EXAMPLES
To display the attribute mapping for the gecos attribute (assuming it has been mapped to cn, l, and
telephoneNumber) use:
# ldapcfinfo -t passwd -m gecos
gecos=cn l telephoneNumber
To display the default search base as configured by the LDAP-UX configuration profile use:
# ldapcfinfo -b
ou=example org,dc=example,dc=com
To display the default search base for the group name service (assuming
ou=Groups has been configured
as the search base for the groups name service) use:
# ldapcfinfo -t group -b
ou=Groups,ou=example org,dc=example,dc=com
To display the non-POSIX attributes required by ldapugadd command for the passwd name service
(assuming the default file /etc/opt/ldapux/ug_templates/ug_passwd_default.tmpl
) use:
# ldapcfinfo -t passwd -R
sn
To display the location of the LDAP-UX configuration profile use:
# ldapcfinfo -P
dn: cn=ldapux-profile,ou=example org,dc=example,dc=com
host: 10.42.222.15:389
To display attribute mapping for the
passwd service, and assuming the uidNumber attribute has been
mapped to employeeNumber and the gecos has been mapped to the three attributes, cn, l, and
telephoneNumber, use:
# ldapcfinfo -t passwd -m uid,uidNumber,gecos
uid=uid
uidNumber=employeeNumber
gecos=cn l telephoneNumber
To display the mapped objectclass and related attributes for the
publickey service, and assuming that
objectclass has been mapped to pkiUser, use:
# ldapcfinfo -t publickey -m niskeyobject,nispublickey,nissecretkey
niskeyobject=pkiUser
nispublickey=userCertificate
nissecretkey=*NULL*
Note: The above example is for demonstration only and does not imply the ability of LDAP-UX to be
able to translate an X.509 userCertificate into an NIS public key.
RETURN VALUE
Upon exit, ldapcfinfo returns the following:
0 Success. ldapcfinfo exits with no errors or with one or more warnings.
<>0 ldapcfinfo returns with a non-zero exit status if it encounters an error, and messages will be
logged to stderr.
Messages will follow the below format:
ERROR: code
message
or
HP-UX 11i Version 2: December 2007 Update 3 Hewlett-Packard Company 457