OpenLDAP RHEL 6

我一直在RHEL 6上configurationOpenLDAP,似乎你已经运行了下面的代码来重buildconfig dirs。 我没有问题,但是我的问题是,我想改变服务器密码,每次我改变configuration时,是否必须经历整个过程? 在使用RHEL6方法构buildslapdconfiguration后,有没有办法改变slapdconfiguration?

以下是我在网上find的build议http://www.linuxtopia.org/online_books/rhel6/rhel_6_migration_guide/rhel_6_migration_ch07s03.html

此示例假定要从旧slapdconfiguration转换的文件位于/etc/openldap/slapd.conf,并且OpenLDAPconfiguration的新目录位于/etc/openldap/slapd.d/。 删除新的/etc/openldap/slapd.d/目录的内容:

rm -rf /etc/openldap/slapd.d/*

运行slaptest检查configuration文件的有效性,并指定新的configuration目录:slaptest -f /etc/openldap/slapd.conf -F /etc/openldap/slapd.d

在新目录上configuration权限:chown -R ldap:ldap /etc/openldap/slapd.d

chmod -R 000 /etc/openldap/slapd.d

chmod -R u + rwX /etc/openldap/slapd.d

澄清。 我想了解如何使用新版本的openldap编辑slapdconfiguration,其中configuration保存在模式中,而不是原始的slapd.conf

这些指令适用于从旧式slapd.confconfiguration文件转换为新式slapd.d/*configuration目录的情况。 移动configuration时只需执行此操作。 一旦。

UNIX / Linux堆栈的人给了我一个很好的答案。

https://unix.stackexchange.com/questions/16092/doing-openldap-config-changes-in-rhel-6