summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-04-12 13:40:44 +0200
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-04-12 18:49:00 +0200
commit978a2d26b4fa38873ed822b8642737e3352e5f21 (patch)
tree39fcf04448fa79cc1954545fef502d29b52ac947
parent9db207da071002b4eb671ba8500f1c26963e3859 (diff)
downloadsamba-978a2d26b4fa38873ed822b8642737e3352e5f21.tar.gz
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"!
-rw-r--r--source4/torture/ldap/ldap_sort.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/ldap/ldap_sort.c b/source4/torture/ldap/ldap_sort.c
index 4c8145cc835..aab590fd3d0 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 <ctype.h>
+
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,