linux – CentOS 6.2安装openldap后没有slapd.conf

前端之家收集整理的这篇文章主要介绍了linux – CentOS 6.2安装openldap后没有slapd.conf前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我刚安装了带有openldap的新鲜Centos 6.2和带有yum命令的samba.我在找到slapd.conf文件时遇到了一些问题. slap.d /有一个文件夹,但默认情况下没有conf文件.我可以看到文件
cacerts 
schema
sldap.d

和ldap.conf文件.

我还检查了Fedora 15,发现没有slapd.conf文件.那么现在从哪里开始?我用Google搜索了但是我找到了Centos 5.x或Ubuntu的openldap配置,它遵循/etc/openldap/slapd.conf中的配置文件

解决方法

Note that OpenLDAP no longer reads its configuration from the /etc/openldap/slapd.conf file. Instead,it uses a configuration database located in the /etc/openldap/slapd.d/ directory.

资料来源:The official upstream documentation for RHEL7

The slapd configuration consists of LDIF entries organized in a hierarchical directory structure,and the recommended way to edit these entries is to use the server utilities described in 07001.

换句话说,RHEL6(和CentOS6)不再有一个slapd.conf文件来配置openldap.您应该使用第16.1.2.1节中提到的工具来配置openldap.

如果您要导入旧配置,则可以使用以下命令执行此操作:slaptest -f /etc/openldap/slapd.conf -F /etc/openldap/slapd.d/

原文链接:https://www.f2er.com/linux/401140.html

猜你在找的Linux相关文章