summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-09-12 15:34:29 +0200
committerMichael Adam <obnox@samba.org>2012-11-16 10:45:25 +0100
commit945bc84818039b79f4d9b7982e24c1e0e7dd8a45 (patch)
tree334d60acf44eabcfece6a22718cbe85df174b431 /source4/dsdb/samdb
parentd7cab973fc3213ff777bff519eb001ae7d1c1bdc (diff)
downloadsamba-945bc84818039b79f4d9b7982e24c1e0e7dd8a45.tar.gz
samba-945bc84818039b79f4d9b7982e24c1e0e7dd8a45.tar.bz2
samba-945bc84818039b79f4d9b7982e24c1e0e7dd8a45.zip
dsdb: Make secrets_tdb_sync cope with -H secrets.ldb
The issue was, without a / in the path, we did not cope. Andrew Bartlett Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/secrets_tdb_sync.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/secrets_tdb_sync.c b/source4/dsdb/samdb/ldb_modules/secrets_tdb_sync.c
index c742d86848..e90fc77068 100644
--- a/source4/dsdb/samdb/ldb_modules/secrets_tdb_sync.c
+++ b/source4/dsdb/samdb/ldb_modules/secrets_tdb_sync.c
@@ -498,11 +498,12 @@ static int secrets_tdb_sync_init(struct ldb_module *module)
p = strrchr(private_dir, '/');
if (p) {
*p = '\0';
+ secrets_init_path(private_dir);
} else {
- return ldb_operr(ldb);
+ secrets_init_path(".");
}
- secrets_init_path(private_dir);
+ TALLOC_FREE(private_dir);
data->secrets_tdb = secrets_db_ctx();