From 2b27c93a9a8471693d7dcb5fdbe8afe65b22ff66 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Fri, 8 Sep 2006 14:28:06 +0000 Subject: r18271: Big change: * autogenerate lsa ndr code * rename 'enum SID_NAME_USE' to 'enum lsa_SidType' * merge a log more security descriptor functions from gen_ndr/ndr_security.c in SAMBA_4_0 The most embarassing thing is the "#define strlen_m strlen" We need a real implementation in SAMBA_3_0 which I'll work on after this code is in. (This used to be commit 3da9f80c28b1e75ef6d46d38fbb81ade6b9fa951) --- source3/utils/net_groupmap.c | 4 ++-- source3/utils/net_lookup.c | 4 ++-- source3/utils/net_rpc.c | 18 +++++++++--------- source3/utils/net_rpc_rights.c | 4 ++-- source3/utils/net_sam.c | 18 +++++++++--------- source3/utils/net_util.c | 4 ++-- source3/utils/netlookup.c | 4 ++-- source3/utils/smbcacls.c | 4 ++-- source3/utils/smbcquotas.c | 4 ++-- 9 files changed, 32 insertions(+), 32 deletions(-) (limited to 'source3/utils') diff --git a/source3/utils/net_groupmap.c b/source3/utils/net_groupmap.c index 4708efa908..ad1a141cfc 100644 --- a/source3/utils/net_groupmap.c +++ b/source3/utils/net_groupmap.c @@ -188,7 +188,7 @@ static int net_groupmap_add(int argc, const char **argv) fstring string_sid = ""; fstring type = ""; fstring ntcomment = ""; - enum SID_NAME_USE sid_type = SID_NAME_DOM_GRP; + enum lsa_SidType sid_type = SID_NAME_DOM_GRP; uint32 rid = 0; gid_t gid; int i; @@ -345,7 +345,7 @@ static int net_groupmap_modify(int argc, const char **argv) fstring ntgroup = ""; fstring unixgrp = ""; fstring sid_string = ""; - enum SID_NAME_USE sid_type = SID_NAME_UNKNOWN; + enum lsa_SidType sid_type = SID_NAME_UNKNOWN; int i; gid_t gid; diff --git a/source3/utils/net_lookup.c b/source3/utils/net_lookup.c index ebc7ba98b0..00cf2f6213 100644 --- a/source3/utils/net_lookup.c +++ b/source3/utils/net_lookup.c @@ -247,7 +247,7 @@ static int net_lookup_name(int argc, const char **argv) { const char *dom, *name; DOM_SID sid; - enum SID_NAME_USE type; + enum lsa_SidType type; if (argc != 1) { d_printf("usage: net lookup name \n"); @@ -269,7 +269,7 @@ static int net_lookup_sid(int argc, const char **argv) { const char *dom, *name; DOM_SID sid; - enum SID_NAME_USE type; + enum lsa_SidType type; if (argc != 1) { d_printf("usage: net lookup sid \n"); diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c index e0c361822d..b05eff8088 100644 --- a/source3/utils/net_rpc.c +++ b/source3/utils/net_rpc.c @@ -1330,7 +1330,7 @@ static NTSTATUS rpc_sh_handle_user(TALLOC_CTX *mem_ctx, NTSTATUS result = NT_STATUS_UNSUCCESSFUL; DOM_SID sid; uint32 rid; - enum SID_NAME_USE type; + enum lsa_SidType type; if (argc == 0) { d_fprintf(stderr, "usage: %s \n", ctx->whoami); @@ -2008,10 +2008,10 @@ static NTSTATUS get_sid_from_name(struct cli_state *cli, TALLOC_CTX *mem_ctx, const char *name, DOM_SID *sid, - enum SID_NAME_USE *type) + enum lsa_SidType *type) { DOM_SID *sids = NULL; - enum SID_NAME_USE *types = NULL; + enum lsa_SidType *types = NULL; struct rpc_pipe_client *pipe_hnd; POLICY_HND lsa_pol; NTSTATUS result = NT_STATUS_UNSUCCESSFUL; @@ -2131,7 +2131,7 @@ static NTSTATUS rpc_add_aliasmem(struct rpc_pipe_client *pipe_hnd, POLICY_HND alias_pol; DOM_SID member_sid; - enum SID_NAME_USE member_type; + enum lsa_SidType member_type; DOM_SID sid; @@ -2192,7 +2192,7 @@ static NTSTATUS rpc_group_addmem_internals(const DOM_SID *domain_sid, const char **argv) { DOM_SID group_sid; - enum SID_NAME_USE group_type; + enum lsa_SidType group_type; if (argc != 2) { d_printf("Usage: 'net rpc group addmem \n"); @@ -2308,7 +2308,7 @@ static NTSTATUS rpc_del_aliasmem(struct rpc_pipe_client *pipe_hnd, POLICY_HND alias_pol; DOM_SID member_sid; - enum SID_NAME_USE member_type; + enum lsa_SidType member_type; DOM_SID sid; @@ -2366,7 +2366,7 @@ static NTSTATUS rpc_group_delmem_internals(const DOM_SID *domain_sid, const char **argv) { DOM_SID group_sid; - enum SID_NAME_USE group_type; + enum lsa_SidType group_type; if (argc != 2) { d_printf("Usage: 'net rpc group delmem \n"); @@ -2717,7 +2717,7 @@ static NTSTATUS rpc_list_alias_members(struct rpc_pipe_client *pipe_hnd, DOM_SID *alias_sids; char **domains; char **names; - enum SID_NAME_USE *types; + enum lsa_SidType *types; int i; result = rpccli_samr_open_alias(pipe_hnd, mem_ctx, domain_pol, @@ -4075,7 +4075,7 @@ static NTSTATUS rpc_aliaslist_dump(const DOM_SID *domain_sid, for (i=0; i