OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
2.1 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../dovecot/0001-auth-mech_winbind_ntlm-use-mech_winbind_auth_initial.patch
  5. # Copyright (C) 2011 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. From 889f5450e42af998aa5eaf9bc96d97003433113e Mon Sep 17 00:00:00 2001
  17. From: Christian Wiese <christian.wiese@securepoint.de>
  18. Date: Wed, 12 Jan 2011 17:18:08 +0100
  19. Subject: [PATCH] auth: Fixed mech_winbind_ntlm by using mech_winbind_auth_initial()
  20. In changeset 9002 a new function named mech_winbind_auth_initial() was
  21. introduced, but only the mech_winbind_spnego module part was changed to finally
  22. use this function.
  23. The mech_winbind_ntlm module part was not properly adapted which leads to a non
  24. functioning NTLM authentication mechanism while using winbind, because it will
  25. never call the `ntlm_auth` helper.
  26. The simple fix is to replace mech_generic_auth_initial() with
  27. mech_winbind_auth_initial() as auth_initial "hook" when setting up the
  28. mech_winbind_ntlm module, like it is done in the mech_winbind_spnego module.
  29. References:
  30. - Changeset 9002: http://hg.dovecot.org/dovecot-2.0/diff/9d0037a997f4/src/auth/mech-winbind.c
  31. ---
  32. src/auth/mech-winbind.c | 2 +-
  33. 1 files changed, 1 insertions(+), 1 deletions(-)
  34. diff --git a/src/auth/mech-winbind.c b/src/auth/mech-winbind.c
  35. index 6009918..4299191 100644
  36. --- a/src/auth/mech-winbind.c
  37. +++ b/src/auth/mech-winbind.c
  38. @@ -335,7 +335,7 @@ const struct mech_module mech_winbind_ntlm = {
  39. .passdb_need = MECH_PASSDB_NEED_NOTHING,
  40. mech_winbind_ntlm_auth_new,
  41. - mech_generic_auth_initial,
  42. + mech_winbind_auth_initial,
  43. mech_winbind_auth_continue,
  44. mech_generic_auth_free
  45. };
  46. --
  47. 1.6.6.2