# ldapsearch -x -D 'uid=atyu30,o=china.com,o=xitongbu,dc=atyu30,dc=com' -b 'o=china.com,o=xitongbu,dc=atyu30,dc=com' -W
Enter LDAP Password:
# extended LDIF
#
# LDAPv3
# base with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#
# china.com, xitongbu, atyu30.com
dn: o=china.com,o=xitongbu,dc=atyu30,dc=com
objectClass: comanization
o: china.com
# atyu30, china.com, xitongbu, atyu30.com
dn: uid=atyu30,o=china.com,o=xitongbu,dc=atyu30,dc=com
homeDirectory: /home/vmail/xitongbu
mail:
objectClass: CourierMailAccount
objectClass: comanizationalPerson
objectClass: top
mailbox: china.com/atyu30/Maildir/
uid: atyu30
userPassword:: YnV6aGlkYW8=
cn: atyu30
sn: atyu30
# search result
search: 2
result: 0 Success
# numResponses: 3
# numEntries: 2
#
# telnet localhost 25
Trying ::1...
Connected to localhost.
Escape character is '^]'.
220 mail.atyu30.com ESMTP Postfix
mail from:
还是卡在这里没反应了
maillog:
Nov 18 10:24:01 mail postfix/trivial-rewrite[15080]: warning: dict_ldap_connect: Unable to bind to server as uid=vmail,o=xitongbu,dc=atyu30,dc=com: 2 (Protocol error)
Nov 18 10:24:01 mail postfix/trivial-rewrite[15080]: fatal: ldap:aliases(0,lock|fold_fix): table lookup problem
Nov 18 10:24:02 mail postfix/smtpd[9044]: warning: problem talking to service rewrite: Undefined error: 0
Nov 18 10:24:02 mail postfix/master[4930]: warning: process /usr/local/libexec/postfix/trivial-rewrite pid 15080 exit status 1
Nov 18 10:24:02 mail postfix/master[4930]: warning: /usr/local/libexec/postfix/trivial-rewrite: bad command startup -- throttling
# openldap log
Nov 18 10:23:00 mail slapd[7436]: conn=6 op=0 RESULT tag=97 err=2 text=historical protocol version requested, use LDAPv3 instead
Nov 18 10:23:01 mail slapd[7436]: conn=6 fd=13 closed (connection lost)
Nov 18 10:24:01 mail slapd[7436]: conn=7 fd=13 ACCEPT from IP=127.0.0.1:2135 (IP=0.0.0.0:389)
Nov 18 10:24:01 mail slapd[7436]: conn=7 op=0 BIND dn="uid=vmail,o=xitongbu,dc=atyu30,dc=com" method=128
Nov 18 10:24:01 mail slapd[7436]: conn=7 op=0 RESULT tag=97 err=2 text=historical protocol version requested, use LDAPv3 instead
Nov 18 10:24:02 mail slapd[7436]: conn=7 fd=13 closed (connection lost)
Nov 18 10:25:02 mail slapd[7436]: conn=8 fd=13 ACCEPT from IP= 127.0.0.1:43131 (IP=0.0.0.0:389)
Nov 18 10:25:02 mail slapd[7436]: conn=8 op=0 BIND dn="uid=vmail,o=xitongbu,dc=atyu30,dc=com" method=128
Nov 18 10:25:02 mail slapd[7436]: conn=8 op=0 RESULT tag=97 err=2 text=historical protocol version requested, use LDAPv3 instead
Nov 18 10:25:03 mail slapd[7436]: conn=8 fd=13 closed (connection lost)
# testsaslauthd -f /var/spool/postfix/var/sasl2/mux -u -p 1234
saslauthd[1659] :rel_accept_lock : released accept lock
saslauthd[27718] :get_accept_lock : acquired accept lock
saslauthd[1659] :do_auth : auth success: [user=atyu30@china.com] [service=imap] [realm=] [mech=ldap]
0: OK "Success."
saslauthd[1659] :do_request : response: OK
阅读(3507) | 评论(5) | 转发(0) |