SUMMARY: Q: nsswitch.conf configuration

From: Kwok.Che.Tang@chase.com
Date: Wed Jul 22 1998 - 07:35:14 CDT


Original question:

> Sun managers,
>
> This is part of the nsswitch.conf file running on one of my systems.
> Question: does this look right to you? Can anyone explain what xfn is?
And
> does the [NOTFOUND=return] condition mean that the "files" parameter at
the
> end of hosts, for example, will never be looked at? Shouldn't files be at
> the beginning?
>
> hosts: xfn nis dns [NOTFOUND=return] files
> networks: nis [NOTFOUND=return] files
> protocols: nis [NOTFOUND=return] files
> rpc: nis [NOTFOUND=return] files
> ethers: nis [NOTFOUND=return] files
> netmasks: nis [NOTFOUND=return] files
> bootparams: nis [NOTFOUND=return] files
> publickey: nis [NOTFOUND=return] files
> netgroup: nis
> automount: files nis
> aliases: files nis
>
>
> Thanks, I will summarize.
>
>
> Kwok

Answer:

1. XFN is a programming interface for a federated naming service. Check
out man xfn, and man fns.

2. The [NOTFOUND=return] part means that the parameter before the
condition, e.g. for hosts it is dns, is the primary source for the data. If
this is not running then only then the local files are consulted.

In addition...there is a bug in Solaris 2.6 (which there is currently no
patch for) in regards to NIS, which I've included below...

 Bug Id: 4136165
 Category: network
 Subcategory: yp
 State: closed
 Synopsis: Solaris 2.6 3/98 - NIS master will hang if specify nis first in
           nsswitch.conf
 Description:
Fresh Solaris 2.6 3/98 install on a nis master hangs after reboot.

Conditions:

1. No slaves in the domain
2. nsswitch.conf defines hosts: nis[not found] files
                        or nis dns files

Nis master don't bind to itself if nsswitch.conf says nis first.
Only binds to itself if specify files first.
Which is the default configuration when you initialize a master.
This should work.

This has been reproduced here in the lab.

Another Issue:
Slave never bounds to itself - so if in ypservers you have only this slave
specified and nsswitch.conf says nis files - slave will hang also.

Only time slave doesn't hang is when another slave or master is defined in
ypservers and nsswitch.conf says fils nis.

 Work around:
1. Change /etc/nsswitch.conf file to specify files nis dns.
2. Create a slave - but it will always bound to that slave.
        Integrated in releases:
 Duplicate of: 4105286
 Patch id:
 See also:
 Summary:



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:44 CDT