/sssd-io/src/responder/nss/ |
H A D | nss_utils.c | 31 struct sss_domain_info *dom) 33 if (dom->pwfield != NULL) { 34 return dom->pwfield; 30 nss_get_pwfield(struct nss_ctx *nctx, struct sss_domain_info *dom) argument
|
/sssd-io/src/responder/common/iface/ |
H A D | responder_domain.c | 30 struct sss_domain_info *dom; local 39 for (dom = rctx->domains; 40 dom != NULL; 41 dom = get_next_domain(dom, SSS_GND_ALL_DOMAINS)) { 43 if (strcasecmp(dom->name, domain_name) == 0) { 48 if (dom != NULL) { 49 sss_domain_set_state(dom, state);
|
/sssd-io/src/responder/common/ |
H A D | negcache.h | 34 int sss_ncache_check_user(struct sss_nc_ctx *ctx, struct sss_domain_info *dom, 36 int sss_ncache_check_upn(struct sss_nc_ctx *ctx, struct sss_domain_info *dom, 38 int sss_ncache_check_group(struct sss_nc_ctx *ctx, struct sss_domain_info *dom, 40 int sss_ncache_check_netgr(struct sss_nc_ctx *ctx, struct sss_domain_info *dom, 42 int sss_ncache_check_uid(struct sss_nc_ctx *ctx, struct sss_domain_info *dom, 44 int sss_ncache_check_gid(struct sss_nc_ctx *ctx, struct sss_domain_info *dom, 50 struct sss_domain_info *dom, 54 struct sss_domain_info *dom, 63 struct sss_domain_info *dom, const char *name); 65 struct sss_domain_info *dom, cons [all...] |
H A D | negcache.c | 53 struct sss_domain_info *dom, const char *name, 270 struct sss_domain_info *dom, const char *name, 276 if (dom->case_sensitive == false) { 279 ret = checker(ctx, dom->name, lower); 282 ret = checker(ctx, dom->name, name); 288 int sss_ncache_check_user(struct sss_nc_ctx *ctx, struct sss_domain_info *dom, argument 291 return sss_cache_check_ent(ctx, dom, name, sss_ncache_check_user_int); 294 int sss_ncache_check_upn(struct sss_nc_ctx *ctx, struct sss_domain_info *dom, argument 305 ret = sss_cache_check_ent(ctx, dom, neg_cache_name, 312 int sss_ncache_check_group(struct sss_nc_ctx *ctx, struct sss_domain_info *dom, argument 269 sss_cache_check_ent(struct sss_nc_ctx *ctx, struct sss_domain_info *dom, const char *name, ncache_check_byname_fn_t checker) argument 318 sss_ncache_check_netgr(struct sss_nc_ctx *ctx, struct sss_domain_info *dom, const char *name) argument 341 sss_ncache_set_service_name(struct sss_nc_ctx *ctx, bool permanent, struct sss_domain_info *dom, const char *name, const char *proto) argument 358 sss_ncache_check_service(struct sss_nc_ctx *ctx,struct sss_domain_info *dom, const char *name, const char *proto) argument 373 sss_ncache_set_service_port(struct sss_nc_ctx *ctx, bool permanent, struct sss_domain_info *dom, uint16_t port, const char *proto) argument 390 sss_ncache_check_service_port(struct sss_nc_ctx *ctx, struct sss_domain_info *dom, uint16_t port, const char *proto) argument 409 sss_ncache_check_uid(struct sss_nc_ctx *ctx, struct sss_domain_info *dom, uid_t uid) argument 429 sss_ncache_check_gid(struct sss_nc_ctx *ctx, struct sss_domain_info *dom, gid_t gid) argument 537 sss_ncache_set_ent(struct sss_nc_ctx *ctx, bool permanent, struct sss_domain_info *dom, const char *name, ncache_set_byname_fn_t setter) argument 557 sss_ncache_set_user(struct sss_nc_ctx *ctx, bool permanent, struct sss_domain_info *dom, const char *name) argument 563 sss_ncache_set_upn(struct sss_nc_ctx *ctx, bool permanent, struct sss_domain_info *dom, const char *name) argument 581 sss_ncache_set_group(struct sss_nc_ctx *ctx, bool permanent, struct sss_domain_info *dom, const char *name) argument 587 sss_ncache_set_netgr(struct sss_nc_ctx *ctx, bool permanent, struct sss_domain_info *dom, const char *name) argument 593 sss_ncache_set_uid(struct sss_nc_ctx *ctx, bool permanent, struct sss_domain_info *dom, uid_t uid) argument 617 sss_ncache_set_gid(struct sss_nc_ctx *ctx, bool permanent, struct sss_domain_info *dom, gid_t gid) argument 670 domain_lookup_type_str(TALLOC_CTX *mem_ctx, struct sss_domain_info *dom, const char *lookup_type) argument 681 sss_ncache_set_domain_locate_type(struct sss_nc_ctx *ctx, struct sss_domain_info *dom, const char *lookup_type) argument 700 sss_ncache_check_domain_locate_type(struct sss_nc_ctx *ctx, struct sss_domain_info *dom, const char *lookup_type) argument 715 locate_gid_str(TALLOC_CTX *mem_ctx, struct sss_domain_info *dom, gid_t gid) argument 727 sss_ncache_set_locate_gid(struct sss_nc_ctx *ctx, struct sss_domain_info *dom, gid_t gid) argument 748 sss_ncache_check_locate_gid(struct sss_nc_ctx *ctx, struct sss_domain_info *dom, gid_t gid) argument 769 locate_uid_str(struct sss_nc_ctx *ctx, struct sss_domain_info *dom, uid_t uid) argument 781 sss_ncache_set_locate_uid(struct sss_nc_ctx *ctx, struct sss_domain_info *dom, uid_t uid) argument 802 sss_ncache_check_locate_uid(struct sss_nc_ctx *ctx, struct sss_domain_info *dom, uid_t uid) argument 932 struct sss_domain_info *dom = NULL; local [all...] |
H A D | responder_dp_ssh.c | 32 struct sss_domain_info *dom; member in struct:sss_dp_get_ssh_host_info 45 struct sss_domain_info *dom, 61 if (!dom) { 74 info->dom = dom; 77 key = talloc_asprintf(state, "%s:%s@%s", name, alias, dom->name); 79 key = talloc_asprintf(state, "%s@%s", name, dom->name); 86 ret = sss_dp_issue_request(state, rctx, key, dom, sss_dp_get_ssh_host_msg, 130 info->dom->name, dp_flags, info->name, 43 sss_dp_get_ssh_host_send(TALLOC_CTX *mem_ctx, struct resp_ctx *rctx, struct sss_domain_info *dom, bool fast_reply, const char *name, const char *alias) argument
|
H A D | responder_get_domains.c | 30 struct sss_domain_info *dom; member in struct:sss_dp_domains_info 36 struct sss_domain_info *dom, 56 info->dom = dom; 58 key = talloc_asprintf(state, "domains@%s", dom->name); 64 ret = sss_dp_issue_request(state, rctx, key, dom, 100 info->dom->name, info->hint); 129 static errno_t process_subdomains(struct sss_domain_info *dom, 136 struct sss_domain_info *dom; member in struct:sss_dp_get_domains_state 188 state->dom 35 get_subdomains_send(TALLOC_CTX *mem_ctx, struct resp_ctx *rctx, struct sss_domain_info *dom, const char *hint) argument 232 struct sss_domain_info *dom; local 375 struct sss_domain_info *dom; local 648 struct sss_domain_info *dom; member in struct:sss_dp_get_account_domain_info 655 sss_dp_get_account_domain_send(TALLOC_CTX *mem_ctx, struct resp_ctx *rctx, struct sss_domain_info *dom, enum sss_dp_acct_type type, uint32_t opt_id) argument [all...] |
/sssd-io/src/util/ |
H A D | domain_info_utils.c | 30 struct sss_domain_info *dom = NULL; local 33 for (dom = domain; dom->parent != NULL; dom = dom->parent); 35 return dom; 41 struct sss_domain_info *dom; local 45 dom = domain; 46 while (dom) { 47 if (descend && dom 100 struct sss_domain_info *dom = domain; local 124 struct sss_domain_info *dom = domain; local 181 struct sss_domain_info *dom = NULL; local 228 struct sss_domain_info *dom; local 283 struct sss_domain_info *dom; local 563 struct sss_domain_info *dom; local 857 domain_state_str(struct sss_domain_info *dom) argument 872 sss_domain_get_state(struct sss_domain_info *dom) argument 879 sss_domain_set_state(struct sss_domain_info *dom, enum sss_domain_state state) argument 887 sss_domain_is_forest_root(struct sss_domain_info *dom) argument 892 is_email_from_domain(const char *email, struct sss_domain_info *dom) argument 934 sss_domain_type_str(struct sss_domain_info *dom) argument [all...] |
H A D | well_known_sids.c | 49 #define SPECIAL_MAP_ENTRY(id_auth, rid, dom, name) \ 50 {(48 + id_auth), (48 + rid), SPECIAL_SID_PREFIX #id_auth "-" #rid, dom, name} 62 const char *dom; member in struct:special_map 142 static errno_t handle_special_sids(const char *sid, const char **dom, argument 158 *dom = sp_map[c].dom; 166 static errno_t handle_special_names(const char *dom, const char *name, argument 173 && strcmp(dom, sp_map[c].dom) == 0) { 184 const char* dom_name, const char **dom, 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 224 handle_nt_sids(const char *sid, const char **dom, const char **name) argument 236 handle_builtin_sids(const char *sid, const char **dom, const char **name) argument 248 well_known_sid_to_name(const char *sid, const char **dom, const char **name) argument 281 name_to_well_known_sid(const char *dom, const char *name, const char **sid) argument [all...] |
/sssd-io/src/providers/ldap/ |
H A D | sdap_domain.c | 26 struct sdap_domain *dom = local 28 DLIST_REMOVE(*(dom->head), dom); 34 struct sss_domain_info *dom) 39 if (sditer->dom == dom) { 90 struct sss_domain_info *dom, 100 sdom->dom = dom; 104 ret = domain_to_basedn(sdom, sdom->dom 33 sdap_domain_get(struct sdap_options *opts, struct sss_domain_info *dom) argument 89 sdap_domain_add(struct sdap_options *opts, struct sss_domain_info *dom, struct sdap_domain **_sdom) argument 131 struct sss_domain_info *dom; local 193 sdap_domain_remove(struct sdap_options *opts, struct sss_domain_info *dom) argument [all...] |
H A D | sdap_ad_groups.c | 31 errno_t sdap_check_ad_group_type(struct sss_domain_info *dom, argument 57 || (IS_SUBDOMAIN(dom)
|
H A D | sdap_users.h | 35 struct sss_domain_info *dom,
|
/sssd-io/src/responder/common/cache_req/ |
H A D | cache_req_domain.c | 27 struct cache_req_domain *dom; local 30 DLIST_FOR_EACH(dom, domains) { 31 if (sss_domain_get_state(dom->domain) == DOM_DISABLED) { 35 if (strcasecmp(dom->domain->name, name) == 0 || 36 (dom->domain->flat_name != NULL && 37 strcasecmp(dom->domain->flat_name, name) == 0)) { 38 ret = dom; 146 struct sss_domain_info *dom; local 159 for (dom = domains; dom; do [all...] |
/sssd-io/src/tests/cmocka/ |
H A D | test_negcache.c | 309 struct sss_domain_info *dom; local 312 dom = talloc(ts, struct sss_domain_info); 313 dom->name = discard_const_p(char, TEST_DOM_NAME); 315 name = sss_create_internal_fqname(ts, NAME, dom->name); 319 dom->case_sensitive = false; 320 ret = sss_ncache_check_user(ts->ctx, dom, name); 323 dom->case_sensitive = true; 324 ret = sss_ncache_check_user(ts->ctx, dom, name); 329 ret = sss_ncache_set_user(ts->ctx, permanent, dom, name); 332 ret = sss_ncache_check_user(ts->ctx, dom, nam 355 struct sss_domain_info *dom; local 401 struct sss_domain_info *dom; local 442 struct sss_domain_info *dom; local 482 struct sss_domain_info *dom; local 541 check_user_in_ncache(struct sss_nc_ctx *ctx, struct sss_domain_info *dom, const char *name) argument 554 check_group_in_ncache(struct sss_nc_ctx *ctx, struct sss_domain_info *dom, const char *name) argument 592 struct sss_domain_info *dom; local 672 struct sss_domain_info *dom; local 734 struct sss_domain_info *dom; local 823 struct sss_domain_info *dom; local 892 struct sss_domain_info *dom; local 933 struct sss_domain_info *dom; local [all...] |
H A D | test_utils.c | 36 #define DOMNAME_TMPL "name_%zu.dom" 62 struct sss_domain_info *dom = NULL; local 70 dom = talloc_zero(test_ctx, struct sss_domain_info); 71 assert_non_null(dom); 73 dom->name = talloc_asprintf(dom, "configured.dom"); 74 assert_non_null(dom->name); 76 dom->realm = talloc_asprintf(dom, "CONFIGURE 152 struct sss_domain_info *dom = NULL; local 202 struct sss_domain_info *dom; local 218 struct sss_domain_info *dom; local 265 struct sss_domain_info *dom; local 336 struct sss_domain_info *dom; local 407 struct sss_domain_info *dom; local 423 struct sss_domain_info *dom; local 455 struct sss_domain_info *dom; local 503 struct sss_domain_info *dom; local 557 struct sss_domain_info *dom = NULL; local 611 struct sss_domain_info *dom = NULL; local 625 struct sss_domain_info *dom = NULL; local 651 struct sss_domain_info *dom = NULL; local 666 struct sss_domain_info *dom = NULL; local 912 const char *dom; local 1024 struct sss_domain_info *dom; local 1785 struct sss_domain_info *dom; local [all...] |
H A D | test_sysdb_subdomains.c | 106 ret = sysdb_update_subdomains(test_ctx->tctx->dom, test_ctx->tctx->confdb); 109 assert_non_null(test_ctx->tctx->dom->subdomains); 110 assert_string_equal(test_ctx->tctx->dom->subdomains->name, dom1[0]); 111 assert_int_equal(test_ctx->tctx->dom->subdomains->trust_direction, 0); 118 ret = sysdb_update_subdomains(test_ctx->tctx->dom, test_ctx->tctx->confdb); 121 assert_non_null(test_ctx->tctx->dom->subdomains->next); 122 assert_string_equal(test_ctx->tctx->dom->subdomains->next->name, dom2[0]); 123 assert_int_equal(test_ctx->tctx->dom->subdomains->next->trust_direction, 1); 136 ret = sysdb_update_subdomains(test_ctx->tctx->dom, test_ctx->tctx->confdb); 139 assert_int_equal(test_ctx->tctx->dom [all...] |
H A D | test_fqnames.c | 47 struct sss_domain_info *dom; local 49 dom = talloc_zero(mem_ctx, struct sss_domain_info); 50 assert_non_null(dom); 53 dom->sysdb = talloc_zero(dom, struct sysdb_ctx); 54 assert_non_null(dom->sysdb); 56 dom->name = discard_const(name); 57 dom->flat_name = discard_const(flatname); 58 dom->parent = parent; 59 dom 67 struct sss_domain_info *dom; member in struct:fqdn_test_ctx 239 struct sss_domain_info *dom; member in struct:parse_name_test_ctx 278 struct sss_domain_info *dom; local [all...] |
H A D | common_mock_be.c | 35 be_ctx->domain = tctx->dom;
|
/sssd-io/src/db/ |
H A D | sysdb_subdomains.c | 44 struct sss_domain_info *dom; local 51 dom = talloc_zero(mem_ctx, struct sss_domain_info); 52 if (dom == NULL) { 57 dom->parent = parent; 60 dom->has_views = parent->has_views; 62 dom->view_name = talloc_strdup(dom, parent->view_name); 63 if (dom->view_name == NULL) { 69 dom->name = talloc_strdup(dom, nam 316 struct sss_domain_info *dom; local 1287 sysdb_get_site(TALLOC_CTX *mem_ctx, struct sss_domain_info *dom, const char **_site) argument 1337 sysdb_set_site(struct sss_domain_info *dom, const char *site) argument [all...] |
/sssd-io/src/responder/ifp/ |
H A D | ifp_domains.c | 86 struct sss_domain_info *dom; local 115 for (dom = ireq->ifp_ctx->rctx->domains; 116 dom != NULL; 117 dom = get_next_domain(dom, SSS_GND_DESCEND)) { 128 for (dom = ireq->ifp_ctx->rctx->domains; 129 dom != NULL; 130 dom = get_next_domain(dom, SSS_GND_DESCEND)) { 131 p = sbus_opath_compose(ireq, IFP_PATH_DOMAINS, dom 295 struct sss_domain_info *dom = NULL; local 415 struct sss_domain_info *dom; local 431 struct sss_domain_info *dom; local 475 struct sss_domain_info *dom; local 491 struct sss_domain_info *dom; local 507 struct sss_domain_info *dom; local 523 struct sss_domain_info *dom; local 545 struct sss_domain_info *dom; local 567 struct sss_domain_info *dom; local 591 struct sss_domain_info *dom; local 615 struct sss_domain_info *dom; local 638 struct sss_domain_info *dom; local [all...] |
/sssd-io/src/lib/winbind_idmap_sss/ |
H A D | winbind_idmap_sss.h | 82 NTSTATUS (*init)(struct idmap_domain *dom); 86 NTSTATUS (*unixids_to_sids)(struct idmap_domain *dom, struct id_map **ids); 90 NTSTATUS (*sids_to_unixids)(struct idmap_domain *dom, struct id_map **ids); 93 NTSTATUS (*allocate_id)(struct idmap_domain *dom, struct unixid *id);
|
H A D | winbind_idmap_sss.c | 37 static NTSTATUS idmap_sss_initialize(struct idmap_domain *dom) argument 42 if (dom == NULL) { 46 ctx = talloc_zero(dom, struct idmap_sss_ctx); 58 dom->private_data = ctx; 63 static NTSTATUS idmap_sss_unixids_to_sids(struct idmap_domain *dom, argument 74 if (dom == NULL) { 78 ctx = talloc_get_type(dom->private_data, struct idmap_sss_ctx); 126 static NTSTATUS idmap_sss_sids_to_unixids(struct idmap_domain *dom, argument 137 if (dom == NULL) { 141 ctx = talloc_get_type(dom [all...] |
/sssd-io/src/providers/data_provider/ |
H A D | dp_resp_client.c | 77 struct sss_domain_info *dom, 86 dom->name); 91 dom->name); 99 sss_domain_set_state(dom, state); 103 DBUS_TYPE_STRING, &dom->name); 115 struct sss_domain_info *dom) 117 return dp_sbus_set_domain_state(provider, dom, DOM_ACTIVE); 121 struct sss_domain_info *dom) 123 return dp_sbus_set_domain_state(provider, dom, DOM_INCONSISTENT); 127 struct sss_domain_info *dom, 76 dp_sbus_set_domain_state(struct data_provider *provider, struct sss_domain_info *dom, enum sss_domain_state state) argument 114 dp_sbus_domain_active(struct data_provider *provider, struct sss_domain_info *dom) argument 120 dp_sbus_domain_inconsistent(struct data_provider *provider, struct sss_domain_info *dom) argument 126 dp_sbus_reset_ncache(struct data_provider *provider, struct sss_domain_info *dom, const char *method) argument 144 dp_sbus_reset_users_ncache(struct data_provider *provider, struct sss_domain_info *dom) argument 151 dp_sbus_reset_groups_ncache(struct data_provider *provider, struct sss_domain_info *dom) argument [all...] |
/sssd-io/src/providers/krb5/ |
H A D | krb5_utils.h | 37 struct sss_domain_info *dom, const char *user, 51 struct sss_domain_info **dom);
|
/sssd-io/src/responder/autofs/ |
H A D | autofssrv_dp.c | 33 struct sss_domain_info *dom; member in struct:sss_dp_get_autofs_info 46 struct sss_domain_info *dom, 62 if (!dom) { 75 info->dom = dom; 77 key = talloc_asprintf(state, "%d:%s@%s", type, name, dom->name); 83 ret = sss_dp_issue_request(state, rctx, key, dom, sss_dp_get_autofs_msg, 127 info->dom->name, dp_flags, info->name); 44 sss_dp_get_autofs_send(TALLOC_CTX *mem_ctx, struct resp_ctx *rctx, struct sss_domain_info *dom, bool fast_reply, enum sss_dp_autofs_type type, const char *name) argument
|
/sssd-io/src/providers/proxy/ |
H A D | proxy_services.c | 109 struct sss_domain_info *dom, 138 ret = sysdb_svc_delete(dom, name, 0, protocol); 142 ret = proxy_save_service(dom, result, 143 !dom->case_sensitive, 144 dom->service_timeout); 154 struct sss_domain_info *dom, 191 ret = sysdb_svc_delete(dom, NULL, port, protocol); 194 ret = proxy_save_service(dom, result, 195 !dom->case_sensitive, 196 dom 108 get_serv_byname(struct proxy_id_ctx *ctx, struct sss_domain_info *dom, const char *name, const char *protocol) argument 153 get_serv_byport(struct proxy_id_ctx *ctx, struct sss_domain_info *dom, const char *be_filter, const char *protocol) argument 205 enum_services(struct proxy_id_ctx *ctx, struct sysdb_ctx *sysdb, struct sss_domain_info *dom) argument [all...] |