summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-02-09 15:04:03 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-02-09 15:04:03 +0100
commitd1b40b4ee52132fade72a219d0776c326a53efaf (patch)
treec15e5af38a45445cb538c1bb7f0b10e077e4123b /source4/dsdb
parentbe2be0779e118534b234971f668bc05f833ba8a7 (diff)
parent655ec1aa063a103f8fc2da6396c58faa09afc38a (diff)
downloadsamba-d1b40b4ee52132fade72a219d0776c326a53efaf.tar.gz
samba-d1b40b4ee52132fade72a219d0776c326a53efaf.tar.bz2
samba-d1b40b4ee52132fade72a219d0776c326a53efaf.zip
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial
(This used to be commit f7521525e42d62e96cc6f55fb1b23644a60fc36d)
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/samdb/samdb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/samdb.c b/source4/dsdb/samdb/samdb.c
index c11eea1757..a01e442587 100644
--- a/source4/dsdb/samdb/samdb.c
+++ b/source4/dsdb/samdb/samdb.c
@@ -103,8 +103,8 @@ int samdb_copy_template(struct ldb_context *ldb,
if (!templates_ldb) {
templates_ldb_path = samdb_relative_path(ldb,
- msg,
- "templates.ldb");
+ msg,
+ "templates.ldb");
if (!templates_ldb_path) {
*errstring = talloc_asprintf(msg, "samdb_copy_template: ERROR: Failed to contruct path for template db");
return LDB_ERR_OPERATIONS_ERROR;
@@ -115,6 +115,8 @@ int samdb_copy_template(struct ldb_context *ldb,
NULL, 0, NULL);
talloc_free(templates_ldb_path);
if (!templates_ldb) {
+ *errstring = talloc_asprintf(msg, "samdb_copy_template: ERROR: Failed to connect to templates db at: %s",
+ templates_ldb_path);
return LDB_ERR_OPERATIONS_ERROR;
}