From b388f932ba14078697878567956c2f16ad8abc68 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 19 Jun 2008 18:06:35 +1000 Subject: [PATCH] Change detection of objectCategory short fomm To actually validate the DN, we load and call the validation fucntion, not just check the 'ldb_dn_is_valid()' function. Andrew Bartlett (This used to be commit 5fb5a4e13db3a03da414876efa717c3de44ca77c) --- source4/dsdb/samdb/ldb_modules/simple_ldap_map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/dsdb/samdb/ldb_modules/simple_ldap_map.c b/source4/dsdb/samdb/ldb_modules/simple_ldap_map.c index 91896d7247f..101ca67deee 100644 --- a/source4/dsdb/samdb/ldb_modules/simple_ldap_map.c +++ b/source4/dsdb/samdb/ldb_modules/simple_ldap_map.c @@ -158,7 +158,7 @@ static struct ldb_val objectCategory_always_dn(struct ldb_module *module, TALLOC const struct ldb_schema_attribute *a = ldb_schema_attribute_by_name(module->ldb, "objectCategory"); dn = ldb_dn_new(ctx, module->ldb, val->data); - if (dn && ldb_dn_is_valid(dn)) { + if (dn && ldb_dn_validate(dn)) { talloc_free(dn); return val_copy(module, ctx, val); } -- 2.34.1