From: Andrew Bartlett Date: Thu, 19 Jun 2008 08:06:35 +0000 (+1000) Subject: Change detection of objectCategory short fomm X-Git-Tag: samba-4.0.0alpha5~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fb5a4e13db3a03da414876efa717c3de44ca77c;p=thirdparty%2Fsamba.git 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 --- diff --git a/source/dsdb/samdb/ldb_modules/simple_ldap_map.c b/source/dsdb/samdb/ldb_modules/simple_ldap_map.c index 91896d7247f..101ca67deee 100644 --- a/source/dsdb/samdb/ldb_modules/simple_ldap_map.c +++ b/source/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); }