mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
s4:dcesrv_samr_SetUserInfo - port the "SAMR_FIELD_LAST_PWD_CHANGE" check from s3 to s4
This commit is contained in:
parent
4c63bb312f
commit
ea83d21341
@ -3287,6 +3287,10 @@ static NTSTATUS dcesrv_samr_SetUserInfo(struct dcesrv_call_state *dce_call, TALL
|
|||||||
IFSET(SAMR_FIELD_CODE_PAGE)
|
IFSET(SAMR_FIELD_CODE_PAGE)
|
||||||
SET_UINT (msg, info23.info.code_page, "codePage");
|
SET_UINT (msg, info23.info.code_page, "codePage");
|
||||||
|
|
||||||
|
/* password change fields */
|
||||||
|
IFSET(SAMR_FIELD_LAST_PWD_CHANGE)
|
||||||
|
return NT_STATUS_ACCESS_DENIED;
|
||||||
|
|
||||||
IFSET(SAMR_FIELD_NT_PASSWORD_PRESENT) {
|
IFSET(SAMR_FIELD_NT_PASSWORD_PRESENT) {
|
||||||
status = samr_set_password(dce_call,
|
status = samr_set_password(dce_call,
|
||||||
a_state->sam_ctx,
|
a_state->sam_ctx,
|
||||||
@ -3350,6 +3354,10 @@ static NTSTATUS dcesrv_samr_SetUserInfo(struct dcesrv_call_state *dce_call, TALL
|
|||||||
IFSET(SAMR_FIELD_CODE_PAGE)
|
IFSET(SAMR_FIELD_CODE_PAGE)
|
||||||
SET_UINT (msg, info25.info.code_page, "codePage");
|
SET_UINT (msg, info25.info.code_page, "codePage");
|
||||||
|
|
||||||
|
/* password change fields */
|
||||||
|
IFSET(SAMR_FIELD_LAST_PWD_CHANGE)
|
||||||
|
return NT_STATUS_ACCESS_DENIED;
|
||||||
|
|
||||||
IFSET(SAMR_FIELD_NT_PASSWORD_PRESENT) {
|
IFSET(SAMR_FIELD_NT_PASSWORD_PRESENT) {
|
||||||
status = samr_set_password_ex(dce_call,
|
status = samr_set_password_ex(dce_call,
|
||||||
a_state->sam_ctx,
|
a_state->sam_ctx,
|
||||||
|
Loading…
Reference in New Issue
Block a user