svn commit: samba r5942 - in branches/SAMBA_4_0/source: lib
torture/rpc
abartlet at samba.org
abartlet at samba.org
Tue Mar 22 10:33:53 GMT 2005
Author: abartlet
Date: 2005-03-22 10:33:53 +0000 (Tue, 22 Mar 2005)
New Revision: 5942
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5942
Log:
A couple of small changes to fix things up with the new credentials
infrustructure.
Andrew Bartlett
Modified:
branches/SAMBA_4_0/source/lib/credentials.c
branches/SAMBA_4_0/source/torture/rpc/schannel.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/credentials.c
===================================================================
--- branches/SAMBA_4_0/source/lib/credentials.c 2005-03-22 08:00:45 UTC (rev 5941)
+++ branches/SAMBA_4_0/source/lib/credentials.c 2005-03-22 10:33:53 UTC (rev 5942)
@@ -316,6 +316,7 @@
{
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)
Modified: branches/SAMBA_4_0/source/torture/rpc/schannel.c
===================================================================
--- branches/SAMBA_4_0/source/torture/rpc/schannel.c 2005-03-22 08:00:45 UTC (rev 5941)
+++ branches/SAMBA_4_0/source/torture/rpc/schannel.c 2005-03-22 10:33:53 UTC (rev 5942)
@@ -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 @@
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;
More information about the samba-cvs
mailing list