Lines Matching defs:dn
41 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)
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";
92 ret = do_test_search_bases(dn, dns, 2);
98 const char *dn = "cn=user, dc=sub, dc=ad, dc=pb";
102 ret = do_test_search_bases(dn, dns, 3);
106 static void do_test_get_by_dn(const char *dn, const char **dns, size_t n,
136 res_sdom = sdap_domain_get_by_dn(opts, dn);
155 const char *dn = "cn=user, dc=sub, dc=ad, dc=pb";
159 do_test_get_by_dn(dn, dns, 1, dns2, 1, DN_IN_DOM2);
164 const char *dn = "cn=user, dc=ad, dc=com";
168 do_test_get_by_dn(dn, dns, 1, dns2, 1, DN_IN_DOM1);
173 const char *dn = "cn=user, dc=sub, dc=example, dc=com";
177 do_test_get_by_dn(dn, dns, 1, dns2, 1, DN_NOT_IN_DOMS);