dovecot-2.0: auth: Fixed mech_winbind_ntlm by using mech_winbind...

dovecot at dovecot.org dovecot at dovecot.org
Sun Jan 16 21:48:05 EET 2011


details:   http://hg.dovecot.org/dovecot-2.0/rev/d8179b523116
changeset: 12566:d8179b523116
user:      Christian Wiese <chris at opensde.org>
date:      Sun Jan 16 21:47:15 2011 +0200
description:
auth: Fixed mech_winbind_ntlm by using mech_winbind_auth_initial()
In changeset 9002 a new function named mech_winbind_auth_initial() was
introduced, but only the mech_winbind_spnego module part was changed to finally
use this function.
The mech_winbind_ntlm module part was not properly adapted which leads to a non
functioning NTLM authentication mechanism while using winbind, because it will
never call the `ntlm_auth` helper.

The simple fix is to replace mech_generic_auth_initial() with
mech_winbind_auth_initial() as auth_initial "hook" when setting up the
mech_winbind_ntlm module, like it is done in the mech_winbind_spnego module.

References:

- Changeset 9002: http://hg.dovecot.org/dovecot-2.0/diff/9d0037a997f4/src/auth/mech-winbind.c
---
 src/auth/mech-winbind.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffstat:

 src/auth/mech-winbind.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 31ffb4e631ab -r d8179b523116 src/auth/mech-winbind.c
--- a/src/auth/mech-winbind.c	Sun Jan 16 21:26:13 2011 +0200
+++ b/src/auth/mech-winbind.c	Sun Jan 16 21:47:15 2011 +0200
@@ -335,7 +335,7 @@
 	.passdb_need = MECH_PASSDB_NEED_NOTHING,
 
 	mech_winbind_ntlm_auth_new,
-	mech_generic_auth_initial,
+	mech_winbind_auth_initial,
 	mech_winbind_auth_continue,
 	mech_generic_auth_free
 };


More information about the dovecot-cvs mailing list