# HG changeset patch # User Christian Wiese # Date 1295207235 -7200 # Node ID d8179b523116b5f7c7e052ef3abd1af6d9d68c2c # Parent 31ffb4e631abf10120d2289f8236f2754bdd697b 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(-) 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 };