summaryrefslogtreecommitdiff
path: root/source3/libmsrpc/cac_samr.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-03-06 15:22:00 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:10:57 -0500
commit9f2e29799eac96068fa033bdc4a9df5a82ec470d (patch)
treeb114323235b5e5e0ee8869f5dc1fa68272258955 /source3/libmsrpc/cac_samr.c
parent105825cf5a0de9f270e140910d1376d6c43d57a7 (diff)
downloadsamba-9f2e29799eac96068fa033bdc4a9df5a82ec470d.tar.gz
samba-9f2e29799eac96068fa033bdc4a9df5a82ec470d.tar.bz2
samba-9f2e29799eac96068fa033bdc4a9df5a82ec470d.zip
r13864: Some cleanup and the samr set security object function client-side.
Guenther (This used to be commit 0ae3fddf95a95ec8a2f4d52e1276c1721b33ddfd)
Diffstat (limited to 'source3/libmsrpc/cac_samr.c')
-rw-r--r--source3/libmsrpc/cac_samr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libmsrpc/cac_samr.c b/source3/libmsrpc/cac_samr.c
index 7f39e76813..60c6562988 100644
--- a/source3/libmsrpc/cac_samr.c
+++ b/source3/libmsrpc/cac_samr.c
@@ -2343,7 +2343,7 @@ int cac_SamGetSecurityObject(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, struct S
struct rpc_pipe_client *pipe_hnd = NULL;
/*this number taken from rpcclient/cmd_samr.c, I think it is the only supported level*/
- uint16 info_level = 4;
+ uint32 sec_info = DACL_SECURITY_INFORMATION;
SEC_DESC_BUF *sec_out = NULL;
@@ -2366,7 +2366,7 @@ int cac_SamGetSecurityObject(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, struct S
return CAC_FAILURE;
}
- hnd->status = rpccli_samr_query_sec_obj(pipe_hnd, mem_ctx, op->in.pol, info_level, mem_ctx, &sec_out);
+ hnd->status = rpccli_samr_query_sec_obj(pipe_hnd, mem_ctx, op->in.pol, sec_info, mem_ctx, &sec_out);
if(!NT_STATUS_IS_OK(hnd->status))
return CAC_FAILURE;