- 论坛徽章:
- 0
|
采用CentOS 5.6 X64 作业系统,Postfix +Dovecot ,OpenLDAP作为认证资料库,可是最近发现/var/log/openldap.log里面都是如下的报错:
Dec 29 14:21:33 mail slapd[3070]: <= bdb_equality_candidates: (active) not indexed
Dec 29 14:21:33 mail slapd[3070]: <= bdb_equality_candidates: (mailLocalAddress) not indexed
Dec 29 14:21:33 mail slapd[3070]: <= bdb_equality_candidates: (virtualDomain) not indexed
但,现在收发内外网邮件一切正常,只是有以上的提示,于是我修改/etc/openldap/slapd.conf,增加如下:
index virtualDomain eq
index mailLocalAddress eq
index active eq
以上“no index”的报错是没有了,可是POP3无法收到邮件,提示"ERR Login failed"的错误,我用telnet localhost 110测试,用户名验证通过后,密码无法验证通过。
相关测试如下:
增加index active等三条之前,认证通过:
[root@sz2 ~]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK Hello there.
user wht@extmail.org
+OK Password required.
pass psdaemon
+OK logged in.
quit
+OK Bye-bye.
Connection closed by foreign host.
[root@sz2 ~]# tailf /var/log/openldap.log
Dec 30 08:26:00 sz2 slapd[32310]: conn=0 fd=12 ACCEPT from IP=127.0.0.1:45403 (IP=0.0.0.0:389)
Dec 30 08:26:00 sz2 slapd[32310]: conn=0 op=0 BIND dn="cn=Manager,dc=extmail.org" method=128
Dec 30 08:26:00 sz2 slapd[32310]: conn=0 op=0 BIND dn="cn=Manager,dc=extmail.org" mech=SIMPLE ssf=0
Dec 30 08:26:00 sz2 slapd[32310]: conn=0 op=0 RESULT tag=97 err=0 text=
Dec 30 08:26:00 sz2 slapd[32310]: conn=0 op=1 SRCH base="o=extmailAccount,dc=extmail.org" scope=2 deref=0 filter="(&(&(objectClass=extmailUser)(active=1))(mail=wht@extmail.org))"
Dec 30 08:26:00 sz2 slapd[32310]: conn=0 op=1 SRCH attr=homeDirectory mailmessageStore cn userPassword uidNumber gidNumber mail quota disablesmtpd disablesmtp disablewebmail disablenetdisk disableimap disablepop3
Dec 30 08:26:00 sz2 slapd[32310]: <= bdb_equality_candidates: (active) not indexed
Dec 30 08:26:00 sz2 slapd[32310]: conn=0 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
增加index active三条记录之后,认证无法通过:
[root@sz2 ~]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK Hello there.
user wht@extmail.org
+OK Password required.
pass psdaemon
-ERR Login failed.
Connection closed by foreign host.
[root@sz2 ~]# tailf /var/log/openldap.log
Dec 30 08:24:19 sz2 slapd[32193]: conn=0 fd=12 ACCEPT from IP=127.0.0.1:39691 (IP=0.0.0.0:389)
Dec 30 08:24:19 sz2 slapd[32193]: conn=0 op=0 BIND dn="cn=Manager,dc=extmail.org" method=128
Dec 30 08:24:19 sz2 slapd[32193]: conn=0 op=0 BIND dn="cn=Manager,dc=extmail.org" mech=SIMPLE ssf=0
Dec 30 08:24:19 sz2 slapd[32193]: conn=0 op=0 RESULT tag=97 err=0 text=
Dec 30 08:24:19 sz2 slapd[32193]: conn=0 op=1 SRCH base="o=extmailAccount,dc=extmail.org" scope=2 deref=0 filter="(&(&(objectClass=extmailUser)(active=1))(mail=wht@extmail.org))"
Dec 30 08:24:19 sz2 slapd[32193]: conn=0 op=1 SRCH attr=homeDirectory mailmessageStore cn userPassword uidNumber gidNumber mail quota disablesmtpd disablesmtp disablewebmail disablenetdisk disableimap disablepop3
Dec 30 08:24:19 sz2 slapd[32193]: conn=0 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text= |
|