X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=UDLdap.py;h=9e2d2ee7e3b24408f10a588c77464860fddf03f5;hb=059c1ab2073bf678019edafff8c515ed1d2c341a;hp=74313b20008277da1b542b6a37ff096672d21059;hpb=81d4f79a7431c4061147f3ed1c1c17c2d38ed4eb;p=mirror%2Fuserdir-ldap.git diff --git a/UDLdap.py b/UDLdap.py index 74313b2..9e2d2ee 100644 --- a/UDLdap.py +++ b/UDLdap.py @@ -54,6 +54,8 @@ class Account: def pw_active(self): if self['userPassword'] == '{crypt}*LK*': return False + if self['userPassword'].startswith("!"): + return False return True # not expired