s4-rpc: don't use auth padding in rpc bind requests as it breaks s3
authorAndrew Tridgell <tridge@samba.org>
Tue, 16 Feb 2010 11:18:16 +0000 (22:18 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 16 Feb 2010 11:42:59 +0000 (22:42 +1100)
commite3a272c3f23139e69c4e671e6b7b756d727c4e61
tree20fff47c0cbc86679c62db9d9ed025fbb97339e8
parent1e13d3fb076fca596f8c480134c6b6f877824360
s4-rpc: don't use auth padding in rpc bind requests as it breaks s3

The s3 RPC server returns a bind_nak if it gets a rpc bind with auth
padding. This change forces a padding length of zero to maximimise
compatibility with s3 servers.

I've left the padding code in as a #if 0 to make it easier for us to
test/fix the s3 server code, which should be changed to correctly
handle arbitrary auth padding in all rpc requests with auth trailers.
source4/librpc/rpc/dcerpc_util.c