我使用的是centos 6,我想configurationldap服务器。我需要关于ldap.conf文件的指导。 那么,如果我们探讨/ etc我们可以看到一个文件ldap.conf,并有一个文件夹openldap也有ldap.conf文件。
我想问的问题是为什么有两个相同名称的文件和哪一个将用于configurationldap服务器。
感谢gardenair
对于LDAP 服务器 ,答案很简单:您提到的所有文件都不正确。
OpenLDAP是通过/etc/ldap/slapd.confconfiguration的,或者在/etc/ldap/slapd.d目录下dynamic地configuration。 如果你仍然想以老式的方式configurationslapd(slapd.conf文件),你可以将configuration文件转换成新的格式
mkdir /etc/ldap/slap.d slaptest -f /etc/ldap/slapd.conf -F /etc/ldap/slapd.d
/etc/ldap/ldap.conf是LDAP 客户端的全局configuration文件,例如OpenLDAP提供的客户端程序。 /etc/ldap.conf通常用于像pam_ldap或nss_ldap模块configuration的东西。
在尝试掌握(打开)LDAP时准备消耗大量咖啡或其他饮料。 这个东西肯定是一个可以运行的野兽,但是当它运行起来的时候,它只是运行并且无故障运行。
文件/etc/ldap.conf通常是libnss-ldap的configuration文件,它允许查询LDAP服务器的帐户信息,组,networking组,主机等。 不再推荐使用这个库,因为像libnss-ldapd和sssd这样的现代替代方法提供了相同或更多的function。
文件/etc/openldap/ldap.conf (path取决于您的发行版)通常是LDAP库的configuration文件。 每个编译了(Open)LDAP支持的程序,尤其是ldapsearch,ldapadd,ldapmodify,还有Apache的mod_ldap等都使用这个configuration文件。 在其中,您可以设置TLS证书,默认LDAP主机,基本DN,SASL机制等path。