From e25cff1c110c5b4380caf5f5fb0336c37da78b10 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 22 Mar 2005 10:33:53 +0000 Subject: [PATCH] r5942: A couple of small changes to fix things up with the new credentials infrustructure. Andrew Bartlett (This used to be commit d51718ab8a3771ada4e342a384b744edb803db40) --- source4/lib/credentials.c | 1 + source4/torture/rpc/schannel.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/source4/lib/credentials.c b/source4/lib/credentials.c index 92f389e228d..211cb9ce071 100644 --- a/source4/lib/credentials.c +++ b/source4/lib/credentials.c @@ -316,6 +316,7 @@ void cli_credentials_set_anonymous(struct cli_credentials *cred) { cli_credentials_set_username(cred, "", CRED_SPECIFIED); cli_credentials_set_domain(cred, "", CRED_SPECIFIED); + cli_credentials_set_password(cred, NULL, CRED_SPECIFIED); } BOOL cli_credentials_is_anonymous(struct cli_credentials *credentials) diff --git a/source4/torture/rpc/schannel.c b/source4/torture/rpc/schannel.c index d27285a9cc2..d60a8bb60b7 100644 --- a/source4/torture/rpc/schannel.c +++ b/source4/torture/rpc/schannel.c @@ -23,6 +23,7 @@ #include "includes.h" #include "librpc/gen_ndr/ndr_samr.h" #include "librpc/gen_ndr/ndr_netlogon.h" +#include "lib/cmdline/popt_common.h" #define TEST_MACHINE_NAME "schanneltest" @@ -64,9 +65,8 @@ static BOOL test_netlogon_ops(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct netr_LogonSamLogon r; struct netr_Authenticator auth, auth2; struct netr_NetworkInfo ninfo; - const char *username = lp_parm_string(-1, "torture", "username"); - const char *password = lp_parm_string(-1, "torture", "password"); - + const char *username = cli_credentials_get_username(cmdline_credentials); + const char *password = cli_credentials_get_password(cmdline_credentials); int i; BOOL ret = True; -- 2.11.4.GIT