From bf33916925e94340f2a241238e1bb0cee15d5ab4 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 15 Sep 2008 00:40:37 +0200 Subject: [PATCH] Lowercasing hashed sudo passwords in ud-mailgate not considered smart --- debian/changelog | 6 ++++++ ud-mailgate | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index b4b966a..f4eec4b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +userdir-ldap (0.3.39) unstable; urgency=low + + * Lowercasing hashed sudo passwords in ud-mailgate not considered smart. + + -- Peter Palfrader Mon, 15 Sep 2008 00:40:13 +0200 + userdir-ldap (0.3.38) unstable; urgency=low * Fix order of some calls so stuff works again. diff --git a/ud-mailgate b/ud-mailgate index 26e4b75..b743c8b 100755 --- a/ud-mailgate +++ b/ud-mailgate @@ -453,7 +453,7 @@ def DoRBL(Str,Attrs): # Handle a ConfirmSudoPassword request def DoConfirmSudopassword(Str): - Match = re.compile('^confirm sudopassword ('+UUID_FORMAT+') ([a-z0-9,*]+) ([0-9a-f]{40})$').match(Str.lower()) + Match = re.compile('^confirm sudopassword ('+UUID_FORMAT+') ([a-z0-9,*]+) ([0-9a-f]{40})$').match(Str) if Match == None: return None @@ -479,7 +479,7 @@ def FinishConfirmSudopassword(l, uid, Attrs): newldap = [] for entry in inldap: - Match = re.compile('^('+UUID_FORMAT+') (confirmed:[0-9a-f]{40}|unconfirmed) ([a-z0-9.,*]+) ([^ ]+)$').match(entry.lower()) + Match = re.compile('^('+UUID_FORMAT+') (confirmed:[0-9a-f]{40}|unconfirmed) ([a-z0-9.,*]+) ([^ ]+)$').match(entry) if Match == None: raise Error, "Could not parse existing sudopasswd entry" uuid = Match.group(1) -- 2.20.1