diff options
-rw-r--r-- | source3/auth/auth_util.c | 10 | ||||
-rw-r--r-- | source3/auth/token_util.c | 48 | ||||
-rw-r--r-- | source3/include/smb.h | 2 | ||||
-rw-r--r-- | source3/lib/util_nttoken.c | 18 | ||||
-rw-r--r-- | source3/lib/util_sid.c | 2 | ||||
-rw-r--r-- | source3/libgpo/gpo_reg.c | 16 | ||||
-rw-r--r-- | source3/modules/vfs_acl_common.c | 4 | ||||
-rw-r--r-- | source3/modules/vfs_smb_traffic_analyzer.c | 2 | ||||
-rw-r--r-- | source3/registry/reg_util_token.c | 2 | ||||
-rw-r--r-- | source3/smbd/service.c | 2 | ||||
-rw-r--r-- | source3/smbd/trans2.c | 6 | ||||
-rw-r--r-- | source3/smbd/uid.c | 4 | ||||
-rw-r--r-- | source3/utils/net_ads_gpo.c | 2 | ||||
-rw-r--r-- | source3/utils/net_rpc.c | 24 | ||||
-rw-r--r-- | source3/winbindd/winbindd_pam.c | 2 |
15 files changed, 72 insertions, 72 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index 23f557a316..3b07bad6bf 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -405,12 +405,12 @@ static NTSTATUS log_nt_token(NT_USER_TOKEN *token) for (i=1; i<token->num_sids; i++) { group_sidstr = talloc_asprintf( frame, "%s %s", group_sidstr, - sid_string_talloc(frame, &token->user_sids[i])); + sid_string_talloc(frame, &token->sids[i])); } command = talloc_string_sub( frame, lp_log_nt_token_command(), - "%s", sid_string_talloc(frame, &token->user_sids[0])); + "%s", sid_string_talloc(frame, &token->sids[0])); command = talloc_string_sub(frame, command, "%t", group_sidstr); if (command == NULL) { @@ -477,7 +477,7 @@ NTSTATUS create_local_token(struct auth_serversupplied_info *server_info) for (i=1; i<server_info->ptok->num_sids; i++) { gid_t gid; - struct dom_sid *sid = &server_info->ptok->user_sids[i]; + struct dom_sid *sid = &server_info->ptok->sids[i]; if (!sid_to_gid(sid, &gid)) { DEBUG(10, ("Could not convert SID %s to gid, " @@ -505,13 +505,13 @@ NTSTATUS create_local_token(struct auth_serversupplied_info *server_info) uid_to_unix_users_sid(server_info->utok.uid, &tmp_sid); add_sid_to_array_unique(server_info->ptok, &tmp_sid, - &server_info->ptok->user_sids, + &server_info->ptok->sids, &server_info->ptok->num_sids); for ( i=0; i<server_info->utok.ngroups; i++ ) { gid_to_unix_groups_sid(server_info->utok.groups[i], &tmp_sid); add_sid_to_array_unique(server_info->ptok, &tmp_sid, - &server_info->ptok->user_sids, + &server_info->ptok->sids, &server_info->ptok->num_sids); } diff --git a/source3/auth/token_util.c b/source3/auth/token_util.c index 8f66171e40..87022fb1e4 100644 --- a/source3/auth/token_util.c +++ b/source3/auth/token_util.c @@ -42,7 +42,7 @@ bool nt_token_check_sid ( const struct dom_sid *sid, const NT_USER_TOKEN *token return False; for ( i=0; i<token->num_sids; i++ ) { - if ( sid_equal( sid, &token->user_sids[i] ) ) + if ( sid_equal( sid, &token->sids[i] ) ) return True; } @@ -144,7 +144,7 @@ NTSTATUS add_aliases(const struct dom_sid *domain_sid, num_aliases = 0; status = pdb_enum_alias_memberships(tmp_ctx, domain_sid, - token->user_sids, + token->sids, token->num_sids, &aliases, &num_aliases); @@ -158,7 +158,7 @@ NTSTATUS add_aliases(const struct dom_sid *domain_sid, struct dom_sid alias_sid; sid_compose(&alias_sid, domain_sid, aliases[i]); status = add_sid_to_array_unique(token, &alias_sid, - &token->user_sids, + &token->sids, &token->num_sids); if (!NT_STATUS_IS_OK(status)) { DEBUG(0, ("add_sid_to_array failed\n")); @@ -200,7 +200,7 @@ static NTSTATUS add_builtin_administrators(struct nt_user_token *token, if ( nt_token_check_sid( &domadm, token ) ) { status = add_sid_to_array(token, &global_sid_Builtin_Administrators, - &token->user_sids, &token->num_sids); + &token->sids, &token->num_sids); if (!NT_STATUS_IS_OK(status)) { return status; } @@ -365,8 +365,8 @@ NTSTATUS create_local_nt_token_from_info3(TALLOC_CTX *mem_ctx, /* check if the user rid is the special "Domain Guests" rid. * If so pick the first sid for the extra sids instead as it * is a local fake account */ - usrtok->user_sids = talloc_array(usrtok, struct dom_sid, 2); - if (!usrtok->user_sids) { + usrtok->sids = talloc_array(usrtok, struct dom_sid, 2); + if (!usrtok->sids) { TALLOC_FREE(usrtok); return NT_STATUS_NO_MEMORY; } @@ -383,10 +383,10 @@ NTSTATUS create_local_nt_token_from_info3(TALLOC_CTX *mem_ctx, TALLOC_FREE(usrtok); return NT_STATUS_UNSUCCESSFUL; } - sid_copy(&usrtok->user_sids[0], &extra->user_sid); + sid_copy(&usrtok->sids[0], &extra->user_sid); } else { - sid_copy(&usrtok->user_sids[0], info3->base.domain_sid); - sid_append_rid(&usrtok->user_sids[0], info3->base.rid); + sid_copy(&usrtok->sids[0], info3->base.domain_sid); + sid_append_rid(&usrtok->sids[0], info3->base.rid); } /* GROUP SID */ @@ -400,10 +400,10 @@ NTSTATUS create_local_nt_token_from_info3(TALLOC_CTX *mem_ctx, TALLOC_FREE(usrtok); return NT_STATUS_UNSUCCESSFUL; } - sid_copy(&usrtok->user_sids[1], &extra->pgid_sid); + sid_copy(&usrtok->sids[1], &extra->pgid_sid); } else { - sid_copy(&usrtok->user_sids[1], info3->base.domain_sid); - sid_append_rid(&usrtok->user_sids[1], + sid_copy(&usrtok->sids[1], info3->base.domain_sid); + sid_append_rid(&usrtok->sids[1], info3->base.primary_gid); } @@ -420,7 +420,7 @@ NTSTATUS create_local_nt_token_from_info3(TALLOC_CTX *mem_ctx, sid_append_rid(&tmp_sid, info3->base.groups.rids[i].rid); status = add_sid_to_array_unique(usrtok, &tmp_sid, - &usrtok->user_sids, + &usrtok->sids, &usrtok->num_sids); if (!NT_STATUS_IS_OK(status)) { DEBUG(3, ("Failed to add SID to nt token\n")); @@ -434,7 +434,7 @@ NTSTATUS create_local_nt_token_from_info3(TALLOC_CTX *mem_ctx, for (i = 0; i < info3->sidcount; i++) { status = add_sid_to_array_unique(usrtok, info3->sids[i].sid, - &usrtok->user_sids, + &usrtok->sids, &usrtok->num_sids); if (!NT_STATUS_IS_OK(status)) { DEBUG(3, ("Failed to add SID to nt token\n")); @@ -479,7 +479,7 @@ struct nt_user_token *create_local_nt_token(TALLOC_CTX *mem_ctx, /* Add the user and primary group sid */ status = add_sid_to_array(result, user_sid, - &result->user_sids, &result->num_sids); + &result->sids, &result->num_sids); if (!NT_STATUS_IS_OK(status)) { TALLOC_FREE(result); return NULL; @@ -488,7 +488,7 @@ struct nt_user_token *create_local_nt_token(TALLOC_CTX *mem_ctx, /* For guest, num_groupsids may be zero. */ if (num_groupsids) { status = add_sid_to_array(result, &groupsids[0], - &result->user_sids, + &result->sids, &result->num_sids); if (!NT_STATUS_IS_OK(status)) { TALLOC_FREE(result); @@ -504,7 +504,7 @@ struct nt_user_token *create_local_nt_token(TALLOC_CTX *mem_ctx, for (i=1; i<num_groupsids; i++) { status = add_sid_to_array_unique(result, &groupsids[i], - &result->user_sids, + &result->sids, &result->num_sids); if (!NT_STATUS_IS_OK(status)) { TALLOC_FREE(result); @@ -531,19 +531,19 @@ static NTSTATUS finalize_local_nt_token(struct nt_user_token *result, /* Add in BUILTIN sids */ status = add_sid_to_array(result, &global_sid_World, - &result->user_sids, &result->num_sids); + &result->sids, &result->num_sids); if (!NT_STATUS_IS_OK(status)) { return status; } status = add_sid_to_array(result, &global_sid_Network, - &result->user_sids, &result->num_sids); + &result->sids, &result->num_sids); if (!NT_STATUS_IS_OK(status)) { return status; } if (is_guest) { status = add_sid_to_array(result, &global_sid_Builtin_Guests, - &result->user_sids, + &result->sids, &result->num_sids); if (!NT_STATUS_IS_OK(status)) { return status; @@ -551,7 +551,7 @@ static NTSTATUS finalize_local_nt_token(struct nt_user_token *result, } else { status = add_sid_to_array(result, &global_sid_Authenticated_Users, - &result->user_sids, + &result->sids, &result->num_sids); if (!NT_STATUS_IS_OK(status)) { return status; @@ -642,7 +642,7 @@ static NTSTATUS finalize_local_nt_token(struct nt_user_token *result, /* Add privileges based on current user sids */ - get_privileges_for_sids(&result->privileges, result->user_sids, + get_privileges_for_sids(&result->privileges, result->sids, result->num_sids); return NT_STATUS_OK; @@ -663,13 +663,13 @@ void debug_nt_user_token(int dbg_class, int dbg_lev, NT_USER_TOKEN *token) DEBUGC(dbg_class, dbg_lev, ("NT user token of user %s\n", - sid_string_dbg(&token->user_sids[0]) )); + sid_string_dbg(&token->sids[0]) )); DEBUGADDC(dbg_class, dbg_lev, ("contains %lu SIDs\n", (unsigned long)token->num_sids)); for (i = 0; i < token->num_sids; i++) DEBUGADDC(dbg_class, dbg_lev, ("SID[%3lu]: %s\n", (unsigned long)i, - sid_string_dbg(&token->user_sids[i]))); + sid_string_dbg(&token->sids[i]))); dump_se_priv( dbg_class, dbg_lev, &token->privileges ); } diff --git a/source3/include/smb.h b/source3/include/smb.h index 74f1eb535a..011851ab81 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -233,7 +233,7 @@ extern const struct dom_sid global_sid_Unix_Groups; typedef struct nt_user_token { size_t num_sids; - struct dom_sid *user_sids; + struct dom_sid *sids; SE_PRIV privileges; } NT_USER_TOKEN; diff --git a/source3/lib/util_nttoken.c b/source3/lib/util_nttoken.c index 04c7e4f157..60ce8e7618 100644 --- a/source3/lib/util_nttoken.c +++ b/source3/lib/util_nttoken.c @@ -44,11 +44,11 @@ NT_USER_TOKEN *dup_nt_token(TALLOC_CTX *mem_ctx, const NT_USER_TOKEN *ptoken) return NULL; } - if (ptoken->user_sids && ptoken->num_sids) { - token->user_sids = (struct dom_sid *)talloc_memdup( - token, ptoken->user_sids, sizeof(struct dom_sid) * ptoken->num_sids ); + if (ptoken->sids && ptoken->num_sids) { + token->sids = (struct dom_sid *)talloc_memdup( + token, ptoken->sids, sizeof(struct dom_sid) * ptoken->num_sids ); - if (token->user_sids == NULL) { + if (token->sids == NULL) { DEBUG(0, ("talloc_memdup failed\n")); TALLOC_FREE(token); return NULL; @@ -88,8 +88,8 @@ NTSTATUS merge_nt_token(TALLOC_CTX *mem_ctx, for (i=0; i < token_1->num_sids; i++) { status = add_sid_to_array_unique(mem_ctx, - &token_1->user_sids[i], - &token->user_sids, + &token_1->sids[i], + &token->sids, &token->num_sids); if (!NT_STATUS_IS_OK(status)) { TALLOC_FREE(token); @@ -99,8 +99,8 @@ NTSTATUS merge_nt_token(TALLOC_CTX *mem_ctx, for (i=0; i < token_2->num_sids; i++) { status = add_sid_to_array_unique(mem_ctx, - &token_2->user_sids[i], - &token->user_sids, + &token_2->sids[i], + &token->sids, &token->num_sids); if (!NT_STATUS_IS_OK(status)) { TALLOC_FREE(token); @@ -125,7 +125,7 @@ bool token_sid_in_ace(const NT_USER_TOKEN *token, const struct security_ace *ace size_t i; for (i = 0; i < token->num_sids; i++) { - if (sid_equal(&ace->trustee, &token->user_sids[i])) + if (sid_equal(&ace->trustee, &token->sids[i])) return true; } diff --git a/source3/lib/util_sid.c b/source3/lib/util_sid.c index 31a4c06c24..3874d3d20c 100644 --- a/source3/lib/util_sid.c +++ b/source3/lib/util_sid.c @@ -673,7 +673,7 @@ bool is_sid_in_token(const NT_USER_TOKEN *token, const struct dom_sid *sid) int i; for (i=0; i<token->num_sids; i++) { - if (sid_compare(sid, &token->user_sids[i]) == 0) + if (sid_compare(sid, &token->sids[i]) == 0) return true; } return false; diff --git a/source3/libgpo/gpo_reg.c b/source3/libgpo/gpo_reg.c index 5b56ecd365..10c4160b02 100644 --- a/source3/libgpo/gpo_reg.c +++ b/source3/libgpo/gpo_reg.c @@ -40,7 +40,7 @@ struct nt_user_token *registry_create_system_token(TALLOC_CTX *mem_ctx) token->privileges = se_priv_all; if (!NT_STATUS_IS_OK(add_sid_to_array(token, &global_sid_System, - &token->user_sids, &token->num_sids))) { + &token->sids, &token->num_sids))) { DEBUG(1,("Error adding nt-authority system sid to token\n")); return NULL; } @@ -319,7 +319,7 @@ static WERROR gp_reg_del_groupmembership(TALLOC_CTX *mem_ctx, { const char *path = NULL; - path = gp_reg_groupmembership_path(mem_ctx, &token->user_sids[0], + path = gp_reg_groupmembership_path(mem_ctx, &token->sids[0], flags); W_ERROR_HAVE_NO_MEMORY(path); @@ -343,7 +343,7 @@ static WERROR gp_reg_store_groupmembership(TALLOC_CTX *mem_ctx, const char *val = NULL; int count = 0; - path = gp_reg_groupmembership_path(mem_ctx, &token->user_sids[0], + path = gp_reg_groupmembership_path(mem_ctx, &token->sids[0], flags); W_ERROR_HAVE_NO_MEMORY(path); @@ -358,7 +358,7 @@ static WERROR gp_reg_store_groupmembership(TALLOC_CTX *mem_ctx, valname = talloc_asprintf(mem_ctx, "Group%d", count++); W_ERROR_HAVE_NO_MEMORY(valname); - val = sid_string_talloc(mem_ctx, &token->user_sids[i]); + val = sid_string_talloc(mem_ctx, &token->sids[i]); W_ERROR_HAVE_NO_MEMORY(val); werr = gp_store_reg_val_sz(mem_ctx, key, valname, val); W_ERROR_NOT_OK_RETURN(werr); @@ -410,7 +410,7 @@ static WERROR gp_reg_read_groupmembership(TALLOC_CTX *mem_ctx, werr = gp_read_reg_val_sz(mem_ctx, key, valname, &val); W_ERROR_NOT_OK_RETURN(werr); - if (!string_to_sid(&tmp_token->user_sids[num_token_sids++], + if (!string_to_sid(&tmp_token->sids[num_token_sids++], val)) { return WERR_INSUFFICIENT_BUFFER; } @@ -468,7 +468,7 @@ WERROR gp_reg_state_store(TALLOC_CTX *mem_ctx, W_ERROR_NOT_OK_RETURN(werr); werr = gp_secure_key(mem_ctx, flags, reg_ctx->curr_key, - &token->user_sids[0]); + &token->sids[0]); if (!W_ERROR_IS_OK(werr)) { DEBUG(0,("failed to secure key: %s\n", win_errstr(werr))); goto done; @@ -480,7 +480,7 @@ WERROR gp_reg_state_store(TALLOC_CTX *mem_ctx, goto done; } - subkeyname = gp_req_state_path(mem_ctx, &token->user_sids[0], flags); + subkeyname = gp_req_state_path(mem_ctx, &token->sids[0], flags); if (!subkeyname) { werr = WERR_NOMEM; goto done; @@ -979,7 +979,7 @@ WERROR reg_apply_registry_entry(TALLOC_CTX *mem_ctx, case GP_REG_ACTION_SEC_KEY_SET: werr = gp_secure_key(mem_ctx, flags, key, - &token->user_sids[0]); + &token->sids[0]); if (!W_ERROR_IS_OK(werr)) { DEBUG(0,("reg_apply_registry_entry: " "gp_secure_key failed: %s\n", diff --git a/source3/modules/vfs_acl_common.c b/source3/modules/vfs_acl_common.c index 46ff2e6f0c..e759dc2df3 100644 --- a/source3/modules/vfs_acl_common.c +++ b/source3/modules/vfs_acl_common.c @@ -422,8 +422,8 @@ static NTSTATUS inherit_new_acl(vfs_handle_struct *handle, &psd, &size, parent_desc, - &handle->conn->server_info->ptok->user_sids[PRIMARY_USER_SID_INDEX], - &handle->conn->server_info->ptok->user_sids[PRIMARY_GROUP_SID_INDEX], + &handle->conn->server_info->ptok->sids[PRIMARY_USER_SID_INDEX], + &handle->conn->server_info->ptok->sids[PRIMARY_GROUP_SID_INDEX], is_directory); if (!NT_STATUS_IS_OK(status)) { return status; diff --git a/source3/modules/vfs_smb_traffic_analyzer.c b/source3/modules/vfs_smb_traffic_analyzer.c index 53ea5f9339..a5e1f5e6f6 100644 --- a/source3/modules/vfs_smb_traffic_analyzer.c +++ b/source3/modules/vfs_smb_traffic_analyzer.c @@ -330,7 +330,7 @@ static char *smb_traffic_analyzer_create_string( TALLOC_CTX *ctx, * anonymized if needed, by the calling function. */ usersid = dom_sid_string( common_data_count_str, - &handle->conn->server_info->ptok->user_sids[0]); + &handle->conn->server_info->ptok->sids[0]); sidstr = smb_traffic_analyzer_anonymize( common_data_count_str, diff --git a/source3/registry/reg_util_token.c b/source3/registry/reg_util_token.c index f218dfa472..995b0d8322 100644 --- a/source3/registry/reg_util_token.c +++ b/source3/registry/reg_util_token.c @@ -45,7 +45,7 @@ NTSTATUS registry_create_admin_token(TALLOC_CTX *mem_ctx, } token->privileges = se_disk_operators; status = add_sid_to_array(token, &global_sid_Builtin_Administrators, - &token->user_sids, &token->num_sids); + &token->sids, &token->num_sids); if (!NT_STATUS_IS_OK(status)) { DEBUG(1, ("Error adding builtin administrators sid " "to fake token.\n")); diff --git a/source3/smbd/service.c b/source3/smbd/service.c index d395572856..675ae2b0d5 100644 --- a/source3/smbd/service.c +++ b/source3/smbd/service.c @@ -759,7 +759,7 @@ connection_struct *make_connection_snum(struct smbd_server_connection *sconn, status = find_forced_group( conn->force_user, snum, conn->server_info->unix_name, - &conn->server_info->ptok->user_sids[1], + &conn->server_info->ptok->sids[1], &conn->server_info->utok.gid); if (!NT_STATUS_IS_OK(status)) { diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 4ecf08a479..304476476e 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -3406,7 +3406,7 @@ cBytesSector=%u, cUnitTotal=%u, cUnitAvail=%d\n", (unsigned int)bsize, (unsigned for (i = 0, sid_bytes = 0; i < conn->server_info->ptok->num_sids; ++i) { sid_bytes += ndr_size_dom_sid( - &conn->server_info->ptok->user_sids[i], + &conn->server_info->ptok->sids[i], 0); } @@ -3428,11 +3428,11 @@ cBytesSector=%u, cUnitTotal=%u, cUnitAvail=%d\n", (unsigned int)bsize, (unsigned for (i = 0; i < conn->server_info->ptok->num_sids; ++i) { int sid_len = ndr_size_dom_sid( - &conn->server_info->ptok->user_sids[i], + &conn->server_info->ptok->sids[i], 0); sid_linearize(pdata + data_len, sid_len, - &conn->server_info->ptok->user_sids[i]); + &conn->server_info->ptok->sids[i]); data_len += sid_len; } diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c index c7c216b66f..d7ede293c1 100644 --- a/source3/smbd/uid.c +++ b/source3/smbd/uid.c @@ -325,14 +325,14 @@ bool change_to_user(connection_struct *conn, uint16 vuid) conn->force_group_gid; gid = conn->force_group_gid; gid_to_sid(&conn->server_info->ptok - ->user_sids[1], gid); + ->sids[1], gid); break; } } } else { conn->server_info->utok.gid = conn->force_group_gid; gid = conn->force_group_gid; - gid_to_sid(&conn->server_info->ptok->user_sids[1], + gid_to_sid(&conn->server_info->ptok->sids[1], gid); } } diff --git a/source3/utils/net_ads_gpo.c b/source3/utils/net_ads_gpo.c index 57396c76e3..d6f392ae7e 100644 --- a/source3/utils/net_ads_gpo.c +++ b/source3/utils/net_ads_gpo.c @@ -157,7 +157,7 @@ static int net_ads_gpo_refresh(struct net_context *c, int argc, const char **arg { WERROR werr = gp_reg_state_read(mem_ctx, flags, - &token->user_sids[0], + &token->sids[0], &read_list); if (!W_ERROR_IS_OK(werr)) { d_printf(_("failed: %s\n"), win_errstr(werr)); diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c index fe94f7ec88..4dd00d3dc2 100644 --- a/source3/utils/net_rpc.c +++ b/source3/utils/net_rpc.c @@ -4118,21 +4118,21 @@ static void init_user_token(NT_USER_TOKEN *token, struct dom_sid *user_sid) { token->num_sids = 4; - if (!(token->user_sids = SMB_MALLOC_ARRAY(struct dom_sid, 4))) { + if (!(token->sids = SMB_MALLOC_ARRAY(struct dom_sid, 4))) { d_fprintf(stderr, "malloc %s\n",_("failed")); token->num_sids = 0; return; } - token->user_sids[0] = *user_sid; - sid_copy(&token->user_sids[1], &global_sid_World); - sid_copy(&token->user_sids[2], &global_sid_Network); - sid_copy(&token->user_sids[3], &global_sid_Authenticated_Users); + token->sids[0] = *user_sid; + sid_copy(&token->sids[1], &global_sid_World); + sid_copy(&token->sids[2], &global_sid_Network); + sid_copy(&token->sids[3], &global_sid_Authenticated_Users); } static void free_user_token(NT_USER_TOKEN *token) { - SAFE_FREE(token->user_sids); + SAFE_FREE(token->sids); } static void add_sid_to_token(NT_USER_TOKEN *token, struct dom_sid *sid) @@ -4140,12 +4140,12 @@ static void add_sid_to_token(NT_USER_TOKEN *token, struct dom_sid *sid) if (is_sid_in_token(token, sid)) return; - token->user_sids = SMB_REALLOC_ARRAY(token->user_sids, struct dom_sid, token->num_sids+1); - if (!token->user_sids) { + token->sids = SMB_REALLOC_ARRAY(token->sids, struct dom_sid, token->num_sids+1); + if (!token->sids) { return; } - sid_copy(&token->user_sids[token->num_sids], sid); + sid_copy(&token->sids[token->num_sids], sid); token->num_sids += 1; } @@ -4162,7 +4162,7 @@ static void dump_user_token(struct user_token *token) d_printf("%s\n", token->name); for (i=0; i<token->token.num_sids; i++) { - d_printf(" %s\n", sid_string_tos(&token->token.user_sids[i])); + d_printf(" %s\n", sid_string_tos(&token->token.sids[i])); } } @@ -4201,7 +4201,7 @@ static void collect_alias_memberships(NT_USER_TOKEN *token) int i; for (i=0; i<num_global_sids; i++) { - collect_sid_memberships(token, token->user_sids[i]); + collect_sid_memberships(token, token->sids[i]); } } @@ -4410,7 +4410,7 @@ static bool get_user_tokens_from_file(FILE *f, fstrcpy(token->name, line); token->token.num_sids = 0; - token->token.user_sids = NULL; + token->token.sids = NULL; continue; } diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c index be3b2a5c77..f9b1ab925a 100644 --- a/source3/winbindd/winbindd_pam.c +++ b/source3/winbindd/winbindd_pam.c @@ -303,7 +303,7 @@ static NTSTATUS check_info3_in_group(struct netr_SamInfo3 *info3, } status = sid_array_from_info3(talloc_tos(), info3, - &token->user_sids, + &token->sids, &token->num_sids, true, false); if (!NT_STATUS_IS_OK(status)) { |