[PATCH 4/9] secrets: use lpcfg_private_db_path() convenience helper.

Rusty Russell rusty at rustcorp.com.au
Thu Apr 11 01:42:11 MDT 2013


Signed-off-by: Rusty Russell <rusty at rustcorp.com.au>
---
 auth/credentials/credentials_secrets.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/auth/credentials/credentials_secrets.c b/auth/credentials/credentials_secrets.c
index 730f047..27ee607 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;
-- 
1.7.10.4



More information about the samba-technical mailing list