From 32b7198256cf486404729698ebcfba72c097f3cd Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 15 Jul 2006 18:31:51 +0000 Subject: r17069: Make us pass RPC-NETLOGSAMBA3 against w2k3 again (This used to be commit 963878a5f394234229af5835b2ccdd6d4b369466) --- source4/torture/rpc/samba3rpc.c | 7 +++++-- 1 file 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"); -- cgit