From: Julien Cristau Date: Sun, 10 Feb 2019 11:33:23 +0000 (+0100) Subject: And yet another ud-mailgate typo. X-Git-Tag: userdir-ldap-0.3.96^0 X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=commitdiff_plain;h=e9857f007f9521223aa389a71919f4232fd18866 And yet another ud-mailgate typo. --- diff --git a/debian/changelog b/debian/changelog index 0cd7394..2a55173 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +userdir-ldap (0.3.96) unstable; urgency=medium + + * And yet another ud-mailgate typo. + + -- Julien Cristau Sun, 10 Feb 2019 12:31:07 +0100 + userdir-ldap (0.3.95) unstable; urgency=medium * Fix more typos in ud-mailgate. diff --git a/ud-mailgate b/ud-mailgate index b40be70..3c1ad96 100755 --- a/ud-mailgate +++ b/ud-mailgate @@ -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 = []