首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >LDAP身份验证不适用于websvn

LDAP身份验证不适用于websvn
EN

Stack Overflow用户
提问于 2013-02-28 15:01:31
回答 1查看 1.3K关注 0票数 1

我的设置如下:使用SVN1.5.6和WebSVN 2.3.3的Win7 (32位)桌面上的Apache2.2.21。

当我在websvn.conf文件中使用这些设置浏览到我的websvn页面时,LDAP Auth不起作用

代码语言:javascript
复制
Alias /websvn/ "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/websvn/"

<Directory /websvn/>
Options FollowSymLinks
CheckCaseOnly on

#Redirect any requests to this page to the page u want
FallbackResource  listing.php

Order allow,deny
Allow from all

<IfModule mod_php4.c>
    php_flag magic_quotes_gpc Off
    php_flag track_vars On
</IfModule>

#Valid NIE account to access nie ldap. Recommended to have only read-only rights
AuthLDAPBindDN "user001@somewhere.com"
AuthLDAPBindPassword "password"

#The LDAP query URL
AuthLDAPURL "ldap://xxx:389/DC=x,DC=x,DC=x,DC=x,DC=x?sAMAccountName?sub?(objectClass=user)" NONE

AuthType Basic
AuthName "Websvn DIR"
AuthBasicProvider ldap
AuthzLDAPAuthoritative off  

Require ldap-user user
</Directory>

但是,如果将websvn.conf文件更改为以下内容,

代码语言:javascript
复制
<Location /websvn/> 
Options FollowSymLinks
CheckCaseOnly on

FallbackResource listing.php

Order allow,deny
Allow from all

<IfModule mod_php4.c>
    php_flag magic_quotes_gpc Off
    php_flag track_vars On
</IfModule>


AuthLDAPBindDN "user001@somewhere.com"
AuthLDAPBindPassword "password"

#The LDAP query URL
AuthLDAPURL "ldap://xxx:389/DC=x,DC=x,DC=x,DC=x,DC=x?sAMAccountName?sub?(objectClass=user)" NONE

AuthType Basic
AuthName "Websvn Loc"
AuthBasicProvider ldap
AuthzLDAPAuthoritative off  

Require ldap-user user
</Location>

所以,我的问题是为什么会发生这种情况?为什么LDAP身份验证只在websvn配置文件正在使用而不是在使用时生效?

EN

回答 1

Stack Overflow用户

发布于 2013-04-09 05:33:32

Directory指令必须与文件系统上目录的完整路径相匹配:

http://httpd.apache.org/docs/2.2/mod/core.html#directory

因此,因为在C:驱动器的根目录中没有/websvn目录,所以该指令不匹配,并且没有配置LDAP身份验证。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/15129450

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档