HP-UX HB v13.00 Ch-10 - Network Services
HP-UX Handbook – Rev 13.00 Page 9 (of 26)
Chapter 10 Network Services
October 29, 2013
# domainname
Determine the server to which the client bound
# ypwhich
Determine which NIS maps are available
# ypwhich -m
Display the contents of a map
# ypcat -k <name of NIS map>
Match a specific entry in a map
# ypmatch `hostname` hosts
The system as a LDAP-UX client
The LDAP-UX client is valuable with other services such as NFS because it has largely taken
over the role that NIS has historically played. It provides a way to centrally administer UID and
GID information that is vitally important to be consistent throughout the enterprise. A directory
schema RFC 2307 has been constructed for LDAP to provide this information for NFS and also
for AutoFS.
To verify potential problems with LDAP-UX some commands are useful.
# ldapcfinfo -t {passwd|group|pam}
INFO: CFI_CONFIG_SUCCESS:
"{passwd|group|pam}" service appears properly configured for LDAP-UX
operation.
# pwget (no options) enumerates all user’s passwds
# grget (no options) enumerates all groups
# listusers
# logins
# nsquery passwd ldap20 ldap
Using "ldap" for the passwd policy.
Searching ldap for ldap20
User name: ldap20
User Id: 100020
Group Id: 200
Gecos:
Home Directory: /home/ldap
Shell: /sbin/sh
Switch configuration: Terminates Search