summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-07-15 18:31:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:10:10 -0500
commit32b7198256cf486404729698ebcfba72c097f3cd (patch)
tree870de1added8b2adffdf86ffe9acaca9cef68fd8 /source4/torture/rpc
parent803e5ef0313fa38eee1076ad179f6f76d81201b4 (diff)
downloadsamba-32b7198256cf486404729698ebcfba72c097f3cd.tar.gz
samba-32b7198256cf486404729698ebcfba72c097f3cd.tar.bz2
samba-32b7198256cf486404729698ebcfba72c097f3cd.zip
r17069: Make us pass RPC-NETLOGSAMBA3 against w2k3 again
(This used to be commit 963878a5f394234229af5835b2ccdd6d4b369466)
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/samba3rpc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source4/torture/rpc/samba3rpc.c b/source4/torture/rpc/samba3rpc.c
index 11b0af0afc..503126b153 100644
--- a/source4/torture/rpc/samba3rpc.c
+++ b/source4/torture/rpc/samba3rpc.c
@@ -594,7 +594,8 @@ static BOOL join3(struct smbcli_state *cli,
status = dcerpc_samr_SetUserInfo2(samr_pipe, mem_ctx, &sui2);
if (!NT_STATUS_IS_OK(status)) {
- d_printf("samr_SetUserInfo(24) failed\n");
+ d_printf("samr_SetUserInfo(24) failed: %s\n",
+ nt_errstr(status));
goto done;
}
@@ -1023,7 +1024,9 @@ BOOL torture_netlogon_samba3(struct torture_context *torture)
cli_credentials_set_secure_channel_type(wks_creds, SEC_CHAN_WKSTA);
cli_credentials_set_username(wks_creds, wks_name, CRED_SPECIFIED);
cli_credentials_set_workstation(wks_creds, wks_name, CRED_SPECIFIED);
- cli_credentials_set_password(wks_creds, "", CRED_SPECIFIED);
+ cli_credentials_set_password(wks_creds,
+ generate_random_str(wks_creds, 8),
+ CRED_SPECIFIED);
if (!join3(cli, False, cmdline_credentials, wks_creds)) {
d_printf("join failed\n");