Commit b80f15d8 authored by Mathieu Parent's avatar Mathieu Parent

Revert "CVE-2018-16857 dsdb/util: Correctly treat lockOutObservationWindow as 64-bit int"

This reverts commit 4f9ba706.
parent 798893ee
samba4.ldap.password_lockout.python\(ad_dc_ntvfs\).__main__.PasswordTestsWithDefaults.test_pso_login_lockout_krb5\(ad_dc_ntvfs\)
samba4.ldap.password_lockout.python\(ad_dc_ntvfs\).__main__.PasswordTestsWithDefaults.test_pso_login_lockout_ntlm\(ad_dc_ntvfs\)
samba4.ldap.password_lockout.python\(ad_dc_ntvfs\).__main__.PasswordTestsWithDefaults.test_login_lockout_ntlm\(ad_dc_ntvfs\)
samba4.ldap.password_lockout.python\(ad_dc_ntvfs\).__main__.PasswordTestsWithDefaults.test_login_lockout_krb5\(ad_dc_ntvfs\)
......@@ -5400,12 +5400,12 @@ static int64_t get_lockout_observation_window(struct ldb_message *domain_msg,
struct ldb_message *pso_msg)
{
if (pso_msg != NULL) {
return ldb_msg_find_attr_as_int64(pso_msg,
"msDS-LockoutObservationWindow",
0);
return ldb_msg_find_attr_as_int(pso_msg,
"msDS-LockoutObservationWindow",
0);
} else {
return ldb_msg_find_attr_as_int64(domain_msg,
"lockOutObservationWindow", 0);
return ldb_msg_find_attr_as_int(domain_msg,
"lockOutObservationWindow", 0);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment