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/

相关文章

在Linux上编写运行C语言程序,经常会遇到程序崩溃、卡死等异...
git使用小结很多人可能和我一样,起初对git是一无所知的。我...
1. 操作系统环境、安装包准备 宿主机:Max OSX 10.10.5 虚拟...
因为业务系统需求,需要对web服务作nginx代理,在不断的尝试...
Linux模块机制浅析 Linux允许用户通过插入模块,实现干预内核...
一、Hadoop HA的Web页面访问 Hadoop开启HA后,会同时存在两个...