HP-UX Reference (11i v1 05/09) - 4 File Formats (vol 8)

n
nsswitch.conf(4) nsswitch.conf(4)
Programs that use the
getXXbyYY() functions cannot be linked statically since the implementation of
these functions requires dynamic linker functionality to access the shared objects
/usr/lib/nss_SSS.sl.1
at run time.
The use of both
nis and nisplus as sources for the same database is strongly discouraged since both
the name-services are expected to store similar information and the lookups on the database may yield
different results depending on which name-service is operational at the time of the request.
Misspelled names of sources and databases will be treated as legitimate names of (most likely nonexistent)
sources and databases.
The following functions do not use the switch:
fgetgrent() , fgetpwent() , fgetspent() ,
getpw(), and putpwent().
Applications linked with libc.1 will display different default actions for
NOTFOUND and TRYAGAIN.
Applications linked with
libc.1 will have the switch search terminate if the Name Service returns a
result of NOTFOUND or TRYAGAIN.
This will be an issue for existing
nsswitch.conf files that specify name service lookup criteria that con-
tains no criterion between source entries.
Example:
hosts: dns files
For applications linked with libc.1, the fallback to files will only occur if
DNS returns UNAVAIL.For
all other applications, the fallback to files will occur unless
DNS returns SUCCESS.
For applications linked with
libc.1 and other applications to have the same behavior, a criterion must be
specified between source.
For
libc.1 behavior:
hosts: dns [NOTFOUND=return TRYAGAIN=return] files
For the default system behavior:
hosts: dns [NOTFOUND=continue TRYAGAIN=continue] files
AUTHOR
nsswitch.conf was developed by Sun Microsystems, Inc.
FILES
A source named SSS is implemented by a shared object named
nss_SSS.1 that resides in /usr/lib.
/etc/nsswitch.conf
configuration file
/usr/lib/nss_compat.1
implements "compat" source
/usr/lib/nss_dns.1
implements "dns" source
/usr/lib/nss_files.1
implements "files" source
/usr/lib/nss_nis.1
implements "nis" source
/usr/lib/nss_nisplus.1
implements "nisplus" source
/usr/lib/nss_ldap.1
implements "ldap" source
/etc/netconfig configuration file for
netdir() functions that redirects
hosts/services policy to the switch
/etc/nsswitch.files sample configuration file that uses "files" only
/etc/nsswitch.nis sample configuration file that uses "files" and "nis"
/etc/nsswitch.nisplus sample configuration file that uses "files" and "nisplus"
/etc/nsswitch.ldap sample configuration file that uses "files" and "ldap"
SEE ALSO
nis+(1), automount(1M), rpc.nisd(1M), sendmail(1M), getgrent(3C), getpwent(3C), gethostent(3N),
getnetent(3N), getnetgrent(3C), getprotoent(3N), getpublickey(3N), getrpcent(3C), getservent(3N),
netdir(3N), secure_rpc(3N), netconfig(4), resolver(4), ypfiles(4). ldapux(5) and pam_authz(5) in the LDAP-
UX Integration product.
HP-UX 11i Version 1: September 2005 4 Hewlett-Packard Company Section 4193