1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

secrets: use lpcfg_private_db_path() convenience helper.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Rusty Russell 2013-04-11 17:12:11 +09:30 committed by Jeremy Allison
parent ccfd929d96
commit b45e3f557a

View File

@ -245,9 +245,7 @@ _PUBLIC_ NTSTATUS cli_credentials_set_machine_account(struct cli_credentials *cr
if (!tmp_ctx) {
return NT_STATUS_NO_MEMORY;
}
secrets_tdb = lpcfg_private_path(cred, lp_ctx,
lpcfg_use_ntdb(lp_ctx) ?
"secrets.ntdb" : "secrets.tdb");
secrets_tdb = lpcfg_private_db_path(cred, lp_ctx, "secrets");
if (!secrets_tdb) {
TALLOC_FREE(tmp_ctx);
return NT_STATUS_NO_MEMORY;