summaryrefslogtreecommitdiff
path: root/source4/torture/drs
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-04-13 08:41:10 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-04-13 08:55:15 +0200
commitad9e4073574125b01b3992081be9b2a4d6852cbf (patch)
tree4bde84e3f1962d64200366a1ddb3d7bcef6e42c8 /source4/torture/drs
parent8e4c34880a11b2b8a7b5fbb228c26301865a4b4d (diff)
downloadsamba-ad9e4073574125b01b3992081be9b2a4d6852cbf.tar.gz
samba-ad9e4073574125b01b3992081be9b2a4d6852cbf.tar.bz2
samba-ad9e4073574125b01b3992081be9b2a4d6852cbf.zip
Revert "s4:prefer "samdb_*_dn" basedn calls over the "ldb_get_*_dn" functions"
We should use the "ldb_get_*_basedn" calls since they are available in the LDB library.
Diffstat (limited to 'source4/torture/drs')
-rw-r--r--source4/torture/drs/unit/prefixmap_tests.c2
-rw-r--r--source4/torture/drs/unit/schemainfo_tests.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/drs/unit/prefixmap_tests.c b/source4/torture/drs/unit/prefixmap_tests.c
index decd68057c..4282e26a6c 100644
--- a/source4/torture/drs/unit/prefixmap_tests.c
+++ b/source4/torture/drs/unit/prefixmap_tests.c
@@ -695,7 +695,7 @@ static bool torture_drs_unit_ldb_setup(struct torture_context *tctx, struct drsu
/* add prefixMap attribute so tested layer could work properly */
{
struct ldb_message *msg = ldb_msg_new(mem_ctx);
- msg->dn = samdb_schema_dn(priv->ldb_ctx);
+ msg->dn = ldb_get_schema_basedn(priv->ldb_ctx);
ldb_err = ldb_msg_add_string(msg, "prefixMap", "prefixMap");
torture_assert_int_equal_goto(tctx, ldb_err, LDB_SUCCESS, bret, DONE,
"ldb_msg_add_empty() failed");
diff --git a/source4/torture/drs/unit/schemainfo_tests.c b/source4/torture/drs/unit/schemainfo_tests.c
index 7928855fb3..c3bb56fd97 100644
--- a/source4/torture/drs/unit/schemainfo_tests.c
+++ b/source4/torture/drs/unit/schemainfo_tests.c
@@ -383,7 +383,7 @@ static bool _drsut_ldb_schema_info_reset(struct torture_context *tctx,
msg = ldb_msg_new(mem_ctx);
torture_assert_goto(tctx, msg, bret, DONE, "Not enough memory!");
- msg->dn = samdb_schema_dn(ldb);
+ msg->dn = ldb_get_schema_basedn(ldb);
ldb_err = ldb_msg_add_value(msg, "schemaInfo", &blob, NULL);
torture_assert_int_equal_goto(tctx, ldb_err, LDB_SUCCESS, bret, DONE,
"ldb_msg_add_value() failed");