mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
netlogon.idl: netr_ServerPasswordGet returns NTSTATUS not WERROR.
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
parent
4810f47c44
commit
a0700dd275
@ -1450,7 +1450,7 @@ interface netlogon
|
||||
|
||||
/****************/
|
||||
/* Function 0x1f */
|
||||
WERROR netr_ServerPasswordGet(
|
||||
NTSTATUS netr_ServerPasswordGet(
|
||||
[in,unique] [string,charset(UTF16)] uint16 *server_name,
|
||||
[in] [string,charset(UTF16)] uint16 *account_name,
|
||||
[in] netr_SchannelType secure_channel_type,
|
||||
|
@ -2191,11 +2191,11 @@ NTSTATUS _netr_LogonGetDomainInfo(struct pipes_struct *p,
|
||||
/****************************************************************
|
||||
****************************************************************/
|
||||
|
||||
WERROR _netr_ServerPasswordGet(struct pipes_struct *p,
|
||||
struct netr_ServerPasswordGet *r)
|
||||
NTSTATUS _netr_ServerPasswordGet(struct pipes_struct *p,
|
||||
struct netr_ServerPasswordGet *r)
|
||||
{
|
||||
p->fault_state = DCERPC_FAULT_OP_RNG_ERROR;
|
||||
return WERR_NOT_SUPPORTED;
|
||||
return NT_STATUS_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
/****************************************************************
|
||||
|
@ -1801,7 +1801,7 @@ static NTSTATUS dcesrv_netr_LogonGetDomainInfo(struct dcesrv_call_state *dce_cal
|
||||
/*
|
||||
netr_ServerPasswordGet
|
||||
*/
|
||||
static WERROR dcesrv_netr_ServerPasswordGet(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
|
||||
static NTSTATUS dcesrv_netr_ServerPasswordGet(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
|
||||
struct netr_ServerPasswordGet *r)
|
||||
{
|
||||
DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
|
||||
|
@ -754,6 +754,7 @@ static bool test_GetPassword(struct torture_context *tctx,
|
||||
|
||||
status = dcerpc_netr_ServerPasswordGet_r(b, tctx, &r);
|
||||
torture_assert_ntstatus_ok(tctx, status, "ServerPasswordGet");
|
||||
torture_assert_ntstatus_ok(tctx, r.out.result, "ServerPasswordGet");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user