X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=blobdiff_plain;f=ud-info;fp=ud-info;h=282d6a432bcff96e9a9ff35cc12b990b65156d67;hp=1c91f1c063aa1e0f5457c806ad878348f16fa1b3;hb=4f471180cc08e40c19d907892fc2102c43fecd49;hpb=9460231edba2a0c0277e79ea695faece3cf43db7 diff --git a/ud-info b/ud-info index 1c91f1c..282d6a4 100755 --- a/ud-info +++ b/ud-info @@ -299,10 +299,10 @@ def Lock(UserDn, Attrs, DisableMail=True): (ldap.MOD_REPLACE,"shadowExpire","1")]; if DisableMail: recs.append( (ldap.MOD_REPLACE,"mailDisableMessage","account locked") ) - Attrs[0][1]["shadowLastChange"] = [shadowLast]; + Attrs[0][1]["mailDisableMessage"] = ["account locked"]; l.modify_s(UserDn,recs); Attrs[0][1]["userPassword"] = ["{crypt}*LK*"]; - Attrs[0][1]["mailDisableMessage"] = ["account locked"]; + Attrs[0][1]["shadowLastChange"] = [shadowLast]; Attrs[0][1]["shadowExpire"] = ["1"]; # Main program starts here