From f8afc52ed0125e15d1ea05e79a0f86077dc92ddd Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 25 Oct 2006 11:50:23 +0000 Subject: r19492: - fix RPC-AUTHCONTEXT and RPC-SAMBA3-GETUSERNAME (sorry volker:-) smb_composite_sesssetup() doesn't set session->vuid any more... (I changed that yesterday, because it was inconsistently only done for spnego session setups, as it was needed internaly for the 2nd session setup call, but know session->vuid is only touched (reset to 0) for the wrong password case) metze (This used to be commit bf2a7dd2180c9a025b99b87831960827baf75f16) --- source4/torture/rpc/samba3rpc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source4/torture/rpc') diff --git a/source4/torture/rpc/samba3rpc.c b/source4/torture/rpc/samba3rpc.c index 64a5c46e33..b95c255662 100644 --- a/source4/torture/rpc/samba3rpc.c +++ b/source4/torture/rpc/samba3rpc.c @@ -169,6 +169,7 @@ BOOL torture_bind_authcontext(struct torture_context *torture) nt_errstr(status)); goto done; } + session2->vuid = setup.out.vuid; tmp = cli->tree->session; cli->tree->session = session2; @@ -1684,6 +1685,7 @@ BOOL torture_samba3_rpc_getusername(struct torture_context *torture) ret = False; goto done; } + session2->vuid = setup.out.vuid; if (!NT_STATUS_IS_OK(secondary_tcon(mem_ctx, session2, "IPC$", &tree))) { @@ -2811,7 +2813,9 @@ BOOL torture_samba3_rpc_winreg(struct torture_context *torture) {"OpenHKPD", (winreg_open_fn)dcerpc_winreg_OpenHKPD }, {"OpenHKPT", (winreg_open_fn)dcerpc_winreg_OpenHKPT }, {"OpenHKCR", (winreg_open_fn)dcerpc_winreg_OpenHKCR }}; +#if 0 int i; +#endif mem_ctx = talloc_init("torture_rpc_winreg"); -- cgit