Correctly normalise records against OpenLDAP.
authorAndrew Bartlett <abartlet@samba.org>
Thu, 13 Mar 2008 03:12:18 +0000 (14:12 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 13 Mar 2008 03:12:18 +0000 (14:12 +1100)
Fixing this simple typo allows more of the ldap.js test to pass.

Andrew Bartlett
(This used to be commit 7c80cd18d5cd9cbf32dac15a4734f5a3c67cd0e7)

source4/dsdb/samdb/ldb_modules/normalise.c

index a0eff43534d63b1a8a301f5e350f882c4c459b88..8de9e33002bace5f76d8173373f09f12ed3ddc3b 100644 (file)
@@ -117,7 +117,7 @@ static int normalise_search_callback(struct ldb_context *ldb, void *context, str
                                talloc_free(mem_ctx);
                                return LDB_ERR_OPERATIONS_ERROR;
                        }
-                       ret = fix_dn(ares->message->dn);
+                       ret = fix_dn(dn);
                        if (ret != LDB_SUCCESS) {
                                talloc_free(mem_ctx);
                                return ret;