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:
parent
ccfd929d96
commit
b45e3f557a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user