【问题标题】:Using LDAP Configuration parameters from Apache to other LDAP Clients使用 LDAP 配置参数从 Apache 到其他 LDAP 客户端
【发布时间】:2013-02-11 21:17:57
【问题描述】:

我有以下用于 APACHE 的 LDAP 配置。如何将此信息用于其他 LDAP 客户端。

    <Directory /opt/sites/MyAuthSite.V2/html*>
        Options ExecCGI
        AllowOverride AuthConfig
        Order allow,deny
        Allow from all
        AuthLDAPEnabled on
        AuthLDAPAuthoritative on
        AuthName  "MyAuth"
        AuthType  Basic
        AuthLDAPURL ldap://ldap.xyz.com:389/cn=Users,dc=abccorp,dc=com?samaccountname
        AuthLDAPBindDN "user@abc.com"
        AuthLDAPBindPassword userpass
        require msSFU30PosixMemberOf cn=abc.com_g_mts,cn=users,dc=abccorp,dc=com
    </Directory>

我需要在 Softerra LDAP Browser 4.5(免费 LDAP Explorer)和 OpenERP 中使用它。但我不知道如何处理身份验证部分。我附上它的屏幕截图。

【问题讨论】:

    标签: active-directory ldap openldap


    【解决方案1】:

    Apache Config 的这一部分回答了您的问题:

        AuthLDAPURL ldap://ldap.xyz.com:389/cn=Users,dc=abccorp,dc=com?samaccountname
        AuthLDAPBindDN "user@abc.com"
        AuthLDAPBindPassword userpass
    

    所以你的主机是端口 389 上的 ldap.xyz.com。

    您的用户的 BindDN(以及您的委托人)是 user@abc.com 和 userpass 作为密码。

    现在,可能 user@abc.com 作为主体将不起作用(取决于 Softerra)。但是根据您的配置方式,您的用户可能类似于 cn=user,cn=Users,dc=abccorp,dc=com。

    需要注意的一个提示,cn=Users 容器不是 OU。它是一个容器 (cn=),通常会混淆从 AD 上的 LDAP 开始的人们。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-04-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-01-03
      • 2013-10-28
      • 2013-06-01
      相关资源
      最近更新 更多