Author: metze
Date: 2006-10-25 11:50:23 +0000 (Wed, 25 Oct 2006)
New Revision: 19492

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19492

Log:
- 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

Modified:
   branches/SAMBA_4_0/source/torture/rpc/samba3rpc.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/rpc/samba3rpc.c
===================================================================
--- branches/SAMBA_4_0/source/torture/rpc/samba3rpc.c   2006-10-25 02:06:05 UTC 
(rev 19491)
+++ branches/SAMBA_4_0/source/torture/rpc/samba3rpc.c   2006-10-25 11:50:23 UTC 
(rev 19492)
@@ -169,6 +169,7 @@
                         nt_errstr(status));
                goto done;
        }
+       session2->vuid = setup.out.vuid;
 
        tmp = cli->tree->session;
        cli->tree->session = session2;
@@ -1684,6 +1685,7 @@
                        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 @@
                {"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");
 

Reply via email to