Change detection of objectCategory short fomm
authorAndrew Bartlett <abartlet@samba.org>
Thu, 19 Jun 2008 08:06:35 +0000 (18:06 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 19 Jun 2008 08:06:35 +0000 (18:06 +1000)
To actually validate the DN, we load and call the validation fucntion,
not just check the 'ldb_dn_is_valid()' function.

Andrew Bartlett

source/dsdb/samdb/ldb_modules/simple_ldap_map.c

index 91896d7247f53e549a0427dae803de3b4c156272..101ca67deeee9f9bd9c8b9d13738ba5f3dee9265 100644 (file)
@@ -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);
        }