From 4bad696f9ef3bdc3a1a9dc6b98a58d7071b994d7 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 26 Feb 2010 16:48:09 +0100 Subject: s4:dsdb/schema: fix validation of DNs ldb_dn_extended_filter() removes all but the listed components, I didn't noticed that when writting the code. Doing a ldb_dn_remove_extended_components(dn2) is wrong. This was hidden by some bugs in the ldb_dn code. metze --- source4/dsdb/schema/schema_syntax.c | 1 - 1 file changed, 1 deletion(-) (limited to 'source4') diff --git a/source4/dsdb/schema/schema_syntax.c b/source4/dsdb/schema/schema_syntax.c index 877200bb08..bdd22f834b 100644 --- a/source4/dsdb/schema/schema_syntax.c +++ b/source4/dsdb/schema/schema_syntax.c @@ -1742,7 +1742,6 @@ static WERROR dsdb_syntax_DN_validate_one_val(struct ldb_context *ldb, * one. */ ldb_dn_extended_filter(dn, extended_list); - ldb_dn_remove_extended_components(dn2); dn_str = ldb_dn_get_extended_linearized(tmp_ctx, dn, 0); if (dn_str == NULL) { -- cgit