s4-dsdb: create a static system_session context
commit98e4393df926b600354ef16eb4eb19b5e11bf5c3
authorAndrew Tridgell <tridge@samba.org>
Fri, 23 Oct 2009 03:19:28 +0000 (23 14:19 +1100)
committerAndrew Tridgell <tridge@samba.org>
Fri, 23 Oct 2009 03:52:17 +0000 (23 14:52 +1100)
treecb022930ab51d372c4102cad1357767b2b92c628
parent4a1a9f579265e885c6fabb3acc3cf0d930feacc3
s4-dsdb: create a static system_session context

This patch adds a system_session cache, preventing us from having to
recreate it on every ldb open, and allowing us to detect when the same
session is being used in ldb_wrap
22 files changed:
source4/auth/auth.h
source4/auth/gensec/schannel_state.c
source4/auth/ntlm/auth_sam.c
source4/auth/pyauth.c
source4/auth/session.h
source4/auth/system_session.c
source4/cldap_server/cldap_server.c
source4/dsdb/samdb/cracknames.c
source4/kdc/kpasswdd.c
source4/ldap_server/ldap_server.c
source4/lib/ldb/tools/cmdline.c
source4/nbt_server/nbt_server.c
source4/ntp_signd/ntp_signd.c
source4/ntptr/simple_ldb/ntptr_simple_ldb.c
source4/param/share_ldb.c
source4/rpc_server/drsuapi/dcesrv_drsuapi.c
source4/rpc_server/lsa/dcesrv_lsa.c
source4/rpc_server/netlogon/dcerpc_netlogon.c
source4/rpc_server/samr/samr_password.c
source4/torture/libnet/libnet_BecomeDC.c
source4/utils/net/net_vampire.c
source4/wrepl_server/wrepl_server.c