summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-01-18 14:48:58 +0100
committerGünther Deschner <gd@samba.org>2011-02-02 19:02:09 +0100
commite32b50894ba6e163c1c483fff668ff6161414541 (patch)
treea8e540072fedd206c3054d142aba43c3414722c9 /source3
parentee5de71796ad1985a3c0da0280567b301cc8204a (diff)
downloadsamba-e32b50894ba6e163c1c483fff668ff6161414541.tar.gz
samba-e32b50894ba6e163c1c483fff668ff6161414541.tar.bz2
samba-e32b50894ba6e163c1c483fff668ff6161414541.zip
s3-libnetapi: prefer dcerpc_lsa_X functions.
Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/netapi/localgroup.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/source3/lib/netapi/localgroup.c b/source3/lib/netapi/localgroup.c
index 7955ce5e02..ce9df27181 100644
--- a/source3/lib/netapi/localgroup.c
+++ b/source3/lib/netapi/localgroup.c
@@ -24,7 +24,7 @@
#include "lib/netapi/netapi_private.h"
#include "lib/netapi/libnetapi.h"
#include "../librpc/gen_ndr/ndr_samr_c.h"
-#include "../librpc/gen_ndr/cli_lsa.h"
+#include "../librpc/gen_ndr/ndr_lsa_c.h"
#include "rpc_client/cli_lsarpc.h"
#include "rpc_client/init_lsa.h"
#include "../libcli/security/security.h"
@@ -999,8 +999,9 @@ static NTSTATUS libnetapi_lsa_lookup_names3(TALLOC_CTX *mem_ctx,
const char *name,
struct dom_sid *sid)
{
- NTSTATUS status;
+ NTSTATUS status, result;
struct policy_handle lsa_handle;
+ struct dcerpc_binding_handle *b = lsa_pipe->binding_handle;
struct lsa_RefDomainList *domains = NULL;
struct lsa_TransSidArray3 sids;
@@ -1025,7 +1026,7 @@ static NTSTATUS libnetapi_lsa_lookup_names3(TALLOC_CTX *mem_ctx,
&lsa_handle);
NT_STATUS_NOT_OK_RETURN(status);
- status = rpccli_lsa_LookupNames3(lsa_pipe, mem_ctx,
+ status = dcerpc_lsa_LookupNames3(b, mem_ctx,
&lsa_handle,
num_names,
&names,
@@ -1033,8 +1034,10 @@ static NTSTATUS libnetapi_lsa_lookup_names3(TALLOC_CTX *mem_ctx,
&sids,
LSA_LOOKUP_NAMES_ALL, /* sure ? */
&count,
- 0, 0);
+ 0, 0,
+ &result);
NT_STATUS_NOT_OK_RETURN(status);
+ NT_STATUS_NOT_OK_RETURN(result);
if (count != 1 || sids.count != 1) {
return NT_STATUS_NONE_MAPPED;