From 7d1e25a885637b65c75b4ddd78949c4a2091bb6d Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Mon, 11 May 2009 18:27:40 +0200 Subject: [PATCH] s3-lsa: Fix _lsa_LookupNames2() server implementation which always returned a NULL sid_array since 3.2.0. Found by torture test. This makes it possible to search for users while adding them to groups via windows usermanager. Guenther (cherry picked from commit a82bb4bd516e6a8e50c0272b79df8e506ea0cc91) --- source3/rpc_server/srv_lsa_nt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source3/rpc_server/srv_lsa_nt.c b/source3/rpc_server/srv_lsa_nt.c index d9d74ed7257..fb5117cdd3b 100644 --- a/source3/rpc_server/srv_lsa_nt.c +++ b/source3/rpc_server/srv_lsa_nt.c @@ -1089,6 +1089,7 @@ NTSTATUS _lsa_LookupNames2(pipes_struct *p, status = _lsa_LookupNames(p, &q); + sid_array2->count = sid_array->count; sid_array2->sids = TALLOC_ARRAY(p->mem_ctx, struct lsa_TranslatedSid2, sid_array->count); if (!sid_array2->sids) { return NT_STATUS_NO_MEMORY; -- 2.11.4.GIT