13.07.2015 Views

Naming and Directory Services (DNS, NIS, and LDAP)

Naming and Directory Services (DNS, NIS, and LDAP)

Naming and Directory Services (DNS, NIS, and LDAP)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

EXAMPLE 2–3 Files Switch File Template## /etc/nsswitch.files:## An example file that could be copied over to /etc/nsswitch.conf;# it does not use any naming service.## "hosts:" <strong>and</strong> "services:" in this file are used only if the# /etc/netconfig file has a "-" for nametoaddr_libs of "inet"# transports.passwd: filesgroup: fileshosts: filesnetworks: filesprotocols: filesrpc: filesethers: filesnetmasks: filesbootparams: filespublickey: files# At present there isn’t a ’files’ backend for netgroup;# the system will figure it out pretty quickly, <strong>and</strong> will notuse# netgroups at all.netgroup: filesautomount: filesaliases: filesservices: filessendmailvars: filesEXAMPLE 2–4 <strong>LDAP</strong> Switch File Template## /etc/nsswitch.ldap:## An example file that could be copied over to /etc/nsswitch.conf; it# uses <strong>LDAP</strong> in conjunction with files.## "hosts:" <strong>and</strong> "services:" in this file are used only if the# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.# the following two lines obviate the "+" entry in /etc/passwd<strong>and</strong> /etc/group.passwd: files ldapgroup: files ldaphosts:ldap [NOTFOUND=return] filesnetworks: ldap [NOTFOUND=return] filesprotocols: ldap [NOTFOUND=return] filesrpc: ldap [NOTFOUND=return] filesethers: ldap [NOTFOUND=return] filesnetmasks: ldap [NOTFOUND=return] filesbootparams: ldap [NOTFOUND=return] filespublickey: ldap [NOTFOUND=return] filesChapter 2 • The Name Service Switch (Overview) 39

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!