[Da-tools-commits] ./debian/userdir-ldap r460: Lowercasing hashed sudo passwords in ud-mailgate not considered smart

Peter Palfrader peter at palfrader.org
Sun Sep 14 22:40:37 UTC 2008


------------------------------------------------------------
revno: 460
committer: Peter Palfrader <peter at palfrader.org>
branch nick: userdir-ldap
timestamp: Mon 2008-09-15 00:40:37 +0200
message:
  Lowercasing hashed sudo passwords in ud-mailgate not considered smart
modified:
  debian/changelog
  ud-mailgate
-------------- next part --------------
=== modified file 'debian/changelog'
--- a/debian/changelog	2008-09-14 22:18:51 +0000
+++ b/debian/changelog	2008-09-14 22:40:37 +0000
@@ -1,3 +1,9 @@
+userdir-ldap (0.3.39) unstable; urgency=low
+
+  * Lowercasing hashed sudo passwords in ud-mailgate not considered smart.
+
+ -- Peter Palfrader <weasel at debian.org>  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.

=== modified file 'ud-mailgate'
--- a/ud-mailgate	2008-09-14 22:18:51 +0000
+++ b/ud-mailgate	2008-09-14 22:40:37 +0000
@@ -453,7 +453,7 @@
 
 # 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 @@
 
    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)



More information about the Da-tools-commits mailing list