r12865: Upgrade the librpc and libnet code.
authorAndrew Bartlett <abartlet@samba.org>
Thu, 12 Jan 2006 09:33:49 +0000 (09:33 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:50:55 +0000 (13:50 -0500)
commitd65b354959842326fdd4bd7eb7fbeea0390f4afa
treeba6a3860b76fba2822283623716056b8a5f85199
parent21f87f87a9b79da4463bddc993df502beae50a16
r12865: Upgrade the librpc and libnet code.

In librpc, always try SMB level authentication, even if trying
schannel, but allow fallback to anonymous.  This should better
function with servers that set restrict anonymous.

There are too many parts of Samba that get, parse and modify the
binding parameters.  Avoid the extra work, and add a binding element
to the struct dcerpc_pipe

The libnet vampire code has been refactored, to reduce extra layers
and to better conform with the standard argument pattern.  Also, take
advantage of the new libnet_Lookup code, so we don't require the silly
'password server' smb.conf parameter.

To better support forcing traffic to be sealed for the vampire
operation, the dcerpc_bind_auth() function now takes an auth level
parameter.

Andrew Bartlett
19 files changed:
source/libnet/libnet_join.c
source/libnet/libnet_rpc.c
source/libnet/libnet_samdump.c
source/libnet/libnet_samdump_keytab.c
source/libnet/libnet_samsync_ldb.c
source/libnet/libnet_vampire.c
source/libnet/libnet_vampire.h
source/librpc/rpc/dcerpc.h
source/librpc/rpc/dcerpc_auth.c
source/librpc/rpc/dcerpc_connect.c
source/librpc/rpc/dcerpc_schannel.c
source/librpc/rpc/dcerpc_util.c
source/torture/rpc/netlogon.c
source/torture/rpc/samlogon.c
source/torture/rpc/schannel.c
source/utils/net/net_vampire.c
source/winbind/wb_connect_lsa.c
source/winbind/wb_connect_sam.c
source/winbind/wb_init_domain.c