加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

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

发布时间:2020-12-13 18:10:08 所属栏目:Linux 来源:网络整理
导读:我刚安装了带有openldap的新鲜Centos 6.2和带有yum命令的samba.我在找到slapd.conf文件时遇到了一些问题. slap.d /有一个文件夹,但默认情况下没有conf文件.我可以看到文件夹 cacerts schemasldap.d 和ldap.conf文件. 我还检查了Fedora 15,发现没有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/

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读