[tpop3d-discuss] Auth problem with tpop3d version 1.4.1pre2
Ben Schumacher
ben at blahr.com
Mon, 4 Feb 2002 11:47:00 -0700 (MST)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
--0-2040273711-1012848420=:19160
Content-Type: TEXT/PLAIN; charset=US-ASCII
Wash-
I have not tested it myself, but I believe the patch I have attached
should fix your problem. It appears that auth_mysql.c was shifting by 4
bytes to skip past {md5} than the needed 5 bytes.
Cheers,
Ben
On Mon, 4 Feb 2002, Odhiambo Washington wrote:
> Hello Gentlemen,
>
> I have today installed tpop3d-1.4.1pre2 on a test box that has been
> running 1.3.4.
>
> However I do have an authentication problem with it. I haven't changed
> anything on tpop3d.conf and the MySQL database either. I suspect that
> there is something I've missed in the man page??
>
> TIA
>
> The entry in mysql db looks like this:
>
> +---------------+------------+---------------------------------------+-----------+
> | domain_name | local_part | password_hash | mbox_name |
> +---------------+------------+---------------------------------------+-----------+
> | freebsd.co.ke | wash | {md5}32c1081da90fb2ed2b400c22cafa7f8c | wash |
> +---------------+------------+---------------------------------------+-----------+
>
> _and_ here is what I get from the logfile:
>
> alligator# less /var/log/tpop3d.log
> Feb 4 13:01:29 alligator tpop3d[4757]: experimental BSD mailbox metadata cache enabled
> Feb 4 13:01:29 alligator tpop3d[4757]: listener_new: gethostbyaddr(0.0.0.0): cannot resolve name
> Feb 4 13:01:29 alligator tpop3d[4757]: listener_new: 0.0.0.0: no domain suffix can be appended for this address
> Feb 4 13:01:29 alligator tpop3d[4757]: listener_new: 0.0.0.0: using fallback domain suffix `alligator.wananchi.com'
> Feb 4 13:01:29 alligator tpop3d[4757]: listening on address 0.0.0.0, port 110, domain alligator.wananchi.com
> Feb 4 13:01:29 alligator tpop3d[4757]: 2 authentication drivers successfully loaded
> Feb 4 13:01:29 alligator tpop3d[4757]: net_loop: tpop3d version 1.4.1pre2 successfully started
> Feb 4 13:01:33 alligator tpop3d[4757]: listeners_post_select: client [6]62.8.64.108/alligator.wananchi.com: connected
> Feb 4 13:01:41 alligator tpop3d[4757]: authcontext_new_user_pass: began session for `wash' with pam; uid 1000, gid 6
> Feb 4 13:01:41 alligator tpop3d[4757]: fork_child: [6]wash(62.8.64.108): successfully authenticated with pam
> Feb 4 13:01:41 alligator tpop3d[4757]: fork_child: new child is PID 4759
> Feb 4 13:01:46 alligator tpop3d[4759]: UIDL
> Feb 4 13:01:48 alligator tpop3d[4759]: connections_post_select: client [6]wash(62.8.64.108): disconnected
> Feb 4 13:01:48 alligator tpop3d[4759]: authcontext_delete: finished session for `wash' with pam
> Feb 4 13:01:49 alligator tpop3d[4757]: listeners_post_select: client [6]62.8.64.108/alligator.wananchi.com: connected
> Feb 4 13:02:00 alligator tpop3d[4757]: auth_mysql_new_user_pass: wash@freebsd.co.ke has password type md5, but hash is of
> incorrect length
> Feb 4 13:02:00 alligator tpop3d[4757]: auth_mysql_new_user_pass: wash@freebsd.co.ke failed login with wrong password
> Feb 4 13:02:00 alligator tpop3d[4757]: connection_do: client `[6]62.8.64.108/alligator.wananchi.com': username
> `wash@freebsd.co.ke' : 1 authentication failures
> Feb 4 13:02:03 alligator tpop3d[4757]: connections_post_select: client [6]62.8.64.108/alligator.wananchi.com: disconnected
>
>
>
>
>
>
> -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! :-)
>
> ++
> Stult's Report:
> Our problems are mostly behind us. What we have to do now is
> fight the solutions.
>
> _______________________________________________
> tpop3d-discuss mailing list
> tpop3d-discuss@lists.beasts.org
> http://lists.beasts.org/mailman/listinfo/tpop3d-discuss
>
--0-2040273711-1012848420=:19160
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="auth_mysql.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.BSF.4.21.0202041147000.19160@hiro.blahr.com>
Content-Description:
Content-Disposition: attachment; filename="auth_mysql.patch"
LS0tIGF1dGhfbXlzcWwuYy5vcmlnCU1vbiBGZWIgIDQgMTE6NDI6MjggMjAw
Mg0KKysrIGF1dGhfbXlzcWwuYwlNb24gRmViICA0IDExOjQyOjUyIDIwMDIN
CkBAIC01NjYsMTEgKzU2NiwxMSBAQA0KICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICBsb2dfcHJpbnQoTE9HX0VSUiwgXygiYXV0aF9teXNxbF9uZXdf
dXNlcl9wYXNzOiAlc0AlcyBoYXMgcGFzc3dvcmQgdHlwZSBteXNxbCwgYnV0
IGhhc2ggaXMgb2YgaW5jb3JyZWN0IGxlbmd0aCAlZCIpLCBsb2NhbF9wYXJ0
LCBkb21haW4sIG4pOw0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICBi
cmVhazsNCiAgICAgICAgICAgICAgICAgICAgIH0NCi0gICAgICAgICAgICAg
ICAgfSBlbHNlIGlmIChzdHJuY21wKHB3aGFzaCwgInttZDV9IiwgNCkgPT0g
MCB8fCAqcHdoYXNoICE9ICd7Jykgew0KKyAgICAgICAgICAgICAgICB9IGVs
c2UgaWYgKHN0cm5jbXAocHdoYXNoLCAie21kNX0iLCA1KSA9PSAwIHx8ICpw
d2hhc2ggIT0gJ3snKSB7DQogICAgICAgICAgICAgICAgICAgICAvKiBTdHJh
aWdodCBNRDUgcGFzc3dvcmQuIEJ1dCB0aGlzIG1pZ2h0IGJlIGVpdGhlciBp
biBoZXgNCiAgICAgICAgICAgICAgICAgICAgICAqIG9yIGJhc2U2NCBlbmNv
ZGluZy4gKi8NCiAgICAgICAgICAgICAgICAgICAgIGlmICgqcHdoYXNoID09
ICd7JykNCi0gICAgICAgICAgICAgICAgICAgICAgICBwd2hhc2ggKz0gNDsN
CisgICAgICAgICAgICAgICAgICAgICAgICBwd2hhc2ggKz0gNTsNCiANCiAg
ICAgICAgICAgICAgICAgICAgIGlmIChzdHJsZW4ocHdoYXNoKSA9PSAzMikg
ew0KICAgICAgICAgICAgICAgICAgICAgICAgIC8qIEhleC4gKi8NCg==
--0-2040273711-1012848420=:19160--