Apache,SSL客户端证书,LDAP授权

高在那里,是否有可能混合mod_ssl和mod_auth_ldap,以便通过mod_auth_ldap(Require组)对客户端证书和授权进行身份validation? 如果是这样,你能给我一些指针吗? 提前致谢

好的,对于那些感兴趣的人,apache需要存在一个AuthType指令,并且通过某个模块validation用户名。

所以我写了一个很短的模块,接受AuthType Any并接受任何用户名。

configuration看起来像这样:

<Location /slaptest> Allow from all SSLVerifyClient require SSLVerifyDepth 1 SSLUserName SSL_CLIENT_S_DN_CN AuthType Any AuthAnyAuthoritative on AuthLDAPURL "ldaps://vldap-rectech/ou=XXX,ou=YYY,o=ZZZ?cn" AuthzLDAPAuthoritative on AuthLDAPBindDN "cn=UUU,ou=Users,ou=XXX,ou=YYY,o=ZZZ" AuthLDAPBindPassword "******" AuthLDAPGroupAttributeIsDN on AuthLDAPGroupAttribute member AuthLDAPRemoteUserIsDN off Require valid-user Require ldap-group cn=ADMIN,ou=Groups,ou=XXX,ou=YYY,o=ZZZ </Location>