mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
we need to return NT_STATUS_INVALID_PARAMETER for bad levels in
lsalookupnames2
This commit is contained in:
parent
385015f8f2
commit
40fa4c4154
@ -862,6 +862,11 @@ NTSTATUS dcesrv_lsa_LookupNames2(struct dcesrv_call_state *dce_call,
|
||||
|
||||
DCESRV_PULL_HANDLE(h, r->in.handle, LSA_HANDLE_POLICY);
|
||||
|
||||
if (r->in.level < LSA_LOOKUP_NAMES_ALL ||
|
||||
r->in.level > LSA_LOOKUP_NAMES_RODC_REFERRAL_TO_FULL_DC) {
|
||||
return NT_STATUS_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
state = h->data;
|
||||
|
||||
r->out.domains = talloc_zero(mem_ctx, struct lsa_RefDomainList);
|
||||
|
Loading…
x
Reference in New Issue
Block a user