【问题标题】:slapd.conf is missing on debian 9debian 9 上缺少 slapd.conf
【发布时间】:2019-03-22 06:13:35
【问题描述】:

在 debian 9 上安装 openLDAP 命令

sudo apt install slapd ldap-utils ldapscripts

问题

我只能在/etc/ldap目录下找到ldap.conf,找不到slapd.conf。现在我想定义我的对象类,任何人都可以帮助我吗?

【问题讨论】:

    标签: ldap debian openldap


    【解决方案1】:

    我和你有同样的问题,这里是提示。 https://wiki.debian.org/LDAP/OpenLDAPSetup#Missing_slapd.conf.3F

    【讨论】:

      【解决方案2】:

      @winwin 链接的 Debian wiki 已删除相关信息,但仍可在页面的历史版本中找到它:https://wiki.debian.org/LDAP/OpenLDAPSetup?action=recall&rev=122#Missing_slapd.conf.3F

      后人相关资料如下:


      从 2.4.23-3 版本开始,OpenLDAP 的配置默认更改为 /etc/ldap/slapd.d。 Debian 中的 OpenLDAP 包提供了到新配置样式的自动迁移。使用新的配置样式,可以在不重新启动 slapd 的情况下即时更改值。通过使用 ldif 文件和 ldap{add,modify} 进行更改。在 Debian 中,您可以使用以下命令搜索配置:

      ldapsearch -Y EXTERNAL -H ldapi:/// -b "cn=config" 
      

      要修改配置使用命令:

      ldapmodify -Y EXTERNAL -H ldapi:/// -f <file.ldif> 
      

      有关配置选项,请参阅现有的几个联机帮助页或上游提供的文档。

      仍然可以使用 slapd.conf(可选)。

      【讨论】:

        猜你喜欢
        • 2020-06-29
        • 2016-05-20
        • 2014-06-08
        • 1970-01-01
        • 2013-05-22
        • 1970-01-01
        • 1970-01-01
        • 2018-06-03
        • 1970-01-01
        相关资源
        最近更新 更多