X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=blobdiff_plain;f=ud-mailgate;h=91dcf40a8a7e0b4b132d484444d9d44d622e9b97;hp=38f9aca6efc05d570c06c50930095437a7f1da10;hb=8be45fd03d84447c0f75dc77bd94ed4e6580f0f6;hpb=eed406df699bead762086c552a8ca8b92a83cf84 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);