From 978a2d26b4fa38873ed822b8642737e3352e5f21 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Mon, 12 Apr 2010 13:40:44 +0200 Subject: s4:torture/ldap/ldap_sort.c - There should be used the "base_dn" not the "root_dn" for the sort test The (forest) "root_dn" hasn't always to be the same as the (domain) "base_dn"! --- source4/torture/ldap/ldap_sort.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/torture/ldap') diff --git a/source4/torture/ldap/ldap_sort.c b/source4/torture/ldap/ldap_sort.c index 4c8145cc83..aab590fd3d 100644 --- a/source4/torture/ldap/ldap_sort.c +++ b/source4/torture/ldap/ldap_sort.c @@ -30,9 +30,9 @@ #include "torture/smbtorture.h" #include "torture/local/proto.h" #include + bool torture_ldap_sort(struct torture_context *torture) { - struct ldb_context *ldb; bool ret = false; @@ -74,7 +74,7 @@ bool torture_ldap_sort(struct torture_context *torture) control[0]->reverse = 0; control[1] = NULL; - dn = ldb_get_root_basedn(ldb); + dn = ldb_get_default_basedn(ldb); ldb_dn_add_child_fmt(dn, "cn=users"); ret = ldb_build_search_req(&req, ldb, ctx, dn, -- cgit