On Sun, 2006-01-22 at 12:18 +0100, ohp@pyrenet.fr wrote:
Hi Timo,
Attached is my conf file.
I spent hours running dovecot through the debugger, and I know for sure that client->auth_mechs is empty.
What client->auth_mechs? There's no such variable anywhere :)
I could'nt find where it is set the first time.
Looking at the code, it should always complain in every possible situation where something might go wrong. So, first it should be figured out if the problem is in dovecot-auth or imap-login. Try adding some debugging first: diff -u -r1.16 auth-server-connection.c --- src/lib-auth/auth-server-connection.c 14 Jan 2006 18:47:23 -0000 1.16 +++ src/lib-auth/auth-server-connection.c 22 Jan 2006 13:08:19 -0000 @@ -164,6 +164,8 @@ conn->refcount++; while ((line = i_stream_next_line(conn->input)) != NULL) { + i_info("auth server: %s", line); + if (strncmp(line, "OK\t", 3) == 0) ret = auth_client_input_ok(conn, line + 3); else if (strncmp(line, "CONT\t", 5) == 0) It should be sending a MECH line with PLAIN parameter.
Hi Timo, thanksfor the input, please see bellow On Sun, 22 Jan 2006, Timo Sirainen wrote:
Date: Sun, 22 Jan 2006 15:10:15 +0200 From: Timo Sirainen
To: ohp@pyrenet.fr Cc: dovecot@dovecot.org Subject: Re: [Dovecot] plain text auth On Sun, 2006-01-22 at 12:18 +0100, ohp@pyrenet.fr wrote:
Hi Timo,
Attached is my conf file.
I spent hours running dovecot through the debugger, and I know for sure that client->auth_mechs is empty.
What client->auth_mechs? There's no such variable anywhere :)
Sorry, I ment client->available_auth_mechs in client.c get_capability
I could'nt find where it is set the first time.
Looking at the code, it should always complain in every possible situation where something might go wrong. So, first it should be figured out if the problem is in dovecot-auth or imap-login.
Try adding some debugging first:
diff -u -r1.16 auth-server-connection.c --- src/lib-auth/auth-server-connection.c 14 Jan 2006 18:47:23 -0000 1.16 +++ src/lib-auth/auth-server-connection.c 22 Jan 2006 13:08:19 -0000 @@ -164,6 +164,8 @@
conn->refcount++; while ((line = i_stream_next_line(conn->input)) != NULL) { + i_info("auth server: %s", line); + if (strncmp(line, "OK\t", 3) == 0) ret = auth_client_input_ok(conn, line + 3); else if (strncmp(line, "CONT\t", 5) == 0)
It should be sending a MECH line with PLAIN parameter.
Amazing! It did'nt trigger any message! -- Olivier PRENANT Tel: +33-5-61-50-97-00 (Work) 15, Chemin des Monges +33-5-61-50-97-01 (Fax) 31190 AUTERIVE +33-6-07-63-80-64 (GSM) FRANCE Email: ohp@pyrenet.fr ------------------------------------------------------------------------------ Make your life a dream, make your dream a reality. (St Exupery)
On Sun, 2006-01-22 at 14:32 +0100, ohp@pyrenet.fr wrote:
I could'nt find where it is set the first time.
Looking at the code, it should always complain in every possible situation where something might go wrong. So, first it should be figured out if the problem is in dovecot-auth or imap-login.
Try adding some debugging first:
diff -u -r1.16 auth-server-connection.c --- src/lib-auth/auth-server-connection.c 14 Jan 2006 18:47:23 -0000 1.16 +++ src/lib-auth/auth-server-connection.c 22 Jan 2006 13:08:19 -0000 @@ -164,6 +164,8 @@
conn->refcount++; while ((line = i_stream_next_line(conn->input)) != NULL) { + i_info("auth server: %s", line); + if (strncmp(line, "OK\t", 3) == 0) ret = auth_client_input_ok(conn, line + 3); else if (strncmp(line, "CONT\t", 5) == 0)
It should be sending a MECH line with PLAIN parameter.
Amazing! It did'nt trigger any message!
Hmm. So, the login process doesn't seem to be connecting to dovecot-auth at all. Or at least not receiving anything from it. But in that case this should happen: * OK Waiting for authentication process to respond.. And you shouldn't be able to give any commands. This really is with 1.0beta1? And Dovecot's logs don't show any errors?
On Sun, 22 Jan 2006, Timo Sirainen wrote:
Date: Sun, 22 Jan 2006 15:52:59 +0200 From: Timo Sirainen tss@iki.fi To: ohp@pyrenet.fr Cc: dovecot@dovecot.org Subject: Re: [Dovecot] plain text auth
On Sun, 2006-01-22 at 14:32 +0100, ohp@pyrenet.fr wrote:
I could'nt find where it is set the first time.
Amazing! It did'nt trigger any message!
Hmm. So, the login process doesn't seem to be connecting to dovecot-auth at all. Or at least not receiving anything from it.
But in that case this should happen:
- OK Waiting for authentication process to respond..
And you shouldn't be able to give any commands.
I am! Something like '. capability' works but not . login xxx yy Adn CAPABILTY doesn't report AUTH nor LOGIN Where are the sockets created and listen too and accepted
This really is with 1.0beta1? And Dovecot's logs don't show any errors? yes and no (it reports that plain is unsupported)
Would you like an access to my machine?
-- Olivier PRENANT Tel: +33-5-61-50-97-00 (Work) 15, Chemin des Monges +33-5-61-50-97-01 (Fax) 31190 AUTERIVE +33-6-07-63-80-64 (GSM) FRANCE Email: ohp@pyrenet.fr
Make your life a dream, make your dream a reality. (St Exupery)
On Sun, 2006-01-22 at 15:05 +0100, ohp@pyrenet.fr wrote:
Would you like an access to my machine?
Thanks, this was UnixWare-specific problem but I did a couple of other fixes so it shouldn't anymore break this strangely in future.
The real problem was that UNIX sockets were created as fifos by UnixWare, and Dovecot didn't find any authentication sockets to connect to. This has been fixed in CVS now, and I left a tarball in my home dir for a version that should work in UnixWare without any changes.
On Sun, 22 Jan 2006, Timo Sirainen wrote:
Date: Sun, 22 Jan 2006 18:13:07 +0200 From: Timo Sirainen tss@iki.fi To: ohp@pyrenet.fr Cc: dovecot@dovecot.org Subject: Re: [Dovecot] plain text auth
On Sun, 2006-01-22 at 15:05 +0100, ohp@pyrenet.fr wrote:
Would you like an access to my machine?
Thanks, this was UnixWare-specific problem but I did a couple of other fixes so it shouldn't anymore break this strangely in future. Many thanks. I've made progress... I've yet to find why it breaks twig.....
The real problem was that UNIX sockets were created as fifos by UnixWare, I should have thought of that, I had the same problem with proftp. I ass/u/me you call stat on the socket. SCO admits there's a bug here however they claim that fstat work in that case. I leave your account open for a while if you need unixware machine to test.
and Dovecot didn't find any authentication sockets to connect to. This has been fixed in CVS now, and I left a tarball in my home dir for a version that should work in UnixWare without any changes. Bear in mind that unixware needs sys/types.h and mkdev.h in compat.h
Many thanks again...
Olivier PRENANT Tel: +33-5-61-50-97-00 (Work) 15, Chemin des Monges +33-5-61-50-97-01 (Fax) 31190 AUTERIVE +33-6-07-63-80-64 (GSM) FRANCE Email: ohp@pyrenet.fr
Make your life a dream, make your dream a reality. (St Exupery)
participants (2)
-
ohp@pyrenet.fr
-
Timo Sirainen