From: John Crowley (jcrowley@wolf.smith.edu)
Date: Tue Jun 10 2003 - 09:26:41 CDT
I did some searching and couldn't find anyone else mentioning this. I'm
authenticating off a novell IMAP server that I'm told is running RFC 2060
IMAP 4rev1 from my netreg 1.3rc2 RH 9 box.
When a user has no messages in their inbox when they registered they would
get an Authentication Failed message. The line in register.cgi was:
unless($alive){ error("Authentication Failed");}. Since IMAP returns the
number of messages in the inbox, 0, this check will fail. I changed it to
$alive ge "0" and it works fine.
Here is the full set for IMAP authentication checking in the authenticate
sub:
} elsif ($AUTH_METHOD eq "IMAP") {
$imap = new Net::IMAP::Simple( "$IMAPSERVER" );
$alive = $imap->login( $FORM{'user'}, $FORM{'pass'} );
$imap->quit();
unless ($alive ge "0") {
error("Authentication Failed");
}
Only thing I added was the ge "0". I tested this, and have it in
production.
John Crowley
Systems Administrator
Smith College
**********************************************************************
To unsubscribe from this list, send an e-mail message to
majordomo@southwestern.edu containing a single line with the words:
unsubscribe netreg
Send requests for assistance to: owner-netreg@southwestern.edu
**********************************************************************
This archive was generated by hypermail 2.1.4 : Thu Aug 12 2004 - 12:01:39 CDT