请输入您要查询的百科知识:

 

词条 Name Service Switch
释义

  1. {{visible anchor|nsswitch.conf}}

  2. History

  3. See also

  4. External links

The Name Service Switch (NSS) is a facility in Unix-like operating systems that provides a variety of sources for common configuration databases and name resolution mechanisms. These sources include local operating system files (such as /etc/passwd, /etc/group, and /etc/hosts), the Domain Name System (DNS), the Network Information Service (NIS), and LDAP.

{{visible anchor|nsswitch.conf}}

A system administrator usually configures the operating system's name services using the file /etc/nsswitch.conf. This lists databases (such as passwd, shadow and group) and one or more sources for obtaining that information. Examples for sources are files for local files, ldap for the Lightweight Directory Access Protocol, nis for the Network Information Service, nisplus for NIS+, and wins for Windows Internet Name Service.

The nsswitch.conf file has line entries for each service consisting of a database name in the first field, terminated by a colon, and a list of possible source databases mechanisms in the second field.

A typical file might look like:

passwd:     files ldapshadow:     filesgroup:      files ldaphosts:      dns nis filesethers:     files nisnetmasks:   files nisnetworks:   files nisprotocols:  files nisrpc:        files nisservices:   files nisautomount:  filesaliases:    files

The order of the services listed determines in which order NSS will attempt to use those services to resolve queries on the specified database.

History

Earlier Unix-like systems, with the notable exception of Ultrix, either accessed only the configuration files or had hard-coded rules for files or databases to access; Ultrix offered nearly identical functionality to the Name Service Switch, using the configuration file /etc/svc.conf.

Sun Microsystems first developed NSS for their Solaris operating system, but subsequently programmers ported it to many other operating systems including FreeBSD, NetBSD, Linux, HP-UX, IRIX and AIX.

See also

  • BSD Authentication
  • Group (database)
  • Name server
  • Passwd (database)
  • Pluggable Authentication Modules

External links

  • {{man|5|nsswitch.conf|NetBSD|name-service switch configuration file}}
  • [https://www.gnu.org/software/libc/manual/html_node/Name-Service-Switch.html Name Service Switch implementation in the GNU C Library]
  • NSS module supporting LDAP: nss_ldap
  • Another NSS module supporting LDAP: nss-ldapd
  • NSS module supporting AFS: nss_afs

3 : Unix|Domain name system|Directory services

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/12 1:12:43