r5942: A couple of small changes to fix things up with the new credentials
authorAndrew Bartlett <abartlet@samba.org>
Tue, 22 Mar 2005 10:33:53 +0000 (10:33 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:11:11 +0000 (13:11 -0500)
infrustructure.

Andrew Bartlett

source/lib/credentials.c
source/torture/rpc/schannel.c

index 92f389e228ddfbe8e2dbb685dd146a6091cfdd1d..211cb9ce071e017e2f16a536a5f3686b8110e42d 100644 (file)
@@ -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)
index d27285a9cc2d66e4a7c7403acf140d8c19b5cbf5..d60a8bb60b7a6e01986b54eee7b2842956b5d2fc 100644 (file)
@@ -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;