1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

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
This commit is contained in:
Stefan Metzmacher 2010-02-26 16:48:09 +01:00
parent 2caa2a045d
commit 4bad696f9e

View File

@ -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) {