X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=ud-mailgate;h=6baf2c4c9f8d0dccf19b3dd593a3f4f81138e941;hb=eaf577581ba8c1c53fadb91920591f8f6ffa15a4;hp=26e4b75d30b1906f200227e6f6f422abac6bdba0;hpb=187d3edfdc561cd4a929811d63f73114e15932e8;p=mirror%2Fuserdir-ldap.git diff --git a/ud-mailgate b/ud-mailgate index 26e4b75..6baf2c4 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)