diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2010-04-12 13:40:44 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2010-04-12 18:49:00 +0200 |
commit | 978a2d26b4fa38873ed822b8642737e3352e5f21 (patch) | |
tree | 39fcf04448fa79cc1954545fef502d29b52ac947 /source4 | |
parent | 9db207da071002b4eb671ba8500f1c26963e3859 (diff) | |
download | samba-978a2d26b4fa38873ed822b8642737e3352e5f21.tar.gz samba-978a2d26b4fa38873ed822b8642737e3352e5f21.tar.bz2 samba-978a2d26b4fa38873ed822b8642737e3352e5f21.zip |
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"!
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/ldap/ldap_sort.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <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, |