Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3333721
  • 博文数量: 815
  • 博客积分: 12898
  • 博客等级: 上将
  • 技术积分: 7883
  • 用 户 组: 普通用户
  • 注册时间: 2006-12-25 09:57
文章分类

全部博文(815)

文章存档

2014年(1)

2011年(46)

2010年(192)

2009年(121)

2008年(70)

2007年(385)

分类: BSD

2007-11-18 02:57:10

# 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
阅读(3501) | 评论(5) | 转发(0) |
给主人留下些什么吧!~~