/sssd/src/providers/ldap/ |
H A D | sdap_idmap.h | 33 struct sss_idmap_ctx *map; member in struct:sdap_idmap_ctx
|
H A D | sdap_async_sudo.c | 140 struct sdap_attr_map *map, 163 map[SDAP_AT_SUDO_HOST].name); 170 map[SDAP_AT_SUDO_HOST].name); 179 map[SDAP_AT_SUDO_HOST].name, 191 map[SDAP_AT_SUDO_HOST].name, 202 map[SDAP_AT_SUDO_HOST].name, 217 map[SDAP_AT_SUDO_HOST].name, 218 map[SDAP_AT_SUDO_HOST].name, 219 map[SDAP_AT_SUDO_HOST].name, 220 map[SDAP_AT_SUDO_HOS 139 sdap_sudo_build_host_filter(TALLOC_CTX *mem_ctx, struct sdap_attr_map *map, char **hostnames, char **ip_addr, bool netgroups, bool regexp) argument 239 sdap_sudo_get_filter(TALLOC_CTX *mem_ctx, struct sdap_attr_map *map, struct sdap_sudo_ctx *sudo_ctx, const char *rule_filter) argument [all...] |
H A D | sdap_ops.c | 35 struct sdap_attr_map *map; member in struct:sdap_search_bases_ex_state 58 struct sdap_attr_map *map, 84 state->map = map; 94 if (state->map != NULL) { 96 state->map[state->map_num_attrs].opt_name != NULL; 105 ret = build_attrs_from_map(state, state->map, state->map_num_attrs, 108 DEBUG(SSSDBG_OP_FAILURE, "Unable to build attrs from map " 157 state->attrs, state->map, 252 struct sdap_attr_map *map, 53 sdap_search_bases_ex_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct sdap_options *opts, struct sdap_handle *sh, struct sdap_search_base **bases, struct sdap_attr_map *map, bool allow_paging, bool return_first_reply, int timeout, const char *filter, const char **attrs) argument 247 sdap_search_bases_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct sdap_options *opts, struct sdap_handle *sh, struct sdap_search_base **bases, struct sdap_attr_map *map, bool allow_paging, int timeout, const char *filter, const char **attrs) argument 272 sdap_search_bases_return_first_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct sdap_options *opts, struct sdap_handle *sh, struct sdap_search_base **bases, struct sdap_attr_map *map, bool allow_paging, int timeout, const char *filter, const char **attrs) argument [all...] |
H A D | sdap_sudo_refresh.c | 166 struct sdap_attr_map *map = id_ctx->opts->sudorule_map; local 187 map[SDAP_OC_SUDORULE].name); 191 map[SDAP_OC_SUDORULE].name, 192 map[SDAP_AT_SUDO_USN].name, usn);
|
H A D | sdap_async_autofs.c | 39 get_autofs_map_name(struct sysdb_attrs *map, struct sdap_options *opts) argument 44 ret = sysdb_attrs_get_el(map, 87 const char *map, 106 return sysdb_save_autofsentry(domain, map, key, value, NULL); 112 const char *map, 147 ret = add_autofs_entry(domain, map, opts, entry); 187 struct sysdb_attrs *map) 193 mapname = get_autofs_map_name(map, opts); 221 struct sysdb_attrs *map; member in struct:automntmaps_process_members_state 240 struct sysdb_attrs *map) 86 add_autofs_entry(struct sss_domain_info *domain, const char *map, struct sdap_options *opts, struct sysdb_attrs *entry) argument 110 save_autofs_entries(struct sss_domain_info *domain, struct sdap_options *opts, const char *map, char **add_dn_list, hash_table_t *entry_hash) argument 185 save_autofs_map(struct sss_domain_info *dom, struct sdap_options *opts, struct sysdb_attrs *map) argument 233 automntmaps_process_members_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct sdap_options *opts, struct sdap_handle *sh, struct sss_domain_info *dom, struct sdap_search_base **search_bases, int timeout, struct sysdb_attrs *map) argument 430 struct sysdb_attrs **map; member in struct:sdap_get_automntmap_state 601 sdap_get_automntmap_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx, struct sysdb_attrs **map, size_t *entries_count, struct sysdb_attrs ***entries) argument 637 struct sysdb_attrs *map; member in struct:sdap_autofs_setautomntent_state [all...] |
H A D | ldap_common.c | 713 struct sdap_attr_map *map, 721 /* Skip map entries with no name (may depend on 724 if (!map[i].name) continue; 727 if(strcasecmp(ldap_name, map[i].name) == 0) break; 732 *sysdb_name = talloc_strdup(mem_ctx, map[i].sys_name); 746 struct sdap_attr_map *map, 768 ret = build_attrs_from_map(tmp_ctx, map, map_size, NULL, 786 ret = get_sysdb_attr_name(tmp_ctx, map, map_size, 909 err = sss_idmap_bin_sid_to_sid(idmap_ctx->map, 712 get_sysdb_attr_name(TALLOC_CTX *mem_ctx, struct sdap_attr_map *map, size_t map_size, const char *ldap_name, char **sysdb_name) argument 745 list_missing_attrs(TALLOC_CTX *mem_ctx, struct sdap_attr_map *map, size_t map_size, struct sysdb_attrs *recvd_attrs, char ***missing_attrs) argument
|
H A D | sdap.c | 53 struct sdap_attr_map *map; local 56 map = talloc_array(memctx, struct sdap_attr_map, num_entries + 1); 57 if (!map) { 62 map[i].opt_name = talloc_strdup(map, src_map[i].opt_name); 63 map[i].sys_name = talloc_strdup(map, src_map[i].sys_name); 64 if (map[i].opt_name == NULL || map[i].sys_name == NULL) { 69 map[ 131 check_duplicate(struct sdap_attr_map *map, int num_entries, const char *sysdb_attr, const char *ldap_attr) argument 158 struct sdap_attr_map *map; local 334 struct sdap_attr_map *map; local 393 sdap_parse_entry(TALLOC_CTX *memctx, struct sdap_handle *sh, struct sdap_msg *sm, struct sdap_attr_map *map, int attrs_num, struct sysdb_attrs **_attrs, bool disable_range_retrieval) argument 633 objectclass_matched(struct sdap_attr_map *map, const char *objcl, int len) argument 663 struct sdap_attr_map *map; local 1471 build_attrs_from_map(TALLOC_CTX *memctx, struct sdap_attr_map *map, size_t size, const char **filter, const char ***_attrs, size_t *attr_count) argument 1663 sdap_make_oc_list(TALLOC_CTX *mem_ctx, struct sdap_attr_map *map) argument [all...] |
H A D | sdap_async.c | 1081 if (res[i]->attrs == NULL) continue; /* Nothing in this map */ 1694 struct sdap_attr_map *map; member in struct:sdap_get_and_parse_generic_state 1714 struct sdap_attr_map *map, 1732 state->map = map; 1771 state->map, state->map_num_attrs, 1833 struct sdap_attr_map *map, 1847 map, map_num_attrs, 2440 struct sdap_attr_map *map; local 2464 res[mi]->map 1706 sdap_get_and_parse_generic_send(TALLOC_CTX *memctx, struct tevent_context *ev, struct sdap_options *opts, struct sdap_handle *sh, const char *search_base, int scope, const char *filter, const char **attrs, struct sdap_attr_map *map, int map_num_attrs, int attrsonly, LDAPControl **serverctrls, LDAPControl **clientctrls, int sizelimit, int timeout, bool allow_paging) argument 1825 sdap_get_generic_send(TALLOC_CTX *memctx, struct tevent_context *ev, struct sdap_options *opts, struct sdap_handle *sh, const char *search_base, int scope, const char *filter, const char **attrs, struct sdap_attr_map *map, int map_num_attrs, int timeout, bool allow_paging) argument [all...] |
H A D | sdap_async_nested_groups.c | 263 struct sdap_attr_map *map = group_ctx->opts->group_map; local 289 ret = sysdb_attrs_get_uint32_t(group, map[SDAP_AT_GROUP_GID].sys_name, 300 map[SDAP_AT_GROUP_GID].sys_name, 0); 1893 struct sdap_attr_map *map = group_ctx->opts->group_map; local 1916 oc_list = sdap_make_oc_list(state, map); 1924 map[SDAP_AT_GROUP_NAME].name); 1940 map, SDAP_OPTS_GROUP, 2253 maps[0].map = opts->user_map; 2255 maps[1].map = opts->group_map; 2258 /* pull down the whole group map, [all...] |
H A D | sdap.h | 497 struct sdap_attr_map *map; member in struct:sdap_attr_map_info 502 struct sdap_attr_map *map; member in struct:sdap_deref_attrs 543 struct sdap_attr_map *map, int attrs_num, 569 struct sdap_attr_map *map, 609 char *sdap_make_oc_list(TALLOC_CTX *mem_ctx, struct sdap_attr_map *map);
|
/sssd/src/lib/winbind_idmap_sss/ |
H A D | winbind_idmap_sss.c | 64 struct id_map **map) 83 for (c = 0; map[c]; c++) { 84 map[c]->status = ID_UNKNOWN; 87 for (c = 0; map[c]; c++) { 88 ret = sss_nss_getsidbyid(map[c]->xid.id, &sid_str, &id_type); 91 map[c]->status = ID_UNMAPPED; 98 map[c]->xid.type = ID_TYPE_UID; 101 map[c]->xid.type = ID_TYPE_GID; 104 map[c]->xid.type = ID_TYPE_BOTH; 117 memcpy(map[ 63 idmap_sss_unixids_to_sids(struct idmap_domain *dom, struct id_map **map) argument 126 idmap_sss_sids_to_unixids(struct idmap_domain *dom, struct id_map **map) argument [all...] |
/sssd/src/responder/autofs/ |
H A D | autofs_private.h | 55 struct ldb_message *map; member in struct:autofs_dom_ctx 64 /* state of the map entry */ 74 /* map entry */ 75 struct ldb_message *map; member in struct:autofs_map_ctx
|
H A D | autofssrv_cmd.c | 124 struct autofs_map_ctx **map) 135 *map = talloc_get_type(value.ptr, struct autofs_map_ctx); 142 "Unexpected error reading from autofs map hash [%d][%s]\n", 153 struct autofs_map_ctx *map; local 159 map = talloc_get_type(item->value.ptr, struct autofs_map_ctx); 160 if (!map) { 161 DEBUG(SSSDBG_OP_FAILURE, "Invalid autofs map\n"); 165 /* So that the destructor wouldn't attempt to remove the map from hash 167 map->map_table = NULL; 172 struct autofs_map_ctx *map) 122 get_autofs_map(struct autofs_ctx *actx, char *mapname, struct autofs_map_ctx **map) argument 171 set_autofs_map(struct autofs_ctx *actx, struct autofs_map_ctx *map) argument 207 struct autofs_map_ctx *map = local 354 struct autofs_map_ctx *map; member in struct:setautomntent_state 366 struct autofs_map_ctx *map; member in struct:setautomntent_lookup_ctx 378 struct autofs_map_ctx *map = local 389 set_autofs_map_lifetime(uint32_t lifetime, struct setautomntent_lookup_ctx *lookup_ctx, struct autofs_map_ctx *map) argument 606 setautomntent_get_autofs_map(struct autofs_ctx *actx, char *mapname, struct autofs_map_ctx **map) argument 634 struct autofs_map_ctx *map; local 925 struct autofs_map_ctx *map; local 1033 struct autofs_map_ctx *map; local 1071 getautomntent_process(struct autofs_cmd_ctx *cmdctx, struct autofs_map_ctx *map, uint32_t cursor, uint32_t max_entries) argument 1208 struct autofs_map_ctx *map; local 1337 struct autofs_map_ctx *map; local 1374 getautomntbyname_process(struct autofs_cmd_ctx *cmdctx, struct autofs_map_ctx *map, const char *key) argument [all...] |
/sssd/src/tests/cmocka/ |
H A D | common_mock_sdap.c | 92 struct sdap_attr_map *map, 84 sdap_get_generic_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct sdap_options *opts, struct sdap_handle *sh, const char *search_base, int scope, const char *filter, const char **attrs, struct sdap_attr_map *map, int map_num_attrs, int timeout, bool allow_paging) argument
|
H A D | test_sdap.c | 281 struct sdap_attr_map *map; local 304 ret = sdap_copy_map(test_ctx, ipa_user_map, SDAP_OPTS_USER, &map); 308 map, SDAP_OPTS_USER, 339 /* The extra attribute must not be downloaded, it's not present in map */ 343 talloc_free(map); 347 /* Some searches, like rootDSE search do not use any map */ 398 struct sdap_attr_map *map; local 410 ret = sdap_copy_map(test_ctx, rfc2307_user_map, SDAP_OPTS_USER, &map); 414 map, SDAP_OPTS_USER, 422 talloc_free(map); 433 struct sdap_attr_map *map; local 595 struct sdap_attr_map *map; local 630 struct sdap_attr_map *map; local 665 struct sdap_attr_map *map; local 698 struct sdap_attr_map *map; local [all...] |
/sssd/src/providers/krb5/ |
H A D | krb5_utils.c | 499 fill_name_to_primary_map(TALLOC_CTX *mem_ctx, char **map, argument 507 ret = split_tuple(mem_ctx, map[i], 530 char **map; local 546 &map, &size); 565 ret = fill_name_to_primary_map(name_to_primary, map, name_to_primary,
|
/sssd/src/db/ |
H A D | sysdb_autofs.c | 109 DEBUG(SSSDBG_TRACE_FUNC, "Adding autofs map %s\n", autofsmapname); 127 DEBUG(SSSDBG_OP_FAILURE, "Could not set map object class [%d]: %s\n", 134 DEBUG(SSSDBG_OP_FAILURE, "Could not set map name [%d]: %s\n", 179 DEBUG(SSSDBG_TRACE_FUNC, "Deleting autofs map %s\n", name); 208 "Cannot sanitize map [%s] error [%d]: %s\n", 225 "Error looking up autofs map [%s]\n", safe_map_name); 228 DEBUG(SSSDBG_TRACE_FUNC, "No such map\n"); 235 "More than one map named %s\n", safe_map_name); 248 const char *map, 310 dn = sysdb_autofsentry_dn(tmp_ctx, domain, map, ke 247 sysdb_save_autofsentry(struct sss_domain_info *domain, const char *map, const char *key, const char *value, struct sysdb_attrs *attrs) argument [all...] |
/sssd/src/util/ |
H A D | well_known_sids.c | 183 struct rid_sid_name *map, 197 for (c = 0; map[c].name != NULL; c++) { 198 if (rid == map[c].rid) { 199 *name = map[c].name; 209 struct rid_sid_name *map, 214 for (c = 0; map[c].name != NULL; c++) { 215 if (strcmp(name, map[c].name) == 0) { 216 *sid = map[c].sid; 182 handle_rid_to_name_map(const char *sid, size_t prefix_len, struct rid_sid_name *map, const char* dom_name, const char **dom, const char **name) argument 208 handle_name_to_sid_map(const char *name, struct rid_sid_name *map, const char **sid) argument
|
/sssd/src/providers/ipa/ |
H A D | ipa_sudo_async.c | 79 struct sdap_attr_map *map) 92 map[IPA_AT_SUDORULE_HOST].name); 99 map[IPA_AT_SUDORULE_HOSTCATEGORY].name); 107 map[IPA_AT_SUDORULE_HOST].name); 116 map[IPA_AT_SUDORULE_HOST].name); 474 struct sdap_attr_map *map; local 480 map = state->map_cmdgroup; 483 map[IPA_OC_SUDOCMDGROUP].name, 491 state->sh, state->sudo_sb, map, true, 0, 555 struct sdap_attr_map *map; local 77 ipa_sudo_host_filter(TALLOC_CTX *mem_ctx, struct ipa_hostinfo *host, struct sdap_attr_map *map) argument [all...] |
H A D | ipa_sudo_conversion.c | 41 #define MATCHRDN_CMDGROUPS(map) (map)[IPA_AT_SUDOCMDGROUP_NAME].name, MATCHDN_CMDGROUPS 42 #define MATCHRDN_CMDS(attr, map) (map)[attr].name, MATCHDN_CMDS 44 #define MATCHRDN_USER(map) (map)[SDAP_AT_USER_NAME].name, "cn", "users", "cn", "accounts" 45 #define MATCHRDN_GROUP(map) (map)[SDAP_AT_GROUP_NAME].name, "cn", "groups", "cn", "accounts" 46 #define MATCHRDN_HOST(map) (map)[IPA_AT_HOST_FQD 586 get_sudo_cmdgroup_rdn(TALLOC_CTX *mem_ctx, struct sdap_attr_map *map, struct sysdb_ctx *sysdb, const char *dn, char **_rdn_val, const char **_rdn_attr) argument 608 get_sudo_cmd_rdn(TALLOC_CTX *mem_ctx, struct sdap_attr_map *map, struct sysdb_ctx *sysdb, const char *dn, char **_rdn_val, const char **_rdn_attr) argument 643 build_filter(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, hash_table_t *table, struct sdap_attr_map *map, ipa_sudo_conv_rdn_fn rdn_fn) argument [all...] |
/sssd/src/sbus/ |
H A D | sssd_dbus_interface.c | 975 struct sbus_iface_map *map, 981 for (i = 0; map[i].path != NULL; i++) { 982 ret = sbus_conn_register_iface(conn, map[i].vtable, map[i].path, pvt); 974 sbus_conn_register_iface_map(struct sbus_connection *conn, struct sbus_iface_map *map, void *pvt) argument
|
/sssd/src/tools/ |
H A D | sss_cache.c | 84 char *map; member in struct:input_values 235 free(values->map); 456 type_string = "autofs map"; 678 { "autofs-map", 'a', POPT_ARG_STRING, &(values.map), 0, 679 _("Invalidate particular autofs map"), NULL }, 757 !values.netgroup && !values.service && !values.map && 810 } else if (values.map) { 811 ctx->autofs_name = talloc_strdup(ctx, values.map); 908 if (values->map [all...] |
/sssd/src/tests/ |
H A D | sysdb-tests.c | 5703 fail_if(ret != EOK, "Could not store autofs map %s", autofsmapname); 5713 struct ldb_message *map = NULL; local 5722 autofsmapname, &map); 5723 fail_if(ret != EOK, "Could not retrieve autofs map %s", autofsmapname); 5724 fail_if(map == NULL, "No map retrieved?\n"); 5742 fail_if(ret != EOK, "Could not retrieve autofs map %s", autofsmapname); 5752 struct ldb_message *map = NULL; local 5761 autofsmapname, &map); 5763 fail_if(map ! [all...] |