summaryrefslogtreecommitdiffstats
path: root/source3/libmsrpc
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-06-28 21:30:21 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:19:05 -0500
commit2b8abc030b1eca43f7c0c05dc96eebeb6c492030 (patch)
treebaaede502f92ed3528fc26793eff4c1adda96ed5 /source3/libmsrpc
parent79eaa709a05d765673ea0766b1d23a0c60d76b4c (diff)
downloadsamba-2b8abc030b1eca43f7c0c05dc96eebeb6c492030.tar.gz
samba-2b8abc030b1eca43f7c0c05dc96eebeb6c492030.tar.xz
samba-2b8abc030b1eca43f7c0c05dc96eebeb6c492030.zip
r16644: Fix bug #3887 reported by jason@ncac.gwu.edu
by converting the lookup_XX functions to correctly return SID_NAME_TYPE enums. Jeremy. (This used to be commit ee2b2d96b60c668e37592c79e86c2fd851e15f69)
Diffstat (limited to 'source3/libmsrpc')
-rw-r--r--source3/libmsrpc/cac_lsarpc.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source3/libmsrpc/cac_lsarpc.c b/source3/libmsrpc/cac_lsarpc.c
index 72f22de5f22..7b62b4d4627 100644
--- a/source3/libmsrpc/cac_lsarpc.c
+++ b/source3/libmsrpc/cac_lsarpc.c
@@ -144,7 +144,7 @@ int cac_LsaGetNamesFromSids(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, struct Ls
/*buffers for outputs*/
char **domains = NULL;
char **names = NULL;
- uint32 *types = NULL;
+ enum SID_NAME_USE *types = NULL;
CacSidInfo *sids_out = NULL;
DOM_SID *unknown_out = NULL;
@@ -267,7 +267,7 @@ int cac_LsaGetSidsFromNames(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, struct Ls
/*buffers for outputs*/
DOM_SID *sids = NULL;
- uint32 *types = NULL;
+ enum SID_NAME_USE *types = NULL;
CacSidInfo *sids_out = NULL;
char **unknown_out = NULL;
@@ -579,7 +579,7 @@ int cac_LsaEnumAccountRights(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, struct L
if(op->in.name && !op->in.sid) {
DOM_SID *user_sid = NULL;
- uint32 *type;
+ enum SID_NAME_USE *type;
/*lookup the SID*/
hnd->status = rpccli_lsa_lookup_names( pipe_hnd, mem_ctx, op->in.pol, 1, (const char **)&(op->in.name), NULL, &user_sid, &type);
@@ -806,7 +806,7 @@ int cac_LsaOpenAccount(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, struct LsaOpen
/*look up the user's SID if we have to*/
if(op->in.name && !op->in.sid) {
DOM_SID *user_sid = NULL;
- uint32 *type;
+ enum SID_NAME_USE *type;
/*lookup the SID*/
hnd->status = rpccli_lsa_lookup_names( pipe_hnd, mem_ctx, op->in.pol, 1, (const char **)&(op->in.name), NULL, &user_sid, &type);
@@ -840,7 +840,7 @@ int cac_LsaAddPrivileges(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, struct LsaAd
struct rpc_pipe_client *pipe_hnd = NULL;
DOM_SID *user_sid = NULL;
- uint32 *type = NULL;
+ enum SID_NAME_USE *type = NULL;
if(!hnd) {
return CAC_FAILURE;
@@ -890,7 +890,7 @@ int cac_LsaRemovePrivileges(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, struct Ls
struct rpc_pipe_client *pipe_hnd = NULL;
DOM_SID *user_sid = NULL;
- uint32 *type = NULL;
+ enum SID_NAME_USE *type = NULL;
if(!hnd) {
return CAC_FAILURE;
@@ -940,7 +940,7 @@ int cac_LsaClearPrivileges(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, struct Lsa
struct rpc_pipe_client *pipe_hnd = NULL;
DOM_SID *user_sid = NULL;
- uint32 *type = NULL;
+ enum SID_NAME_USE *type = NULL;
if(!hnd) {
return CAC_FAILURE;
@@ -990,7 +990,7 @@ int cac_LsaSetPrivileges(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, struct LsaAd
struct rpc_pipe_client *pipe_hnd = NULL;
DOM_SID *user_sid = NULL;
- uint32 *type = NULL;
+ enum SID_NAME_USE *type = NULL;
if(!hnd) {
return CAC_FAILURE;