LDAP-UX Client Services B.04.15 Administrator's Guide
Table 6-10 Return Codes for ldapcfinfo (continued)
LDAP-UX administrator credential file does not exist.
CFI_NOACRED
Insufficient permissions to read the LDAP-UX administrator
credential file.
CFI_NOACRED_PERM
LDAP-UX administrator credential file contains invalid credentials.
CFI_ACRED_INVALID
LDAP-UX administrator credential file valid.
CFI_ACRED_GOOD
The /etc/opt/ldapux/ldapug.conf file is missing.CFI_NO_CF_CONFIG
Unable to read the /etc/opt/ldapux/ldapug.conf file.CFI_READCONFIG
Invalid service name for the -a option. Only passwd and group
services are accepted.
CFI_INVALID_SV_FOR_REC
Invalid service name for the -D option. Only passwd and group
services are accepted.
CFI_INVALID_SV_FOR_DEF
Invalid configuration file. Missing required configuration
parameters.
CFI_UGCONF_INVALID
The specified service appears properly configured for LDAP-UX
operation.
CFI_CONFIG_SUCCESS
The specified service not configured for LDAP-UX support.
CFI_CONFIG_FAILURE
6.3.8.4 Examples
This section provides examples of using the ldapcfinfo tool:
The following command checks to see if the LDAP-UX is properly configured for the passwd
service:
cd /opt/ldapux/bin ./ldapcfinfo
-t passwd
If the LDAP-UX is properly configured, below is the output of the above command:
INFO: CFI_CONFIG_SUCCESS
"passwd" service appears properly configured for LDAP-UX operation
The following command displays the attribute mapping for the gecos attribute which has been
mapped to the cn, l, and telephone attributes:
./ldapcfinfo -t passwd -m gecos
The output of the command is as follows:
gecos=cn l telephoneNumber
The following command displays the attribute mapping for the gecos and uidNumber attributes.
In this example,gecos has been mapped to cn, l and telephone attributes, and uidNumber
has been mapped to the employeeNumber attribute:
./ldapcfinfo -t passwd -m gecos,uidNumber
The output of the command is as follows:
gecos=cn l telephoneNumber
uidNumber=employeeNumber
The following command displays the LDAP-UX default search base for the passwd name service.
In this example, “ou=People,” has been configured as the search base for the passwd name
service.
./ldapcfinfo -t passwd -b
The output of the command is as follows:
ou=People,dc=example,dc=com
194 Command and Tool Reference