SASL - PAM - pam_mysql Problem

Andreas Roth andreas at schosemail.de
Son Sep 4 08:21:45 CEST 2005


Hallo Liste,

Sobald ich versuche meinen saslauthd Deamon gegen das PAM
authentifizierne zu lassen stürzt er mit der Fehlermeldung "read size
failed" ab. Zuerst killt er jeweils ein Childprozesse und dann den
saslauthd-Deamon. Ich verwende pam_mysql 0.7. Versuche ich die
Authentifizierung via shadow funktionierts wunderbar..

also:
>/usr/local/sbin/saslauthd -V -c -a pam

bringt bei:
>testsaslauthd -u andreas.test.de -p test
>size read failed
>0:

in der /var/log/auth.log steht:

Sep  4 08:01:47 schose saslauthd[19309]: get_accept_lock : acquired
accept lock
Sep  4 08:01:47 schose saslauthd[19308]: cache_get_rlock : attempting a
read lock on slot: 430
Sep  4 08:01:47 schose saslauthd[19308]: cache_lookup    :
[login=andreas.krausmueller.de] [service=] [realm=imap]: not found,
update pending
Sep  4 08:01:47 schose saslauthd[19308]: cache_un_lock   : attempting to
release lock on slot: 430
Sep  4 08:01:47 schose saslauthd[19308]: server_exit     : child exited:
19308
Sep  4 08:01:47 schose saslauthd[19307]: handle_sigchld  : child exited:
19308


Noch ein Strace von sich dem "sterbenden" Childprozess..

fcntl64(9, F_SETFL, O_RDWR)             = 0
write(9, "O\0\0\0\3SELECT 1, password FROM acc"..., 83) = 83
read(9, "\1\0\0\1", 4)                  = 4
read(9, "\2", 1)                        = 1
read(9, "\r\0\0\2", 4)                  = 4
read(9, "\0\0011\3\1\0\0\1\10\3\1\0\0", 13) = 13
read(9, "\37\0\0\3", 4)                 = 4
read(9, "\vaccountuser\10password\3\36\0\0\1\375\3\201\0\0", 31) = 31
read(9, "\1\0\0\4", 4)                  = 4
read(9, "\376", 1)                      = 1
read(9, "\7\0\0\5", 4)                  = 4
read(9, "\0011\4test", 7)               = 7
read(9, "\1\0\0\6", 4)                  = 4
read(9, "\376", 1)                      = 1
fcntl64(9, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
read(9, 0x8056bd8, 8192)                = -1
EAGAIN (Resource temporarily unavailable)
fcntl64(9, F_SETFL, O_RDWR)             = 0
write(9, "\1\0\0\0\1", 5)               = 5
shutdown(9, 2 /* send and receive */)   = 0
close(9)                                = 0
getpid()                                = 19309
time([1125813765])                      = 1125813765
getpid()                                = 19309
rt_sigaction(SIGPIPE, {0x40139210, [], SA_RESTORER, 0x4008e6f8},
{SIG_IGN}, 8) = 0
send(3, "<39>Sep  4 08:02:45 saslauthd[19"..., 75, 0) =
75rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0exit_group(0)
               = ?
Process 19309 detached 19309rt_sigaction(SIGPIPE, {0x40139210, [],
SA_RESTORER, 0x4008e6f8}, {SIG_IGN}, 8) = 0send(3, "<39>Sep  4 08:02:45
saslauthd[19"..., 75, 0) = 75rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) =
0exit_group(0)                           = ?Process 19309 detached

irgendwelche Tipps??

Vielen Dank im Voraus!

Andreas

-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : signature.asc
Dateityp    : application/pgp-signature
Dateigröße  : 253 bytes
Beschreibung: OpenPGP digital signature
URL         : http://www.tlug.de/pipermail/tlug_allgemein/attachments/20050904/d5ee2a25/signature.pgp