ptloader setup

Mike O'Rourke morourke at opsouth.org
Wed Jan 5 14:23:23 EST 2005


Igor Brezac 12/31/04 12:21am

>On Thu, 30 Dec 2004, Mike O'Rourke wrote:
>
...<snip>
>
>I would start with basics and get ptloader to work first.  Clear out the 
>pt cache db and start from the begining.
>
>Can you email me queries from the ldap server log and ptdump output?
>
>I just tested a setup similar to your and things work for me.
>
>-- 
>Igor

Hello Igor,


This is a login attempt from a SquirrelMail client. I first emptied the cache (is it normal that the cache has a "^Y^F" at the end of the username?) then tried the login.

imapd.log:

Jan  5 03:24:36 server12 ptexpire[20488]: Expiring entries older than 10 seconds (currently 1104917076)
Jan  5 03:24:36 server12 ptexpire[20488]: $Id: ptexpire.c,v 1.18 2004/05/26 16:05:59 rjs3 Exp $
Jan  5 03:24:36 server12 ptexpire[20488]: deleteing entry for test3 at testdom.mydom.com^Y^F
Jan  5 03:24:36 server12 ptexpire[20488]: mydelete: starting txn 2147483737
Jan  5 03:24:36 server12 ptexpire[20488]: mydelete: committing txn 2147483737
Jan  5 03:24:36 server12 ptexpire[20488]: finished
Jan  5 03:25:18 server12 master[20491]: about to exec /usr/cyrus/bin/imapd
Jan  5 03:25:18 server12 imap[20491]: executed
Jan  5 03:25:18 server12 imap[20491]: accepted connection
Jan  5 03:25:18 server12 imap[20491]: ptload(): pinging ptloader
Jan  5 03:25:18 server12 ptloader[6849]: accepted connection
Jan  5 03:25:18 server12 ptloader[6849]: mystore: starting txn 2147483739
Jan  5 03:25:18 server12 ptloader[6849]: mystore: committing txn 2147483739
Jan  5 03:25:18 server12 imap[20491]: badlogin: server11.mydom.com [192.168.7.11] plaintext test3 at testdom.mydom.com SASL(-13): user not found: checkpass failed
Jan  5 03:26:21 server12 master[6846]: process 20491 exited, status 0


ptdump (after login attempt):

user: test3 at testdom.mydom.com time: 1104917118 groups: 1
  secret


transaction from slapd (removing the hex representations):

... <snip>

begin get_filter_list
begin get_filter
EQUALITY
ber_scanf fmt ({mm}) ber:
ber_dump: buf=0x08213d78 ptr=0x08213da8 end=0x08213dec len=73
  0000:     ....uid..test3 at t
  0010:     estdom.mydom.com
  0020:     .#..MailUserDefH
  0030:     ost..server12.my
  0040:     dom.com0.
end get_filter 0
begin get_filter
EQUALITY
ber_scanf fmt ({mm}) ber:
ber_dump: buf=0x08213d78 ptr=0x08213dc5 end=0x08213dec len=41
  0000:     .#..MailUserDefH
  0010:     ost..server12.my
  0020:     dom.com0.
end get_filter 0
end get_filter_list
end get_filter 0
    filter: (&(uid=test3 at testdom.mydom.com)(MailUserDefHost=server12.mydom.com))
ber_scanf fmt ({M}}) ber:
ber_dump: buf=0x08213d78 ptr=0x08213dea end=0x08213dec len=2
  0000:  00 00                                              ..
    attrs:
conn=0 op=3 SRCH base="ou=email,o=internet,dc=mydom.com" scope=2 deref=0 filter="(&(uid=test3 at testdom.mydom.com)(MailUserDefHost=server12.mydom.com))"

... <snip>

