r24479: Typo fix - this makes 'make test' pass against OpenLDAP again.
authorAndrew Bartlett <abartlet@samba.org>
Thu, 16 Aug 2007 01:58:56 +0000 (01:58 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 20:01:56 +0000 (15:01 -0500)
The objectCategory canonicalise_fn makes everything a DN, which is
exactly what we need here.

Andrew Bartlett
(This used to be commit f5ec369741661fdf7ef5f5183c0e1a996bd46d41)

source4/dsdb/samdb/ldb_modules/entryUUID.c

index 6114e0f602afb62451458fc808d324cd3c47217c..f5de138b52d35eaeaa683f6df69330e890bc1adf 100644 (file)
@@ -151,7 +151,7 @@ static struct ldb_val sid_always_binary(struct ldb_module *module, TALLOC_CTX *c
 static struct ldb_val objectCategory_always_dn(struct ldb_module *module, TALLOC_CTX *ctx, const struct ldb_val *val)
 {
        struct ldb_val out = data_blob(NULL, 0);
-       const struct ldb_schema_attribute *a = ldb_schema_attribute_by_name(module->ldb, "objectSid");
+       const struct ldb_schema_attribute *a = ldb_schema_attribute_by_name(module->ldb, "objectCategory");
 
        if (a->syntax->canonicalise_fn(module->ldb, ctx, val, &out) != LDB_SUCCESS) {
                return data_blob(NULL, 0);