[debian-edu-commits] debian-edu/pkg-team/ 01/02: debian/patches: 1023_check-smbhash-creation-for-base64-encoded-pws.patch. Check NT/LM hash creation during setup checks using decode_base64() function.

Mike Gabriel sunweaver at debian.org
Fri Jan 29 09:05:23 UTC 2016


This is an automated email from the git hooks/post-receive script.

sunweaver pushed a commit to branch master
in repository gosa.

commit 6bd19e9d9f3811c95f4a93d218db0200dc8bcd11
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Fri Jan 29 10:00:50 2016 +0100

    debian/patches: 1023_check-smbhash-creation-for-base64-encoded-pws.patch. Check NT/LM hash creation during setup checks using decode_base64() function.
---
 ...023_check-smbhash-creation-for-base64-encoded-pws.patch | 14 ++++++++++++++
 debian/patches/series                                      |  1 +
 2 files changed, 15 insertions(+)

diff --git a/debian/patches/1023_check-smbhash-creation-for-base64-encoded-pws.patch b/debian/patches/1023_check-smbhash-creation-for-base64-encoded-pws.patch
new file mode 100644
index 0000000..767bc01
--- /dev/null
+++ b/debian/patches/1023_check-smbhash-creation-for-base64-encoded-pws.patch
@@ -0,0 +1,14 @@
+Description: Try decode_base64() when attempting a NT/LM hash generation.
+Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
+
+--- a/gosa-core/setup/class_setupStep_Checks.inc
++++ b/gosa-core/setup/class_setupStep_Checks.inc
+@@ -148,7 +148,7 @@
+     $output= shell_exec ($query);
+     $have_mkntpwd= preg_match("/^Usage: mkntpwd /", $output);
+     if (!$have_mkntpwd){
+-      $query= 'LC_ALL=C LANG=C perl -MCrypt::SmbHash -e "print join(q[:], ntlmgen $ARGV[0]), $/;" >/dev/null';
++      $query= 'LC_ALL=C LANG=C perl -MCrypt::SmbHash -MMIME::Base64 -e "print join(q[:], ntlmgen decode_base64($ARGV[0])), $/;" >/dev/null';
+       system ($query, $ret);
+       $have_mkntpwd |= ($ret == 0);
+     }
diff --git a/debian/patches/series b/debian/patches/series
index 4283d12..bb73011 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -27,6 +27,7 @@
 1020_ob-fixes.patch
 1021_disable-sorting-in-DHCP-section-lists.patch
 1022_add-b-switch-to-mkntpasswd-script.patch
+1023_check-smbhash-creation-for-base64-encoded-pws.patch
 2001_fix-smarty-location.patch
 2002_fix-template-location.patch
 2003_fix-class-mapping.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/pkg-team/gosa.git



More information about the debian-edu-commits mailing list