import userdir_ldap
class Account:
- array_values = ['keyFingerPrint']
+ array_values = ['keyFingerPrint', 'mailWhitelist', 'mailRBL', 'mailRHSBL']
int_values = ['shadowExpire']
defaults = {
'accountStatus': 'active',
def pw_active(self):
if self['userPassword'] == '{crypt}*LK*':
return False
+ if self['userPassword'].startswith("!"):
+ return False
return True
# not expired