redhat – 什么是nsswitch compat模式?

redhat – 什么是nsswitch compat模式?,第1张

概述Red Hat建议我在/etc/nsswitch.conf中使用compat模式作为枚举LDAP用户的选项之一,但后来说它不是一个常用的方法. nsswitch.confpasswd: files compatpasswd_compat: ldapin passwd file, add +@netgroup. 什么是这种比较模式? 这篇摘录摘自Linux倡导者Evi Nemeth(不幸的是 Red Hat建议我在/etc/nsswitch.conf中使用compat模式作为枚举LDAP用户的选项之一,但后来说它不是一个常用的方法.
nsswitch.confpasswd: files compatpasswd_compat: ldapin passwd file,add +@netgroup.

什么是这种比较模式?

解决方法 这篇摘录摘自linux倡导者Evi Nemeth(不幸的是最近在海上失败了 http://www.theregister.co.uk/2013/07/05/evi_nemeth_unix_dead/)写的第一本也是最好的linux管理书之一:linux®administration手册.对于这种情况,它出现在本书的第二版中,我不确定这本书的最新版本是否重复,因为当时的NIS和NIS不太相关.

Configuration information can be distributed in several ways. Every
system understands flat files and kNows how to use DNS to look up
hostnames and Internet addresses. Most also understand NIS. Since a
given pIEce of information Could come from several potential sources,
linux provIDes a way for you to specify the sources that are to be
checked and the order in which the checks are made.

In the original (pre-linux) implementation of NIS,some configuration
files (the /etc/passwd and /etc/group files in particular) had to be
configured to “invite in” the contents of the corresponding NIS maps.
The invitation was extended by inclusion of special incantations in
the files themselves. A lone “+” at the beginning of a line would
include the entire NIS map,“+@netgroup” would include only entrIEs
relevant to a given netgroup,and “+name” would include a single
entry.

This approach was never very well liked,and it has been superseded by
a central config file,/etc/nsswitch.conf,that allows an explicit
search path to be specifIEd for each type of administrative
information. The original behavior can be emulated by use of a
compatibility mode,but it’s unlikely you would want to use this
feature on a newly configured network. (Unfortunately,emulation is
most distributions’ default.)

The common sources are nis,nisplus,files,dns,and compat; they refer to NIS,NIS+,[5] vanilla flat files (ignoring tokens such as “+”),DNS,and NISifIEd flat files (honoring “+”),respectively.

总结

以上是内存溢出为你收集整理的redhat – 什么是nsswitch compat模式?全部内容,希望文章能够帮你解决redhat – 什么是nsswitch compat模式?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/1044577.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-24
下一篇 2022-05-24

发表评论

登录后才能评论

评论列表(0条)

保存