BUG: https://bugzilla.samba.org/show_bug.cgi?id=12020
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
}
}
- if (io->ac->pwd_reset) {
+ if (io->ac->pwd_reset && ! io->ac->policy_hints_reset_is_change) {
*werror = WERR_OK;
return LDB_SUCCESS;
}
return ret;
}
}
+ if (io->ac->pwd_reset) {
+ /*
+ * We would have returned before the password history
+ * check, but the policy hints OID said no.
+ */
+ *werror = WERR_OK;
+ return LDB_SUCCESS;
+ }
/* are all password changes disallowed? */
if (io->ac->status->domain_data.pwdProperties & DOMAIN_REFUSE_PASSWORD_CHANGE) {