7 messages in net.sourceforge.lists.courier-sqwebmail[sqwebmail] unable to login using mys...
FromSent OnAttachments
Julian GrunnellJul 25, 2007 3:11 am 
Brian CandlerJul 25, 2007 12:40 pm 
Julian GrunnellJul 26, 2007 7:01 am 
Brian CandlerJul 26, 2007 7:28 am 
Brian CandlerJul 26, 2007 7:39 am 
Julian GrunnellJul 27, 2007 1:05 am 
Brian CandlerJul 27, 2007 4:32 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[sqwebmail] unable to login using mysql authenticationActions...
From:Julian Grunnell (juli@pipex.net)
Date:Jul 25, 2007 3:11:58 am
List:net.sourceforge.lists.courier-sqwebmail

Hi - hoping someone can help me with a login problem I have on a system I have inherited and trying to replicate. The problem appears to be the fact that the authdaemond, I'm using mysql for authentication fails. The mysql table that holds the login details is not a default one as per the README.authmysql.html. So my understanding is that the "/usr/local/etc/authlib/authmysqlrc" file needs to have a specific "MYSQL_SELECT_CLAUSE" defined, but it is this that I cannot seem to get right.

My mysql tables fields are:

username type password home owner password_type suspended leftover

And a sample record looks like:

username | type | password | home | owner | password_type | suspended | leftover | +-----------------+---------+----------+------------------------------------ ---+----------+---------------+-----------+----------+ | julian | mailbox | julian | /fs/home/44/b/a/julian/users/julian | julian | Password | N | 0

cat /var/log/maillog Jul 25 10:55:52 wm01 authdaemond: stopping authdaemond children Jul 25 10:55:56 wm01 authdaemond: modules="authmysql", daemons=5 Jul 25 10:55:56 wm01 authdaemond: Installing libauthmysql Jul 25 10:55:56 wm01 authdaemond: Installation complete: authmysql

If I attempt to login via the web frontend it fails with "INVALID USERNAME OR PASSWORD" and the logfile has:

Jul 25 11:08:19 wm01 authdaemond: received auth request, service=webmail, authtype=login Jul 25 11:08:19 wm01 authdaemond: authmysql: trying this module Jul 25 11:08:19 wm01 authdaemond: SQL query: SELECT username,password,home,owner,type FROM mailboxes where username='julian' Jul 25 11:08:19 wm01 authdaemond: incomplete row, only 5 fields returned Jul 25 11:08:19 wm01 authdaemond: authmysql: TEMPFAIL - no more modules will be tried Jul 25 11:08:19 wm01 sqwebmaild: LOGIN FAILED, user=julian, ip=[x.x.x.x]

So I see that it states there are only 5 fields returned, but based on my table layout what fields do I need to be used?

Apologies if I've missed anything, or if this seems a bit vague but I've hit a brick wall trying to get this to work.

Thanks - Julian.

Julian Grunnell 3rd Line Technical Support Pipex Communications

Tel: 0113 344 1304 Mob: 07803 649593 Web: http://www.pipex.com/

This e-mail is subject to: http://www.pipex.net/disclaimer.html