diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-06-19 18:06:35 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-06-19 18:06:35 +1000 |
commit | b388f932ba14078697878567956c2f16ad8abc68 (patch) | |
tree | 921a2d353b007dc5bb596a4bf4661ded15ba952c /source4/dsdb/samdb | |
parent | 00bde569b79f76ebfc203fe340668de135761dc0 (diff) | |
download | samba-b388f932ba14078697878567956c2f16ad8abc68.tar.gz samba-b388f932ba14078697878567956c2f16ad8abc68.tar.bz2 samba-b388f932ba14078697878567956c2f16ad8abc68.zip |
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)
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/simple_ldap_map.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/simple_ldap_map.c b/source4/dsdb/samdb/ldb_modules/simple_ldap_map.c index 91896d7247..101ca67dee 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); } |