Lines Matching defs:dn1
589 int ldb_dn_cmp(struct ldb_context *ldb, const char *dn0, const char *dn1)
595 if (dn0 == NULL || dn1 == NULL) return dn1 - dn0;
600 edn1 = ldb_dn_explode_casefold(ldb, ldb, dn1);
863 struct ldb_dn *ldb_dn_compose(void *mem_ctx, const struct ldb_dn *dn1, const struct ldb_dn *dn2)
868 if (dn2 == NULL && dn1 == NULL) {
876 newdn->comp_num = dn1->comp_num;
881 if (dn1 != NULL) comp_num += dn1->comp_num;
886 if (dn1 == NULL) {
890 for (i = 0; i < dn1->comp_num; i++) {
892 &(dn1->components[i]));
907 struct ldb_dn *dn, *dn1;
919 dn1 = ldb_dn_explode(mem_ctx, child_str);
920 dn = ldb_dn_compose(mem_ctx, dn1, base);
923 talloc_free(dn1);