[tpop3d-discuss] Login Problem with 1.4.1pre2

Odhiambo Washington wash at wananchi.com
Fri, 8 Feb 2002 20:45:08 +0300


* Chris Lightfoot <chris@ex-parrot.com> [20020208 19:56]: wrote:
> On Fri, Feb 08, 2002 at 06:29:22PM +0300, Odhiambo Washington wrote:
> > hello list,
> > 
> > I seem to have run into a problem with this version.
> > Initially I had some problem which I posted to the list and I
> > got TWO patches which applied cleanly. I can login successfully
> > using the default domain.
> > However I am still not able to authenticate against mysql db.
> 
> D'oh. Another oops on my part. Patch:
> 
> diff -u -r1.40 auth_mysql.c
> --- auth_mysql.c        2002/02/04 10:20:30     1.40
> +++ auth_mysql.c        2002/02/08 16:55:56
> @@ -574,11 +574,11 @@
>  
>                      if (strlen(pwhash) == 32) {
>                          /* Hex. */
> -                        if (strcasecmp(pwhash, md5_digest_str(pass, strlen(pass), 0)))
> +                        if (strcasecmp(pwhash, md5_digest_str(pass, strlen(pass), 0)) == 0)
>                              authok = 1;
>                      } else if (strlen(pwhash) == 24) {
>                          /* Base 64. */
> -                        if (strcmp(pwhash, md5_digest_str(pass, strlen(pass), 1)))
> +                        if (strcmp(pwhash, md5_digest_str(pass, strlen(pass), 1)) == 0)
>                              authok = 1;
>                      } else
>                          /* Doesn't make sense. */
> 
> 
> (I don't call these pre-releases for nothing!)


Hi Chris,

Thanks for a quick response. The patch applies cleanly but the authentication still
fails. I've even simplified my passwd but no luck.

alligator# telnet 0 110
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
+OK <4f1471e23b2e5285bac200f32551f989@alligator.wananchi.com>
user wash@freebsd.co.ke
+OK Tell me your password.
pass tester
-ERR Lies! Try again!
quit
+OK Fine. Be that way.


logfile:

Feb  8 20:46:02 alligator tpop3d[15857]: net_loop: terminating on signal 15
Feb  8 20:46:04 alligator tpop3d[17903]: experimental BSD mailbox metadata cache enabled
Feb  8 20:46:04 alligator tpop3d[17903]: listener_new: gethostbyaddr(0.0.0.0): cannot resolve name
Feb  8 20:46:04 alligator tpop3d[17903]: listener_new: 0.0.0.0: no domain suffix can be appended for this address
Feb  8 20:46:04 alligator tpop3d[17903]: listener_new: 0.0.0.0: using fallback domain suffix `alligator.wananchi.com'
Feb  8 20:46:04 alligator tpop3d[17903]: listening on address 0.0.0.0, port 110, domain alligator.wananchi.com
Feb  8 20:46:04 alligator tpop3d[17903]: 2 authentication drivers successfully loaded
Feb  8 20:46:04 alligator tpop3d[17903]: net_loop: tpop3d version 1.4.1pre2 successfully started
Feb  8 20:46:08 alligator tpop3d[17903]: listeners_post_select: client [6]62.8.64.108/alligator.wananchi.com: connected
Feb  8 20:46:22 alligator tpop3d[17903]: auth_mysql_new_user_pass: wash@freebsd.co.ke failed login with wrong password
Feb  8 20:46:22 alligator tpop3d[17903]: connection_do: client `[6]62.8.64.108/alligator.wananchi.com': username
`wash@freebsd.co.ke': 1 authentication failures
Feb  8 20:46:48 alligator tpop3d[17903]: connections_post_select: client [6]62.8.64.108/alligator.wananchi.com: disconnected

mtia


-Wash

S y s t e m s   A d m i n.

-- 
Odhiambo Washington  <wash@wananchi.com>    "The box said 'Requires
Wananchi Online Ltd.  www.wananchi.com      Windows 95, NT, or better,'
Tel: 254 2 313985-9   Fax: 254 2 313922     so I installed FreeBSD."   
GSM: 254 72 743 223   GSM: 254 733 744 121  This sig is McQ!  :-)

++
That secret you've been guarding, isn't.