r7633: this patch started as an attempt to make the dcerpc code use a given
authorAndrew Tridgell <tridge@samba.org>
Thu, 16 Jun 2005 11:36:09 +0000 (11:36 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:18:15 +0000 (13:18 -0500)
commitaf237084ecd4f9928c6c282b9c5c73598d5c73d6
treea11f156dd4a4d20deaf74c16d90ae20d0f59f365
parent3b9dfb0da3e6e7afff7be60b571493bb288d385f
r7633: this patch started as an attempt to make the dcerpc code use a given
event_context for the socket_connect() call, so that when things that
use dcerpc are running alongside anything else it doesn't block the
whole process during a connect.

Then of course I needed to change any code that created a dcerpc
connection (such as the auth code) to also take an event context, and
anything that called that and so on .... thus the size of the patch.

There were 3 places where I punted:

  - abartlet wanted me to add a gensec_set_event_context() call
    instead of adding it to the gensec init calls. Andrew, my
    apologies for not doing this. I didn't do it as adding a new
    parameter allowed me to catch all the callers with the
    compiler. Now that its done, we could go back and use
    gensec_set_event_context()

  - the ejs code calls auth initialisation, which means it should pass
    in the event context from the web server. I punted on that. Needs fixing.

  - I used a NULL event context in dcom_get_pipe(). This is equivalent
    to what we did already, but should be fixed to use a callers event
    context. Jelmer, can you think of a clean way to do that?

I also cleaned up a couple of things:

 - libnet_context_destroy() makes no sense. I removed it.

 - removed some unused vars in various places
(This used to be commit 3a3025485bdb8f600ab528c0b4b4eef0c65e3fc9)
65 files changed:
source4/auth/auth.c
source4/auth/auth.h
source4/auth/auth_domain.c
source4/auth/gensec/gensec.c
source4/auth/gensec/gensec.h
source4/auth/ntlmssp/ntlmssp_server.c
source4/client/client.c
source4/client/smbspool.c
source4/gtk/tools/gepdump.c
source4/gtk/tools/gregedit.c
source4/gtk/tools/gwcrontab.c
source4/gtk/tools/gwsam.c
source4/ldap_server/ldap_bind.c
source4/lib/com/com.h
source4/lib/com/dcom/main.c
source4/lib/com/main.c
source4/lib/registry/reg_backend_rpc.c
source4/lib/registry/tools/regdiff.c
source4/lib/registry/tools/regpatch.c
source4/lib/registry/tools/regshell.c
source4/lib/registry/tools/regtree.c
source4/libcli/cliconnect.c
source4/libcli/composite/connect.c
source4/libcli/composite/sesssetup.c
source4/libcli/ldap/ldap_bind.c
source4/libcli/raw/clitree.c
source4/libcli/util/clilsa.c
source4/libnet/libnet.c
source4/libnet/libnet.h
source4/libnet/libnet_rpc.c
source4/libnet/libnet_vampire.c
source4/librpc/rpc/dcerpc.c
source4/librpc/rpc/dcerpc.h
source4/librpc/rpc/dcerpc_auth.c
source4/librpc/rpc/dcerpc_schannel.c
source4/librpc/rpc/dcerpc_smb.c
source4/librpc/rpc/dcerpc_sock.c
source4/librpc/rpc/dcerpc_util.c
source4/rpc_server/dcesrv_auth.c
source4/rpc_server/netlogon/dcerpc_netlogon.c
source4/rpc_server/remote/dcesrv_remote.c
source4/scripting/ejs/smbcalls.c
source4/scripting/ejs/smbcalls_cli.c
source4/smb_server/negprot.c
source4/smb_server/sesssetup.c
source4/torture/auth/ntlmssp.c
source4/torture/com/simple.c
source4/torture/gentest.c
source4/torture/libnet/libnet_user.c
source4/torture/locktest.c
source4/torture/locktest2.c
source4/torture/masktest.c
source4/torture/rpc/mgmt.c
source4/torture/rpc/samlogon.c
source4/torture/rpc/samsync.c
source4/torture/rpc/scanner.c
source4/torture/rpc/schannel.c
source4/torture/rpc/xplogin.c
source4/torture/torture.c
source4/utils/net/net_join.c
source4/utils/net/net_password.c
source4/utils/net/net_time.c
source4/utils/net/net_user.c
source4/utils/net/net_vampire.c
source4/utils/ntlm_auth.c