pop login failure not logged to syslog
Ken Murchison
ken at oceana.com
Thu Dec 5 23:49:24 EST 2002
It looks like this is legacy SASLv1 code which wasn't ported. Try this
patch:
http://bugzilla.andrew.cmu.edu/cgi-bin/cvsweb.cgi/src/cyrus/imap/pop3d.c.diff?r1=1.129&r2=1.130
steve wright wrote:
>
> Hello,
>
> I've got a few linux systems running cyrus imap 2.1.11 source compiles & a
> few running Henrique de Moraes Holschuh's debian sid packages. I'm use
> sasldb2 (cyrus sasl 2.1.9) for authentication.
>
> I notice when my users supply the wrong password to imapd, messages are
> written to syslog like;
> "badlogin: localhost[127.0.0.1] plaintext steve SASL(-13): authentication
> failure: checkpass failed"
>
> When authentication fails with pop3d nothing is written to syslog & i'm
> trying to work out why.
>
> I'm no programmer but I had a look at cyrus-imapd-2.1.11/imap/pop3d.c
> Here is what I found;
>
> I noticed lines 1130-1113 read something like, if reply returns true, log
> "badlogin" to syslog.
> 1130 if (reply) {
> 1131 syslog(LOG_NOTICE, "badlogin: %s plaintext %s %s",
> 1132 popd_clienthost, popd_userid, reply);
> 1133 }
>
> If I make this read;
> 1130 if (!(reply)) {
> 1131 syslog(LOG_NOTICE, "badlogin: %s plaintext %s %s",
> 1132 popd_clienthost, popd_userid, reply);
> 1133 }
>
> Pop login failures are now logged to syslog;
> Dec 5 23:47:46 dustpuppy pop3d[4572]: badlogin: [127.0.0.1] plaintext
> steve (null)
>
> I'm guessing (null) means reply was empty / not true?
> Why might I be getting this ?
> What other information might I supply you to help trackdown my fault?
>
> With Thanks,
> Steve.
--
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