GTYPE_SECURITY_DOMAIN_LOCAL_GROUP,
GTYPE_SECURITY_GLOBAL_GROUP,
GTYPE_SECURITY_UNIVERSAL_GROUP,
+ UF_ACCOUNTDISABLE,
UF_WORKSTATION_TRUST_ACCOUNT,
UF_NO_AUTH_DATA_REQUIRED,
UF_NORMAL_ACCOUNT,
'assigned_policy': None,
'assigned_silo': None,
'logon_hours': None,
- 'smartcard_required': False
+ 'smartcard_required': False,
+ 'enabled': True,
}
account_opts = {
assigned_policy,
assigned_silo,
logon_hours,
- smartcard_required):
+ smartcard_required,
+ enabled):
if account_type is self.AccountType.USER:
self.assertIsNone(delegation_to_spn)
self.assertIsNone(delegation_from_dn)
user_account_control |= UF_NO_AUTH_DATA_REQUIRED
if smartcard_required:
user_account_control |= UF_SMARTCARD_REQUIRED
+ if not enabled:
+ user_account_control |= UF_ACCOUNTDISABLE
if additional_details:
details = {k: v for k, v in additional_details}