mirror of
https://github.com/samba-team/samba.git
synced 2025-01-25 06:04:04 +03:00
s4-drsuapi: Change REPL_SECRET error code to match Windows
The existing SOURCE_DISABLED error code doesn't seem to make a lot of sense. Window sends back an ACCESS_DENIED error in the same situation, which seems more appropriate. Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
This commit is contained in:
parent
122c8e1fa2
commit
3c8fa7b27f
@ -1178,7 +1178,7 @@ static WERROR getncchanges_repl_secret(struct drsuapi_bind_state *b_state,
|
||||
if (b_state->sam_ctx_system == NULL) {
|
||||
/* this operation needs system level access */
|
||||
ctr6->extended_ret = DRSUAPI_EXOP_ERR_ACCESS_DENIED;
|
||||
return WERR_DS_DRA_SOURCE_DISABLED;
|
||||
return WERR_DS_DRA_ACCESS_DENIED;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user