X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=ud-mailgate;h=4e3b39dff3e3925b4f13b63072deb1109d698004;hb=d0ee80d18e57382cb67def8a5f6ecff11f2cfcc0;hp=8cf64c07cc1c53d068ba44329c2f1b55855cfc20;hpb=e5305db75d1f2c9e930b2de174fc488f95d63b31;p=mirror%2Fuserdir-ldap.git diff --git a/ud-mailgate b/ud-mailgate index 8cf64c0..4e3b39d 100755 --- a/ud-mailgate +++ b/ud-mailgate @@ -310,7 +310,7 @@ def HandleChPass(Reply,DnRecord,Key): # Check for a locked account Attrs = l.search_s(BaseDn,ldap.SCOPE_ONELEVEL,"uid="+GetAttr(DnRecord,"uid")); - if (string.find(GetAttr(Attrs[0],"userPassword"),"*LK*") != -1): + if (string.find(GetAttr(Attrs[0],"userpassword"),"*LK*") != -1): raise Error, "This account is locked"; # Modify the password @@ -397,7 +397,7 @@ try: if Sender == None: raise Error, "Unable to determine the sender's address"; - if (string.find(GetAttr(Attrs[0],"userPassword"),"*LK*") != -1): + if (string.find(GetAttr(Attrs[0],"userpassword"),"*LK*") != -1): raise Error, "This account is locked"; # Formulate a reply