And yet another ud-mailgate typo.
[mirror/userdir-ldap.git] / 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 = []