Package: luma Version: 2.4-1 Severity: normal Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu karmic ubuntu-patch
In Ubuntu, we've applied the attached patch to achieve the following: * Fixed calculations of MD4 hashes for samba fields that returned lmhash instead of nthash. We thought you might be interested in doing the same. The relevant Ubuntu bug is https://launchpad.net/bugs/297148, it contains information on how to reproduce the problem. -- System Information: Debian Release: squeeze/sid APT prefers karmic-updates APT policy: (500, 'karmic-updates'), (500, 'karmic-security'), (500, 'karmic-proposed'), (500, 'karmic-backports'), (500, 'karmic') Architecture: i386 (i686) Kernel: Linux 2.6.31-15-generic (SMP w/2 CPU cores) Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
#! /bin/sh /usr/share/dpatch/dpatch-run # Description: Fixes calculations of MD4 hashes for samba fields # that returned lmhash instead of nthash. # Origin: other, https://launchpad.net/bugs/297148 # Bug-Ubuntu: https://launchpad.net/bugs/297148 # Bug: http://sourceforge.net/support/tracker.php?aid=2309281 # Author: Sergio Tosti <zeno...@gmail.com> @DPATCH@ diff -urNad luma-2.4~/lib/luma/base/utils/backend/mkpasswd.py luma-2.4/lib/luma/base/utils/backend/mkpasswd.py --- luma-2.4~/lib/luma/base/utils/backend/mkpasswd.py 2008-02-27 22:37:49.000000000 +0300 +++ luma-2.4/lib/luma/base/utils/backend/mkpasswd.py 2009-12-01 21:55:23.000000000 +0300 @@ -119,9 +119,9 @@ return "{lmPassword}" + smbpasswd.lmhash(pwd) elif default == 'nthash': if sambaver==3: - return "{sambaNTPassword}" + smbpasswd.lmhash(pwd) + return "{sambaNTPassword}" + smbpasswd.nthash(pwd) elif sambaver==2: - return "{NTPassword}" + smbpasswd.lmhash(pwd) + return "{NTPassword}" + smbpasswd.nthash(pwd) def check_strength(passwordString=""):