pop login failure not logged to syslog
steve
stevew at cwazy.co.uk
Fri Dec 6 04:56:54 EST 2002
Ken, the patch works perfectly;
Dec 6 09:51:30 dustpuppy pop3d[7222]: badlogin: [127.0.0.1] plaintext steve
SASL(-13): authentication failure: checkpass failed
Surprised this hasn't been reported before :)
Many thanks,
Steve.
On Friday 06 December 2002 04:49, you wrote:
> 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.di
>ff?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.
More information about the Info-cyrus
mailing list