ldapcfinfo.1m (2010 09)

l
ldapcfinfo(1M) ldapcfinfo(1M)
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 ldapux (5) 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
WARNING: code
message
HP-UX 11i v3: June 2010 Web Release 3 Hewlett-Packard Company 3