X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=ud-mailgate;h=91dcf40a8a7e0b4b132d484444d9d44d622e9b97;hb=d34f4cb87a80d211f07fc1bfb2b9a630d1346e7c;hp=38f9aca6efc05d570c06c50930095437a7f1da10;hpb=cb6de4576242c282a6c75c94bd370d87442e0017;p=mirror%2Fuserdir-ldap.git diff --git a/ud-mailgate b/ud-mailgate index 38f9aca..91dcf40 100755 --- a/ud-mailgate +++ b/ud-mailgate @@ -352,6 +352,9 @@ try: if Sender == None: raise Error, "Unable to determine the sender's address"; + if (string.find(GetAttr(Attrs[0],"userPassword"),"*LK*") != -1): + raise Error, "This account is locked"; + # Formulate a reply Date = time.strftime("%a, %d %b %Y %H:%M:%S +0000",time.gmtime(time.time())); Reply = "To: %s\nReply-To: %s\nDate: %s\n" % (Sender,ReplyTo,Date);