secrets: use lpcfg_private_db_path() convenience helper.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 11 Apr 2013 07:42:11 +0000 (17:12 +0930)
committerJeremy Allison <jra@samba.org>
Fri, 12 Apr 2013 21:59:27 +0000 (14:59 -0700)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Reviewed-by: Jeremy Allison <jra@samba.org>
auth/credentials/credentials_secrets.c

index 730f047672e3169b245163a928d1b21c72f04c7c..27ee60722865a38087c49096b111f723fc306e33 100644 (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;