Searched defs:dn (Results 1 - 25 of 54) sorted by relevance

123

/sssd-io/src/providers/ldap/
H A Dsdap_async_private.h30 const char *dn; member in struct:dn_item
H A Dsdap_domain.c49 const char *dn)
63 if (sss_ldap_dn_in_search_bases_len(tmp_ctx, dn, sditer->search_bases,
65 || sss_ldap_dn_in_search_bases_len(tmp_ctx, dn,
67 || sss_ldap_dn_in_search_bases_len(tmp_ctx, dn,
69 || sss_ldap_dn_in_search_bases_len(tmp_ctx, dn,
71 || sss_ldap_dn_in_search_bases_len(tmp_ctx, dn,
73 || sss_ldap_dn_in_search_bases_len(tmp_ctx, dn,
75 || sss_ldap_dn_in_search_bases_len(tmp_ctx, dn,
48 sdap_domain_get_by_dn(struct sdap_options *opts, const char *dn) argument
H A Dldap_id_cleanup.c250 ldb_dn_get_linearized(msgs[i]->dn));
345 ldb_dn_get_linearized(msg->dn));
373 const char *dn; local
417 dn = ldb_dn_get_linearized(msgs[i]->dn);
418 if (!dn) {
424 /* sanitize dn */
425 ret = sss_filter_sanitize(tmpctx, dn, &sanitized_dn);
458 DEBUG(SSSDBG_OP_FAILURE, "Failed to build base dn\n");
474 ldb_dn_get_linearized(msgs[i]->dn));
[all...]
H A Dsdap_async_netgroups.c33 LDAPDN dn; local
35 ret = ldap_str2dn(str, &dn, LDAP_DN_FORMAT_LDAPV3);
36 ldap_dnfree(dn);
177 const char *dn; local
189 dn = ldb_msg_find_attr_as_string(res[c], SYSDB_ORIG_DN, NULL);
190 if (dn == NULL) {
194 if (strcmp(dn, dn_item->dn) == 0) {
196 "Found matching entry for [%s].\n", dn_item->dn);
292 dn_item->dn
[all...]
/sssd-io/src/providers/ipa/
H A Dipa_subdomains_utils.c35 struct ldb_dn *dn = NULL; local
47 dn = ldb_dn_new(mem_ctx, ldb_ctx, orig_dn);
48 if (dn == NULL) {
53 if (!ldb_dn_validate(dn)) {
56 talloc_free(dn);
60 return dn;
63 bool ipa_subdom_is_member_dom(struct ldb_dn *dn) argument
67 if (dn == NULL) {
72 if (ldb_dn_get_comp_num(dn) < 5) {
85 val = ldb_dn_get_component_val(dn,
[all...]
H A Dipa_dn.c26 static bool check_dn(struct ldb_dn *dn, argument
40 ldbattr = ldb_dn_get_rdn_name(dn);
50 num_comp = ldb_dn_get_comp_num(dn);
63 ldbattr = ldb_dn_get_component_name(dn, comp);
68 ldbval = ldb_dn_get_component_val(dn, comp);
82 ldbattr = ldb_dn_get_component_name(dn, comp);
102 struct ldb_dn *dn; local
108 dn = ldb_dn_new(mem_ctx, sysdb_ctx_get_ldb(sysdb), obj_dn);
109 if (dn == NULL) {
114 bret = check_dn(dn, rdn_att
[all...]
H A Dipa_hbac_users.c42 struct ldb_dn *dn; local
59 dn = ldb_dn_new(mem_ctx, sysdb_ctx_get_ldb(sysdb), group_dn);
60 if (dn == NULL) {
65 if (!ldb_dn_validate(dn)) {
71 if (ldb_dn_get_comp_num(dn) < 4) {
80 rdn_name = ldb_dn_get_rdn_name(dn);
101 group_comp_name = ldb_dn_get_component_name(dn, 1);
110 group_comp_val = ldb_dn_get_component_val(dn, 1);
123 account_comp_name = ldb_dn_get_component_name(dn, 2);
132 account_comp_val = ldb_dn_get_component_val(dn,
[all...]
H A Dipa_auth.c327 const char *dn; local
354 dn = ldb_msg_find_attr_as_string(msg, SYSDB_ORIG_DN, NULL);
355 if (dn == NULL) {
364 subreq = sdap_auth_send(state, state->ev, sh, NULL, NULL, dn,
H A Dipa_hbac_services.c586 struct ldb_dn *dn; local
601 dn = ldb_dn_new(mem_ctx, sysdb_ctx_get_ldb(sysdb), service_dn);
602 if (dn == NULL) {
607 if (!ldb_dn_validate(dn)) {
612 if (ldb_dn_get_comp_num(dn) < 4) {
620 rdn_name = ldb_dn_get_rdn_name(dn);
638 svc_comp_name = ldb_dn_get_component_name(dn, 1);
645 svc_comp_val = ldb_dn_get_component_val(dn, 1);
655 hbac_comp_name = ldb_dn_get_component_name(dn, 2);
662 hbac_comp_val = ldb_dn_get_component_val(dn,
[all...]
H A Dipa_rules_common.c355 struct ldb_dn *dn; local
370 dn = ldb_dn_new(mem_ctx, sysdb_ctx_get_ldb(sysdb), host_dn);
371 if (dn == NULL) {
376 if (!ldb_dn_validate(dn)) {
381 if (ldb_dn_get_comp_num(dn) < 4) {
389 rdn_name = ldb_dn_get_rdn_name(dn);
407 hostgroup_comp_name = ldb_dn_get_component_name(dn, 1);
414 hostgroup_comp_val = ldb_dn_get_component_val(dn, 1);
424 account_comp_name = ldb_dn_get_component_name(dn, 2);
431 account_comp_val = ldb_dn_get_component_val(dn,
[all...]
/sssd-io/src/db/
H A Dsysdb_domain_resolution_order.c29 struct ldb_dn *dn,
43 ret = ldb_search(sysdb->ldb, tmp_ctx, &res, dn, LDB_SCOPE_BASE, attrs,
79 struct ldb_dn *dn,
93 tmp_ctx, sysdb, dn, attrs, &domain_resolution_order);
118 struct ldb_dn *dn,
136 msg->dn = dn;
27 sysdb_get_domain_resolution_order_string_attr(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, struct ldb_dn *dn, const char *const *attrs, const char **_attr) argument
77 sysdb_get_domain_resolution_order(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, struct ldb_dn *dn, const char **_domain_resolution_order) argument
117 sysdb_update_domain_resolution_order(struct sysdb_ctx *sysdb, struct ldb_dn *dn, const char *domain_resolution_order) argument
H A Dsysdb_idmap.c33 struct ldb_dn *dn; local
42 dn = ldb_dn_new_fmt(mem_ctx, domain->sysdb->ldb, SYSDB_TMPL_IDMAP,
46 return dn;
59 struct ldb_dn *dn; local
70 dn = sysdb_idmap_dn(tmp_ctx, domain, dom_sid);
71 if (!dn) {
81 update_msg->dn = dn;
93 ret = sysdb_search_entry(tmp_ctx, domain->sysdb, dn, LDB_SCOPE_BASE,
H A Dsysdb_gpo.c33 struct ldb_dn *dn; local
42 dn = ldb_dn_new_fmt(mem_ctx, domain->sysdb->ldb, SYSDB_TMPL_GPO,
46 return dn;
74 update_msg->dn = sysdb_gpo_dn(update_msg, domain, gpo_guid);
75 if (!update_msg->dn) {
93 ret = sysdb_search_entry(tmp_ctx, domain->sysdb, update_msg->dn,
365 struct ldb_dn *dn; local
375 dn = ldb_dn_new_fmt(mem_ctx, domain->sysdb->ldb, SYSDB_TMPL_GPO_RESULT,
379 return dn;
404 update_msg->dn
[all...]
H A Dsysdb_ranges.c96 ldb_dn_get_linearized(res->msgs[c]->dn));
194 msg->dn = ldb_dn_new_fmt(tmp_ctx, sysdb->ldb,
196 if (!msg->dn) {
265 struct ldb_dn *dn; local
328 dn = ldb_dn_new_fmt(tmp_ctx, sysdb->ldb,
330 if (dn == NULL) {
335 ret = sysdb_delete_entry(sysdb, dn, true);
H A Dsysdb_selinux.c34 struct ldb_dn *dn,
68 msg->dn = dn;
92 struct ldb_dn *dn = NULL; local
116 dn = ldb_dn_new_fmt(tmp_ctx, sysdb->ldb, SYSDB_TMPL_SEUSERMAP,
121 dn = ldb_dn_new_fmt(tmp_ctx, sysdb->ldb, SYSDB_TMPL_SELINUX_BASE,
132 if (!dn) {
149 ret = sysdb_add_selinux_entity(sysdb, dn, objectclass, attrs, now);
154 ret = sysdb_set_entry_attr(sysdb, dn, attrs, SYSDB_MOD_REP);
226 struct ldb_dn *dn local
33 sysdb_add_selinux_entity(struct sysdb_ctx *sysdb, struct ldb_dn *dn, const char *objectclass, struct sysdb_attrs *attrs, time_t now) argument
[all...]
H A Dsysdb_ssh.c202 struct ldb_dn *dn; local
210 dn = sysdb_ssh_host_dn(tmp_ctx, domain, name);
211 if (!dn) {
216 ret = sysdb_set_entry_attr(domain->sysdb, dn, attrs, mod_op);
H A Dsysdb_autofs.c49 struct ldb_dn *dn = NULL; local
71 dn = ldb_dn_new_fmt(mem_ctx, domain->sysdb->ldb, SYSDB_TMPL_AUTOFS_ENTRY,
76 return dn;
86 struct ldb_dn *dn; local
89 dn = sysdb_autofsentry_dn(mem_ctx, domain,
91 if (!dn) return NULL;
93 strdn = talloc_strdup(mem_ctx, ldb_dn_get_linearized(dn));
94 talloc_free(dn);
256 struct ldb_dn *dn; local
310 dn
337 struct ldb_dn *dn; local
416 struct ldb_dn *dn; local
[all...]
H A Dsysdb_services.c31 struct ldb_dn *dn,
38 struct ldb_dn *dn,
217 res->msgs[i]->dn));
219 ret = sysdb_delete_entry(sysdb, res->msgs[i]->dn, true);
224 res->msgs[i]->dn));
251 res->msgs[0]->dn));
253 ret = sysdb_delete_entry(sysdb, res->msgs[0]->dn, true);
258 res->msgs[0]->dn));
289 res->msgs[i]->dn));
291 ret = sysdb_delete_entry(sysdb, res->msgs[i]->dn, tru
417 struct ldb_dn *dn; local
432 sysdb_svc_add(TALLOC_CTX *mem_ctx, struct sss_domain_info *domain, const char *primary_name, int port, const char **aliases, const char **protocols, struct ldb_dn **dn) argument
528 sysdb_svc_update(struct sysdb_ctx *sysdb, struct ldb_dn *dn, int port, const char **aliases, const char **protocols) argument
605 sysdb_svc_remove_alias(struct sysdb_ctx *sysdb, struct ldb_dn *dn, const char *alias) argument
762 struct ldb_dn *dn; local
[all...]
/sssd-io/src/tests/cmocka/
H A Dtest_ipa_subdomains_utils.c71 static struct sysdb_attrs *dn_attrs(TALLOC_CTX *mem_ctx, const char *dn) argument
79 rv = sysdb_attrs_add_string(attrs, SYSDB_ORIG_DN, dn);
87 struct ldb_dn *dn; local
97 dn = ipa_subdom_ldb_dn(test_ctx, test_ctx->ldb, attrs);
98 assert_non_null(dn);
99 assert_string_equal(ldb_dn_get_linearized(dn), "dc=foo,dc=bar");
101 talloc_free(dn);
107 struct ldb_dn *dn; local
117 dn = ipa_subdom_ldb_dn(test_ctx, NULL, NULL);
118 assert_null(dn);
135 struct ldb_dn *dn; local
150 struct ldb_dn *dn; local
[all...]
H A Dtest_sysdb_domain_resolution_order.c86 struct ldb_dn *dn; local
88 dn = sysdb_domain_dn(test_ctx, test_ctx->tctx->dom);
89 assert_non_null(dn);
94 dn, domains_in);
98 test_ctx->tctx->dom->sysdb, dn,
110 dn, domains_in);
114 test_ctx->tctx->dom->sysdb, dn,
122 dn, domains_in);
126 test_ctx->tctx->dom->sysdb, dn,
134 dn, domains_i
[all...]
H A Dtest_search_bases.c41 DN_NOT_IN_DOMS, /* dn is not in any domain */
42 DN_IN_DOM1, /* dn is in the domain based on dns */
43 DN_IN_DOM2, /* dn is in the domain based on dns2 */
68 static bool do_test_search_bases(const char* dn, const char** dns, size_t n) argument
79 ret = sss_ldap_dn_in_search_bases(tmp_ctx, dn, search_bases, NULL);
88 const char *dn = "cn=user, dc=sub, dc=ad, dc=pb"; local
92 ret = do_test_search_bases(dn, dns, 2);
98 const char *dn = "cn=user, dc=sub, dc=ad, dc=pb"; local
102 ret = do_test_search_bases(dn, dns, 3);
106 static void do_test_get_by_dn(const char *dn, cons argument
155 const char *dn = "cn=user, dc=sub, dc=ad, dc=pb"; local
164 const char *dn = "cn=user, dc=ad, dc=com"; local
173 const char *dn = "cn=user, dc=sub, dc=example, dc=com"; local
[all...]
/sssd-io/src/confdb/
H A Dconfdb_setup.c33 "dn: cn=config\n" \
35 "dn: cn=sssd,cn=config\n" \
88 struct ldb_dn *dn; local
89 const char *attrs[] = { "dn", NULL };
93 dn = ldb_dn_new(tmp_ctx, cdb->ldb, "cn=config");
96 ret = ldb_search(cdb->ldb, tmp_ctx, &res, dn,
105 ret = ldb_delete(cdb->ldb, res->msgs[i]->dn);
/sssd-io/src/responder/ifp/
H A Difp_cache.c113 DEBUG(SSSDBG_CRIT_FAILURE, "Unable to create base dn\n");
279 struct ldb_dn *dn,
297 ret = sysdb_set_entry_attr(domain->sysdb, dn, attrs, SYSDB_MOD_REP);
314 struct ldb_dn *dn)
318 ret = ifp_cache_object_set(domain, dn, true);
331 struct ldb_dn *dn)
335 ret = ifp_cache_object_set(domain, dn, false);
278 ifp_cache_object_set(struct sss_domain_info *domain, struct ldb_dn *dn, bool value) argument
312 ifp_cache_object_store(struct sbus_request *sbus_req, struct sss_domain_info *domain, struct ldb_dn *dn) argument
329 ifp_cache_object_remove(struct sbus_request *sbus_req, struct sss_domain_info *domain, struct ldb_dn *dn) argument
/sssd-io/src/util/
H A Dsss_selinux.c59 struct ldb_message_element *dn; local
87 ret = sysdb_attrs_get_el(user, SYSDB_ORIG_DN, &dn);
119 matched_name = match_entity(users_el, dn);
136 ret = sysdb_attrs_get_el(host, SYSDB_ORIG_DN, &dn);
167 matched_name = match_entity(hosts_el, dn);
/sssd-io/src/tools/sssctl/
H A Dsssctl_access_report.c40 struct ldb_dn *dn = NULL; local
49 dn = ldb_dn_new(tmp_ctx, sysdb_ctx_get_ldb(dom->sysdb), dn_attr);
50 if (dn == NULL) {
55 rdn_val = ldb_dn_get_rdn_val(dn);
87 struct ldb_dn *dn = NULL; local
94 dn = ldb_dn_new(tmp_ctx, sysdb_ctx_get_ldb(dom->sysdb), dn_attr);
95 if (dn == NULL) {
100 comp_name = ldb_dn_get_component_name(dn, 1);
101 comp_val = ldb_dn_get_component_val(dn, 1);

Completed in 28 milliseconds

123