1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3-lsa: When looking up domains in LookupNames, do not strip the sid.

Found by RPC-LSA-LOOKUPNAMES torture test.

Guenther
This commit is contained in:
Günther Deschner 2009-10-20 15:12:58 +02:00
parent b6d97a00b1
commit 18dd626160

View File

@ -195,7 +195,11 @@ static NTSTATUS lookup_lsa_rids(TALLOC_CTX *mem_ctx,
dom_idx = -1;
if (type != SID_NAME_UNKNOWN) {
sid_split_rid(&sid, &rid);
if (type == SID_NAME_DOMAIN) {
rid = (uint32_t)-1;
} else {
sid_split_rid(&sid, &rid);
}
dom_idx = init_lsa_ref_domain_list(mem_ctx, ref, domain, &sid);
mapped_count++;
}