And yet another ud-mailgate typo. userdir-ldap-0.3.96
authorJulien Cristau <jcristau@debian.org>
Sun, 10 Feb 2019 11:33:23 +0000 (12:33 +0100)
committerJulien Cristau <jcristau@debian.org>
Sun, 10 Feb 2019 11:33:23 +0000 (12:33 +0100)
debian/changelog
ud-mailgate

index 0cd7394..2a55173 100644 (file)
@@ -1,3 +1,9 @@
+userdir-ldap (0.3.96) unstable; urgency=medium
+
+  * And yet another ud-mailgate typo.
+
+ -- Julien Cristau <jcristau@debian.org>  Sun, 10 Feb 2019 12:31:07 +0100
+
 userdir-ldap (0.3.95) unstable; urgency=medium
 
   * Fix more typos in ud-mailgate.
index b40be70..3c1ad96 100755 (executable)
@@ -493,7 +493,7 @@ def FinishConfirmSudopassword(lc, uid, Attrs, SudoPasswd):
     res = lc.search_s(BaseDn, ldap.SCOPE_ONELEVEL, "uid=" + uid, ['sudoPassword'])
     if len(res) != 1:
         raise UDFormatError("Not exactly one hit when searching for user")
-    if sudoPassword in res[0][1]:
+    if 'sudoPassword' in res[0][1]:
         inldap = res[0][1]['sudoPassword']
     else:
         inldap = []