/* Test account expire time */
unix_to_nt_time(&now, time(NULL));
- userAccountControl = ldb_msg_find_attr_as_uint(msg,
- "userAccountControl",
- 0);
- if (!(userAccountControl & UF_TRUST_ACCOUNT_MASK)) {
+ if (!dsdb_account_is_trust(msg)) {
int64_t lockoutTime = ldb_msg_find_attr_as_int64(msg, "lockoutTime", 0);
if (lockoutTime != 0) {
}
}
+ userAccountControl = ldb_msg_find_attr_as_uint(msg,
+ "userAccountControl",
+ 0);
if (!(userAccountControl & _UF_NO_EXPIRY_ACCOUNTS)) {
NTTIME must_change_time
= get_msds_user_password_expiry_time_computed(module,