1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

samr: for correctness, rename samr_RidTypeArray to samr_RidAttrArray.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Oct  7 12:04:32 UTC 2010 on sn-devel-104
This commit is contained in:
Günther Deschner 2010-10-07 13:01:29 +02:00
parent e0b340247a
commit b7683a2c9d
10 changed files with 25 additions and 25 deletions

View File

@ -658,12 +658,12 @@ import "misc.idl", "lsa.idl", "security.idl";
typedef struct {
uint32 count;
[size_is(count)] uint32 *rids;
[size_is(count)] uint32 *types;
} samr_RidTypeArray;
[size_is(count)] samr_GroupAttrs *attributes;
} samr_RidAttrArray;
NTSTATUS samr_QueryGroupMember(
[in,ref] policy_handle *group_handle,
[out,ref] samr_RidTypeArray **rids
[out,ref] samr_RidAttrArray **rids
);

View File

@ -234,7 +234,7 @@ WERROR NetGroupDel_r(struct libnetapi_ctx *ctx,
struct samr_Ids rids;
struct samr_Ids types;
union samr_GroupInfo *info = NULL;
struct samr_RidTypeArray *rid_array = NULL;
struct samr_RidAttrArray *rid_array = NULL;
ZERO_STRUCT(connect_handle);
ZERO_STRUCT(domain_handle);
@ -1260,7 +1260,7 @@ WERROR NetGroupGetUsers_r(struct libnetapi_ctx *ctx,
struct lsa_String lsa_account_name;
struct dom_sid2 *domain_sid = NULL;
struct samr_Ids group_rids, name_types;
struct samr_RidTypeArray *rid_array = NULL;
struct samr_RidAttrArray *rid_array = NULL;
struct lsa_Strings names;
struct samr_Ids member_types;
@ -1408,7 +1408,7 @@ WERROR NetGroupSetUsers_r(struct libnetapi_ctx *ctx,
union samr_GroupInfo *group_info = NULL;
struct samr_Ids user_rids, name_types;
struct samr_Ids group_rids, group_types;
struct samr_RidTypeArray *rid_array = NULL;
struct samr_RidAttrArray *rid_array = NULL;
struct lsa_String *lsa_names = NULL;
uint32_t *add_rids = NULL;

View File

@ -5500,7 +5500,7 @@ NTSTATUS _samr_QueryGroupMember(struct pipes_struct *p,
uint32 *attr=NULL;
NTSTATUS status;
struct samr_RidTypeArray *rids = NULL;
struct samr_RidAttrArray *rids = NULL;
ginfo = policy_handle_find(p, r->in.group_handle,
SAMR_GROUP_ACCESS_GET_MEMBERS, NULL,
@ -5509,7 +5509,7 @@ NTSTATUS _samr_QueryGroupMember(struct pipes_struct *p,
return status;
}
rids = TALLOC_ZERO_P(p->mem_ctx, struct samr_RidTypeArray);
rids = TALLOC_ZERO_P(p->mem_ctx, struct samr_RidAttrArray);
if (!rids) {
return NT_STATUS_NO_MEMORY;
}
@ -5548,7 +5548,7 @@ NTSTATUS _samr_QueryGroupMember(struct pipes_struct *p,
}
rids->count = num_members;
rids->types = attr;
rids->attributes = attr;
rids->rids = rid;
*r->out.rids = rids;

View File

@ -722,7 +722,7 @@ static NTSTATUS cmd_samr_query_groupmem(struct rpc_pipe_client *cli,
uint32 access_mask = MAXIMUM_ALLOWED_ACCESS;
int i;
unsigned int old_timeout;
struct samr_RidTypeArray *rids = NULL;
struct samr_RidAttrArray *rids = NULL;
if ((argc < 2) || (argc > 3)) {
printf("Usage: %s rid [access mask]\n", argv[0]);
@ -774,7 +774,7 @@ static NTSTATUS cmd_samr_query_groupmem(struct rpc_pipe_client *cli,
for (i = 0; i < rids->count; i++) {
printf("\trid:[0x%x] attr:[0x%x]\n", rids->rids[i],
rids->types[i]);
rids->attributes[i]);
}
rpccli_samr_Close(cli, mem_ctx, &group_pol);

View File

@ -1511,7 +1511,7 @@ static NTSTATUS rpc_group_delete_internals(struct net_context *c,
bool group_is_primary = false;
NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
uint32_t group_rid;
struct samr_RidTypeArray *rids = NULL;
struct samr_RidAttrArray *rids = NULL;
/* char **names; */
int i;
/* struct samr_RidWithAttribute *user_gids; */
@ -2512,7 +2512,7 @@ static NTSTATUS rpc_list_group_members(struct net_context *c,
struct policy_handle group_pol;
uint32 num_members, *group_rids;
int i;
struct samr_RidTypeArray *rids = NULL;
struct samr_RidAttrArray *rids = NULL;
struct lsa_Strings names;
struct samr_Ids types;

View File

@ -618,7 +618,7 @@ static NTSTATUS msrpc_lookup_groupmem(struct winbindd_domain *domain,
unsigned int j, r;
struct rpc_pipe_client *cli;
unsigned int orig_timeout;
struct samr_RidTypeArray *rids = NULL;
struct samr_RidAttrArray *rids = NULL;
DEBUG(3,("msrpc_lookup_groupmem: %s sid=%s\n", domain->name,
sid_string_dbg(group_sid)));

View File

@ -693,7 +693,7 @@ NTSTATUS rpc_lookup_groupmem(TALLOC_CTX *mem_ctx,
switch(type) {
case SID_NAME_DOM_GRP:
{
struct samr_RidTypeArray *rids = NULL;
struct samr_RidAttrArray *rids = NULL;
status = rpccli_samr_OpenGroup(samr_pipe,
mem_ctx,

View File

@ -2118,7 +2118,7 @@ static NTSTATUS dcesrv_samr_QueryGroupMember(struct dcesrv_call_state *dce_call,
struct dcesrv_handle *h;
struct samr_account_state *a_state;
struct samr_domain_state *d_state;
struct samr_RidTypeArray *array;
struct samr_RidAttrArray *array;
unsigned int i, num_members;
struct dom_sid *members;
NTSTATUS status;
@ -2135,7 +2135,7 @@ static NTSTATUS dcesrv_samr_QueryGroupMember(struct dcesrv_call_state *dce_call,
return status;
}
array = talloc_zero(mem_ctx, struct samr_RidTypeArray);
array = talloc_zero(mem_ctx, struct samr_RidAttrArray);
if (array == NULL) {
return NT_STATUS_NO_MEMORY;
}
@ -2151,8 +2151,8 @@ static NTSTATUS dcesrv_samr_QueryGroupMember(struct dcesrv_call_state *dce_call,
return NT_STATUS_NO_MEMORY;
}
array->types = talloc_array(array, uint32_t, num_members);
if (array->types == NULL) {
array->attributes = talloc_array(array, uint32_t, num_members);
if (array->attributes == NULL) {
return NT_STATUS_NO_MEMORY;
}
@ -2168,7 +2168,7 @@ static NTSTATUS dcesrv_samr_QueryGroupMember(struct dcesrv_call_state *dce_call,
return status;
}
array->types[array->count] = SE_GROUP_MANDATORY |
array->attributes[array->count] = SE_GROUP_MANDATORY |
SE_GROUP_ENABLED_BY_DEFAULT |
SE_GROUP_ENABLED;
array->count++;

View File

@ -5616,7 +5616,7 @@ static bool test_QueryGroupMember(struct dcerpc_binding_handle *b,
struct policy_handle *handle)
{
struct samr_QueryGroupMember r;
struct samr_RidTypeArray *rids = NULL;
struct samr_RidAttrArray *rids = NULL;
bool ret = true;
torture_comment(tctx, "Testing QueryGroupMember\n");
@ -7010,7 +7010,7 @@ static bool test_AddGroupMember(struct dcerpc_binding_handle *b,
struct samr_AddGroupMember r;
struct samr_DeleteGroupMember d;
struct samr_QueryGroupMember q;
struct samr_RidTypeArray *rids = NULL;
struct samr_RidAttrArray *rids = NULL;
struct samr_SetMemberAttributesOfGroup s;
uint32_t rid;
bool found_member = false;

View File

@ -812,7 +812,7 @@ static bool test_samr_group(struct torture_context *tctx,
}
{
struct samr_QueryGroupMember r;
struct samr_RidTypeArray *rids;
struct samr_RidAttrArray *rids;
r.in.group_handle = &group_handle;
r.out.rids = &rids;