mirror of
https://github.com/samba-team/samba.git
synced 2025-11-28 12:23:49 +03:00
r17188: Dump lsa_lookupsids3. I could not make it work at all against W2k3, the
rpc-lsa test even considers NT_STATUS_RPC_PROTSEQ_NOT_SUPPORTED not to be an error. Before someone re-activates this, show me a working sniff please :-) Volker
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
0b78da62f7
commit
b185fb9fa6
@@ -1004,43 +1004,29 @@ NTSTATUS _lsa_lookup_sids2(pipes_struct *p,
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
_lsa_lookup_sida3
|
_lsa_lookup_sida3
|
||||||
|
|
||||||
|
Before someone actually re-activates this, please present a sniff showing
|
||||||
|
this call against some Windows server. I (vl) could not make it work against
|
||||||
|
w2k3 at all.
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
NTSTATUS _lsa_lookup_sids3(pipes_struct *p,
|
NTSTATUS _lsa_lookup_sids3(pipes_struct *p,
|
||||||
LSA_Q_LOOKUP_SIDS3 *q_u,
|
LSA_Q_LOOKUP_SIDS3 *q_u,
|
||||||
LSA_R_LOOKUP_SIDS3 *r_u)
|
LSA_R_LOOKUP_SIDS3 *r_u)
|
||||||
{
|
{
|
||||||
int num_sids = q_u->sids.num_entries;
|
|
||||||
uint32 mapped_count = 0;
|
uint32 mapped_count = 0;
|
||||||
DOM_R_REF *ref = NULL;
|
DOM_R_REF ref;
|
||||||
LSA_TRANS_NAME_ENUM2 *names = NULL;
|
LSA_TRANS_NAME_ENUM2 names;
|
||||||
|
|
||||||
if ((q_u->level < 1) || (q_u->level > 6)) {
|
if ((q_u->level < 1) || (q_u->level > 6)) {
|
||||||
return NT_STATUS_INVALID_PARAMETER;
|
return NT_STATUS_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* No policy handle on this call. Restrict to crypto connections. */
|
r_u->status = NT_STATUS_RPC_PROTSEQ_NOT_SUPPORTED;
|
||||||
if (p->auth.auth_type != PIPE_AUTH_TYPE_SCHANNEL) {
|
|
||||||
DEBUG(0,("_lsa_lookup_sids3: client %s not using schannel for netlogon\n",
|
|
||||||
get_remote_machine_name() ));
|
|
||||||
return NT_STATUS_INVALID_PARAMETER;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (num_sids > MAX_LOOKUP_SIDS) {
|
ZERO_STRUCT(ref);
|
||||||
DEBUG(5,("_lsa_lookup_sids3: limit of %d exceeded, requested %d\n",
|
ZERO_STRUCT(names);
|
||||||
MAX_LOOKUP_SIDS, num_sids));
|
init_reply_lookup_sids3(r_u, &ref, &names, mapped_count);
|
||||||
return NT_STATUS_NONE_MAPPED;
|
|
||||||
}
|
|
||||||
|
|
||||||
r_u->status = _lsa_lookup_sids_internal(p,
|
|
||||||
q_u->level,
|
|
||||||
num_sids,
|
|
||||||
q_u->sids.sid,
|
|
||||||
&ref,
|
|
||||||
&names,
|
|
||||||
&mapped_count);
|
|
||||||
|
|
||||||
init_reply_lookup_sids3(r_u, ref, names, mapped_count);
|
|
||||||
return r_u->status;
|
return r_u->status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user