Lines Matching defs:dn
71 static struct sysdb_attrs *dn_attrs(TALLOC_CTX *mem_ctx, const char *dn)
79 rv = sysdb_attrs_add_string(attrs, SYSDB_ORIG_DN, dn);
87 struct ldb_dn *dn;
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;
117 dn = ipa_subdom_ldb_dn(test_ctx, NULL, NULL);
118 assert_null(dn);
120 dn = ipa_subdom_ldb_dn(test_ctx, test_ctx->ldb, attrs);
121 assert_null(dn);
126 dn = ipa_subdom_ldb_dn(test_ctx, test_ctx->ldb, attrs);
127 assert_null(dn);
135 struct ldb_dn *dn;
141 dn = ipa_subdom_ldb_dn(mem_ctx, ldb, attrs);
143 assert_non_null(dn);
145 return dn;
150 struct ldb_dn *dn;
156 dn = get_dn(test_ctx, test_ctx->ldb,
158 is_member = ipa_subdom_is_member_dom(dn);
159 talloc_free(dn);
162 dn = get_dn(test_ctx, test_ctx->ldb,
164 is_member = ipa_subdom_is_member_dom(dn);
165 talloc_free(dn);
168 dn = get_dn(test_ctx, test_ctx->ldb,
170 is_member = ipa_subdom_is_member_dom(dn);
171 talloc_free(dn);
174 dn = get_dn(test_ctx, test_ctx->ldb,
176 is_member = ipa_subdom_is_member_dom(dn);
177 talloc_free(dn);