added code to the RPC-SPOOLSS test that demonstrates that policy
authorAndrew Tridgell <tridge@samba.org>
Tue, 20 Jan 2004 06:07:09 +0000 (06:07 +0000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 20 Jan 2004 06:07:09 +0000 (06:07 +0000)
commit2ed24d29bafd9055d5782acdd595cd0f378a651a
tree681436357625ebe2896838ef212a7f0debd68d43
parente7c53ad1856e299d82d84b5837189ae3191c32de
added code to the RPC-SPOOLSS test that demonstrates that policy
handles are not shared between open dcerpc connections, even when
those connections are on the same SMB socket. I have tested this with
w2k3, w2k and NT4. It seems that policy handles have a strict scope of
the dcerpc connection on which they were opened.

I realise that this goes against existing folk-law in the team, but it
seems that the previous testing (I'm not sure who did this?) was
wrong. Perhaps clients do send us policy handles from other
connections, but if they do then the correct thing to do is to fail
the operation with a dcerpc fault. I suspect that failing it with
exactly the right dcerpc fault code is important.
source/librpc/rpc/dcerpc.h
source/librpc/rpc/dcerpc_smb.c
source/librpc/rpc/dcerpc_tcp.c
source/librpc/rpc/dcerpc_util.c
source/torture/rpc/spoolss.c