ptloader setup

Igor Brezac igor at ipass.net
Thu Dec 30 18:08:46 EST 2004


On Thu, 30 Dec 2004, Mike O'Rourke wrote:

>> My bad.  The first patch is not good and the second patch is incomplete.
>> This patch is trivial; I am using a newer version of ldap.c than the one
>> in cvs and I thought that I could just fix the original code without
>> testing.  Wrong... To make things worse, I pasted the patch in my email
>> client which probably corrupted the patch.
>>
>> Ok, the attached patch should apply and compile without errors.  Please
>> report what you find.
>>
> Hi Igor,
>
> Sorry this reply is so long in coming, but I was not receiving any posts since the CMU mail server refuses to talk to mine (since Dec. 7, in fact). I had to subscribe with another address to start getting the posts again. They still (try to) come to the old server as well.
>
> I applied the most recent patch you sent, and it compiled and runs. It will not, however authenticate. When I try to login, the LDAP server returns one entry and the login fails. If I look at the cache with ptdump, I see the correct username and password dutifully and correctly cached. The logfile for a login attempt looks like:
>    Dec 29 16:38:42 server12 master[6466]: about to exec /usr/cyrus/bin/imapd
>    Dec 29 16:38:42 server12 imap[6466]: executed
>    Dec 29 16:38:42 server12 imap[6466]: accepted connection
>    Dec 29 16:38:43 server12 imap[6466]: mystore: starting txn 2147483656
>    Dec 29 16:38:43 server12 imap[6466]: mystore: committing txn 2147483656
>    Dec 29 16:38:43 server12 imap[6466]: starttls: TLSv1 with cipher AES256-SHA (256/256 bits new) no authentication
>    Dec 29 16:38:49 server12 imap[6466]: ptload(): pinging ptloader
>    Dec 29 16:38:49 server12 ptloader[5568]: accepted connection
>    Dec 29 16:38:49 server12 ptloader[5568]: mystore: starting txn 2147483658
>    Dec 29 16:38:49 server12 ptloader[5568]: mystore: committing txn 2147483658
>    Dec 29 16:38:49 server12 imap[6466]: badlogin: localhost [127.0.0.1] LOGIN [SASL(-13): user not found: checkpass failed]
>    Dec 29 16:40:15 server12 master[5565]: process 6466 exited, status 0
> and
>    Dec 29 16:59:35 server12 imap[6852]: accepted connection
>    Dec 29 16:59:35 server12 imap[6852]: mydelete: starting txn 2147483653
>    Dec 29 16:59:35 server12 imap[6852]: mydelete: committing txn 2147483653
>    Dec 29 16:59:35 server12 imap[6852]: mystore: starting txn 2147483654
>    Dec 29 16:59:35 server12 imap[6852]: mystore: committing txn 2147483654
>    Dec 29 16:59:35 server12 imap[6852]: starttls: TLSv1 with cipher AES256-SHA (256/256 bits new) no authentication
>    Dec 29 16:59:39 server12 imap[6852]: ptload(): pinging ptloader
>    Dec 29 16:59:39 server12 ptloader[6849]: accepted connection
>    Dec 29 16:59:39 server12 imap[6852]: ptload(): bad response from ptloader server: identifier not found
>    Dec 29 16:59:39 server12 imap[6852]: badlogin: localhost [127.0.0.1] LOGIN [SASL(-13): authentication failure: bad userid authenticated]
>
>
> I have tried both with and without the autocreate, autosieve and deletequota patches from Athens.
>

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
---
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