diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-02-09 14:02:14 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-02-09 14:02:14 +1100 |
commit | 19fcdb2e8ad2be30903d694eb2b76a08db54a205 (patch) | |
tree | 76b3ed1fd8eebcdded2a0ad3d9b052ed74828fe9 /source4/dsdb/samdb | |
parent | 6e965b139d89cfebbb1c3fcf3a885f4b83f5788f (diff) | |
download | samba-19fcdb2e8ad2be30903d694eb2b76a08db54a205.tar.gz samba-19fcdb2e8ad2be30903d694eb2b76a08db54a205.tar.bz2 samba-19fcdb2e8ad2be30903d694eb2b76a08db54a205.zip |
Give a more useful error when the templates.ldb can't be found.
Andrew Bartlett
(This used to be commit 26108eb66b4b5d4b339dfc845e8a018190068e81)
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r-- | source4/dsdb/samdb/samdb.c | 6 |
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; } |