1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-02 08:58:33 +03:00

samdb: Ignore ntdb in secrets_tdb_sync

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
Volker Lendecke 2015-03-13 14:34:36 +00:00 committed by Michael Adam
parent 908b1f9634
commit 9943691093

View File

@ -475,8 +475,7 @@ static int secrets_tdb_sync_init(struct ldb_module *module)
struct ldb_context *ldb;
struct secrets_tdb_sync_private *data;
char *private_dir, *p;
const char *secrets_ldb, *secrets_ntdb;
bool use_ntdb;
const char *secrets_ldb;
ldb = ldb_module_get_ctx(module);
@ -504,12 +503,7 @@ static int secrets_tdb_sync_init(struct ldb_module *module)
private_dir = talloc_strdup(data, ".");
}
/* If there's an ntdb file, force code to load that. */
secrets_ntdb = talloc_asprintf(private_dir, "%s/secrets.ntdb",
private_dir);
use_ntdb = file_exist(secrets_ntdb);
secrets_init_path(private_dir, use_ntdb);
secrets_init_path(private_dir, false);
TALLOC_FREE(private_dir);