[Dovecot] plain text auth

ohp at pyrenet.fr ohp at pyrenet.fr
Sun Jan 22 15:32:52 EET 2006


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 <tss at iki.fi>
> To: ohp at pyrenet.fr
> Cc: dovecot at dovecot.org
> Subject: Re: [Dovecot] plain text auth
>
> On Sun, 2006-01-22 at 12:18 +0100, ohp at 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 at pyrenet.fr
------------------------------------------------------------------------------
Make your life a dream, make your dream a reality. (St Exupery)


More information about the dovecot mailing list