- 论坛徽章:
- 0
|
请教:apache用LDAP用户认证不能通过,请各位老大指点一下
其中的ldap用户收发邮件正常
httpd.conf的配置:
Alias /mysecret "/usr/local/mysecret"
<Directory /usr/local/mysecret>
AuthType Basic
AuthName "login"
AuthLDAPURL "ldap://192.168.0.9/dc=extmail.org"
require valid-user
</Directory>
LDAP的日志:
Feb 20 14:02:17 mail slapd[4591]: conn=13 fd=10 ACCEPT from IP=192.168.0.9:32904 (IP=0.0.0.0:389)
Feb 20 14:02:17 mail slapd[4591]: conn=13 op=0 BIND dn="" method=128
Feb 20 14:02:17 mail slapd[4591]: conn=13 op=0 RESULT tag=97 err=0 text=
Feb 20 14:02:17 mail slapd[4591]: conn=13 op=1 SRCH base="dc=extmail.org" scope=2 deref=3 filter="(&(objectClass=*)(uid=liu))"
Feb 20 14:02:17 mail slapd[4591]: conn=13 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
Feb 20 14:02:17 mail slapd[4591]: conn=13 op=2 BIND dn="mail=liu@extmail.org,virtualDomain=extmail.org,o=extmailAccount,dc=extmail.org" method=128
Feb 20 14:02:17 mail slapd[4591]: conn=13 op=2 RESULT tag=97 err=49 text=
Feb 20 14:02:17 mail slapd[4591]: conn=13 op=3 UNBIND
Feb 20 14:02:17 mail slapd[4591]: conn=13 fd=10 closed
http access日志:192.168.0.2 - liu [20/Feb/2009:14:00:52 +0800] "GET /mysecret HTTP/1.1" 401 478 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
192.168.0.2 - liu [20/Feb/2009:14:02:17 +0800] "GET /mysecret HTTP/1.1" 401 478 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
http error 日志[Fri Feb 20 14:00:52 2009] [warn] [client 192.168.0.2] [5123] auth_ldap authenticate: user liu authentication failed; URI /mysecret [ldap_simple_bind_s() to check user credentials failed][Invalid credentials]
[Fri Feb 20 14:02:17 2009] [warn] [client 192.168.0.2] [5124] auth_ldap authenticate: user liu authentication failed; URI /mysecret [ldap_simple_bind_s() to check user credentials failed][Invalid credentials]
[ 本帖最后由 liu-shaobo 于 2009-2-20 14:25 编辑 ] |
|