From b45e3f557a00ba78f0d10b2253c99d5710de25c8 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 11 Apr 2013 17:12:11 +0930 Subject: secrets: use lpcfg_private_db_path() convenience helper. Signed-off-by: Rusty Russell Reviewed-by: Jeremy Allison --- auth/credentials/credentials_secrets.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'auth/credentials/credentials_secrets.c') diff --git a/auth/credentials/credentials_secrets.c b/auth/credentials/credentials_secrets.c index 730f047672..27ee607228 100644 --- a/auth/credentials/credentials_secrets.c +++ b/auth/credentials/credentials_secrets.c @@ -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; -- cgit