cyrus-imapd 2.2.1 beta - auth problem

Simon Matter simon.matter at ch.sauter-bc.com
Thu Jul 24 18:35:34 EDT 2003


>
>
> martynas at inet.lt wrote:
>
>> Hello,
>>
>> I try to setup cyrus imapd 2.2.1 beta + web-cyradm
>> (cyrus+postfix+mysql+pam_mysql+saslauthd). And I have such problem:
>> after setup, I try to login with cyrus user and get error:
>>
>> Authetntification is done through saslauthd -> pam -> pam_mysql -> mysql
>> I tried to debug, saslauthd returns "OK". But connecting to imap, I get
>> such
>> error:
>> [root at mail cyrus-imapd-2.2.1]# telnet localhost 143
>> Trying 127.0.0.1...
>> Connected to localhost.
>> Escape character is '^]'.
>> * OK mail.domain.com Cyrus IMAP4 v2.2.1-BETA-Invoca-RPM-2.2.1-1 server
>> ready
>>  login cyrus secret
>>  NO Login failed: can't request info until later in exchange
>>
>>
>> So, authentification doesn't work. Setup is correct for 2.1.x version,
>> because I changed to 2.1.14 and auhtentication works. After changing to
>> 2.2.1, I get this error. Something is changed in 2.2.1 version?
>>
>> So, could anybody help?
>
>
> This error is coming from SASL.  Could you please post the relevent
> contents of imapd.log and auth.log?

Ken,

I have now straced the pid's on 2.1.14 and 2.2.1-BETA. I have also tested
the 2.2.1-BETA with pwcheck using /etc/sasldb2 and it works well. Looks to
me like there is something broken when using saslauthd. FYI, the
2.2.1-BETA test is against cyrus-sasl 2.1.10.

Simon

Cyrus IMAPd 2.1.14, works fine

[root at crash root]# strace -p 1282
select(1, [0], NULL, NULL, {1744, 790000}) = 1 (in [0], left {1742, 110000})
time(NULL)                              = 1059085475
read(0, "2 LOGIN cyrus cyrus\r\n", 4096) = 21
brk(0x8132000)                          = 0x8132000
socket(PF_UNIX, SOCK_STREAM, 0)         = 9
connect(9, {sin_family=AF_UNIX, path="/var/run/saslauthd/mux"}, 110) = 0
writev(9, [{"\0\5cyrus\0\5cyrus\0\4imap\0\0", 22}], 1) = 22
read(9, "\0\2", 2)                      = 2
read(9, "OK", 2)                        = 2
close(9)                                = 0
brk(0x8135000)                          = 0x8135000
time([1059085475])                      = 1059085475
getpid()                                = 1282
rt_sigaction(SIGPIPE, {0x402df9e0, [], 0x4000000}, {SIG_IGN}, 8) = 0
send(8, "<181>Jul 25 00:24:35 imapd[1282]"..., 96, 0) = 96
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
socket(PF_UNIX, SOCK_STREAM, 0)         = 9


Cyrus IMAPd 2.2.1-BETA, doesn't work

[root at black etc]# strace -p 5072
select(1, [0], NULL, NULL, {1793, 90000}) = 1 (in [0], left {1790, 240000})
time(NULL)                              = 1059085318
read(0, "2 LOGIN cyrus cyrus\r\n", 4096) = 21
socket(PF_UNIX, SOCK_STREAM, 0)         = 10
connect(10, {sa_family=AF_UNIX, path="/var/run/saslauthd/mux"}, 110) = 0
writev(10, [{"\0\5cyrus\0\5cyrus\0\4imap\0\0", 22}], 1) = 22
read(10, "\0\2", 2)                     = 2
read(10, "OK", 2)                       = 2
close(10)                               = 0
select(1, [0], NULL, NULL, {0, 0})      = 0 (Timeout)
write(1, "2 NO Login failed: can\'t request"..., 63) = 63
time(NULL)                              = 1059085318
select(1, [0], NULL, NULL, {1800, 0})   = 1 (in [0], left {1800, 0})
time(NULL)                              = 1059085318
read(0, "", 4096)                       = 0
close(9)                                = 0
munmap(0x40022000, 4096)                = 0
unlink("/var/lib/imap/proc/5072")       = 0


>
> --
> Kenneth Murchison     Oceana Matrix Ltd.
> Software Engineer     21 Princeton Place
> 716-662-8973 x26      Orchard Park, NY 14127
> --PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
>
>





More information about the Info-cyrus mailing list