summaryrefslogtreecommitdiff
path: root/auth/credentials
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2013-04-11 17:12:11 +0930
committerJeremy Allison <jra@samba.org>2013-04-12 14:59:27 -0700
commitb45e3f557a00ba78f0d10b2253c99d5710de25c8 (patch)
tree4061923c3a7b258d1eba1650daf0c0b1af801d7b /auth/credentials
parentccfd929d964ae111cfac33acaf6c3bcc039724c1 (diff)
downloadsamba-b45e3f557a00ba78f0d10b2253c99d5710de25c8.tar.gz
samba-b45e3f557a00ba78f0d10b2253c99d5710de25c8.tar.bz2
samba-b45e3f557a00ba78f0d10b2253c99d5710de25c8.zip
secrets: use lpcfg_private_db_path() convenience helper.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'auth/credentials')
-rw-r--r--auth/credentials/credentials_secrets.c4
1 files changed, 1 insertions, 3 deletions
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;