access_allowed: no res from state (userPassword) 
=> acl_mask: access to entry "cn=test3,dc=testdom.mydom.com,ou=email,o=internet,dc=mydom.com", attr "userPassword" requested 
=> acl_mask: to value by "cn=server12.mydom.com,ou=hosts,o=internet,dc=mydom.com", (=n) 
<= check a_dn_pat: self 
<= check a_dn_pat: cn=repadmin,dc=mydom.com
<= acl_mask: [7] applying read(=rscx) (stop)
<= acl_mask: [7] mask: read(=rscx)
=> access_allowed: read access granted by read(=rscx)
ber_flush: 512 bytes to sd 13 
  0000:     0......d....3cn=
  0010:     test3,dc=testdom
  0020:     .mydom.com,ou=em
  0030:     ail,o=internet,d
  0040:     c=mydom.com0...0
  0050:     *..mailLocalAddr
  0060:     ess1...test3 at tes
  0070:     tdom.mydom.com0.
  0080:     ..sn1...User0...
  0090:     MailUserType1...
  00a0:     Mailbox0/..MailU
  00b0:     serDefRoute1...t
  00c0:     est3 at testdom.myd
  00d0:     om.com0...displa
  00e0:     yName1...Test Us
  00f0:      er0J..objectClas
  0100:     s1;..top..inetOr
  0110:     gPerson..inetLoc
  0120:     alMailRecipient.
  0130:     .MailUser0...uid
  0140:     1...test3 at testdo
  0150:     m.mydom.com0...m
  0160:     ailHost1...serve
  0170:     r12.mydom.com0,.
  0180:     .mailRoutingAddr
  0190:     ess1...test3 at tes
  01a0:     tdom.mydom.com0.
  01b0:     ..cn1...test30%.
  01c0:     .MailUserDefHost
  01d0:     1...server12.myd
  01e0:     om.com0...userPa
  01f0:      ssword1...secret
tls_write: want=570, written=570  

... <snip>

ldap_write: want=512, written=512 
  0000:     0......d....3cn=
  0010:     test3,dc=testdom
  0020:     .mydom.com,ou=em
  0030:     ail,o=internet,d
  0040:     c=mydom.com0...0
  0050:     *..mailLocalAddr
  0060:     ess1...test3 at tes
  0070:     tdom.mydom.com0.
  0080:     ..sn1...User0...
  0090:     MailUserType1...
  00a0:     Mailbox0/..MailU
  00b0:     serDefRoute1...t
  00c0:     est3 at testdom.myd
  00d0:     om.com0...displa
  00e0:     yName1...Test Us
  00f0:      er0J..objectClas
  0100:     s1;..top..inetOr
  0110:     gPerson..inetLoc
  0120:     alMailRecipient.
  0130:     .MailUser0...uid
  0140:     1...test3 at testdo
  0150:     m.mydom.com0...m
  0160:     ailHost1...serve
  0170:     r12.mydom.com0,.
  0180:     .mailRoutingAddr
  0190:     ess1...test3 at tes
  01a0:     tdom.mydom.com0.
  01b0:     ..cn1...test30%.
  01c0:     .MailUserDefHost
  01d0:     1...server12.myd
  01e0:     om.com0...userPa
  01f0:      ssword1...secret
conn=0 op=4 ENTRY dn="cn=test3,dc=testdom.mydom.com,ou=email,o=internet,dc=mydom.com"
<= send_search_entry
send_ldap_result: conn=0 op=4 p=3
send_ldap_result: err=0 matched="" text=""
send_ldap_response: msgid=5 tag=101 err=0
ber_flush: 14 bytes to sd 13
  0000:           0....e........  
tls_write: want=90, written=90

...<snip>

ldap_write: want=14, written=14
  0000:           0....e........
conn=0 op=4 SEARCH RESULT tag=101 err=0 nentries=1 text=
daemon: shutdown requested and initiated.
daemon: closing 6
daemon: closing 7 
daemon: closing 8
daemon: closing 9 
daemon: closing 10
connection_closing: readying conn=0 sd=13 for close 
connection_close: conn=0 sd=13
daemon: removing 13
conn=0 fd=13 closed


---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list