X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=blobdiff_plain;f=ud-mailgate;fp=ud-mailgate;h=5ec68d28906fd6f56588917d6e01193592abecfa;hp=49b26aeaed3d661797922af57b67d07c5d7942e3;hb=ab793ab26e05839fe37ea186f058d4fd7c290293;hpb=37adb72e17d8dabce7d492b236d89246951de667 diff --git a/ud-mailgate b/ud-mailgate index 49b26ae..5ec68d2 100755 --- a/ud-mailgate +++ b/ud-mailgate @@ -553,7 +553,7 @@ def connect_to_ldap_and_check_if_locked(DnRecord): if (GetAttr(Attrs[0], "userPassword").find("*LK*") != -1) \ or GetAttr(Attrs[0], "userPassword").startswith("!"): raise UDNotAllowedError("This account is locked") - return l + return lc # Handle an [almost] arbitary change