【问题标题】:Apache2 Authentifiation with LDAP使用 LDAP 的 Apache2 身份验证
【发布时间】:2014-12-05 13:32:30
【问题描述】:

我有一个使用 <Directory> 的有效 LDAP 身份验证,但现在我需要使用 <Location> 进行相同的身份验证。

工作:

<Directory /home/foo-bar/>
    DAV on
    AuthType Basic
    AuthName "foo bar"
    AuthBasicProvider ldap
    AuthLDAPUrl ldap://www.foo.bar
    AuthLDAPBindDN cn=admin,dc=bar
    AuthLDAPBindPassword foo
    AuthLDAPGroupAttribute memberUid
    AuthLDAPGroupAttributeIsDN off
    Require valid-user
</Directory>

什么都不做:

<Location /foo-bar/>
    DAV on
    AuthType Basic
    AuthName "foo bar"
    AuthBasicProvider ldap
    AuthLDAPUrl ldap://www.foo.bar
    AuthLDAPBindDN cn=admin,dc=bar
    AuthLDAPBindPassword foo
    AuthLDAPGroupAttribute memberUid
    AuthLDAPGroupAttributeIsDN off
    Require valid-user
</Location>

当我尝试使用 passwd 文件时仅允许 ip 地址 1.2.3.4 oder 测试该位置时该位置有效,但当我尝试 ldap 身份验证时没有任何反应(= 浏览器显示页面)。

【问题讨论】:

    标签: ldap apache2


    【解决方案1】:

    这行得通:

    <Location /railo-context/>
      AuthBasicProvider ldap
      AuthType Basic
      AuthName "Railo Admin"
      AuthLDAPURL ldap://www......
      AuthLDAPBindDN cn=admin,dc=....
      AuthLDAPBindPassword .....
      Require ldap-user .....
    </Location>
    

    【讨论】:

      猜你喜欢
      • 2015-12-04
      • 1970-01-01
      • 2012-09-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-07-19
      相关资源
      最近更新 更多