This matches the behaviour of Windows.
Signed-off-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
-^samba\.tests\.krb5\.gmsa_tests\.samba\.tests\.krb5\.gmsa_tests\.GmsaTests\.test_gmsa_cannot_be_locked_out_with_gensec_ntlmssp\(ad_dc:local\)$
-^samba\.tests\.krb5\.gmsa_tests\.samba\.tests\.krb5\.gmsa_tests\.GmsaTests\.test_gmsa_cannot_be_locked_out_with_ldap_authentication\(ad_dc:local\)$
# The unencrypted simple bind fails because the ad_dc environment sets ‘ldap
# server require strong auth = yes’.
^samba\.tests\.krb5\.gmsa_tests\.samba\.tests\.krb5\.gmsa_tests\.GmsaTests\.test_retrieving_password_after_unencrypted_simple_bind\(ad_dc:local\)$
return NT_STATUS_NO_MEMORY;
}
- if (badPwdCount >= lockoutThreshold) {
+ if (dsdb_account_is_trust(user_msg)) {
+ /* Trust accounts cannot be locked out. */
+ } else if (badPwdCount >= lockoutThreshold) {
ret = samdb_msg_add_int64(sam_ctx, mod_msg, mod_msg, "lockoutTime", now);
if (ret != LDB_SUCCESS) {
TALLOC_FREE(mod_msg);