]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: Fixed mech_winbind_ntlm by using mech_winbind_auth_initial()
authorChristian Wiese <chris@opensde.org>
Sun, 16 Jan 2011 19:47:15 +0000 (21:47 +0200)
committerChristian Wiese <chris@opensde.org>
Sun, 16 Jan 2011 19:47:15 +0000 (21:47 +0200)
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(-)

src/auth/mech-winbind.c

index 6009918ce02b954cbb8ef6873a41525f6a822cc9..4299191c2bf7587fdec4c4b05053133749d8b0f9 100644 (file)
@@ -335,7 +335,7 @@ const struct mech_module mech_winbind_ntlm = {
        .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
 };