r10810: This adds the hooks required to communicate the current user from the
commitfd7203789a2c0929eecea8125b57b833a67fed71
authorAndrew Bartlett <abartlet@samba.org>
Fri, 7 Oct 2005 11:31:45 +0000 (7 11:31 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:39:32 +0000 (10 13:39 -0500)
treec63c8f9dcc96d70ee55612adcc0c19c30bcc24f5
parentaa30c16de0405f43ed35a28764ef25e234f3b2a7
r10810: This adds the hooks required to communicate the current user from the
authenticated session down into LDB.  This associates a session info
structure with the open LDB, allowing a future ldb_ntacl module to
allow/deny operations on that basis.

Along the way, I cleaned up a few things, and added new helper functions
to assist.  In particular the LSA pipe uses simpler queries for some of
the setup.

In ldap_server, I have removed the 'ldasrv:hacked' module, which hasn't
been worked on (other than making it continue to compile) since January,
and I think the features of this module are being put into ldb anyway.

I have also changed the partitions in ldap_server to be initialised
after the connection, with the private pointer used to associate the ldb
with the incoming session.

Andrew Bartlett
27 files changed:
source/auth/auth_sam.c
source/auth/auth_util.c
source/cldap_server/netlogon.c
source/dsdb/samdb/samdb.c
source/dsdb/samdb/samdb_privilege.c
source/kdc/hdb-ldb.c
source/ldap_server/config.mk
source/ldap_server/ldap_backend.c
source/ldap_server/ldap_bind.c
source/ldap_server/ldap_hacked_ldb.c [deleted file]
source/ldap_server/ldap_rootdse.c
source/ldap_server/ldap_server.c
source/ldap_server/ldap_server.h
source/ldap_server/ldap_simple_ldb.c
source/lib/ldb/tools/cmdline.c
source/libcli/security/security_token.c
source/libnet/libnet_join.c
source/libnet/libnet_samsync_ldb.c
source/nbt_server/dgram/netlogon.c
source/ntvfs/common/sidmap.c
source/rpc_server/drsuapi/dcesrv_drsuapi.c
source/rpc_server/drsuapi/drsuapi_cracknames.c
source/rpc_server/dssetup/dcesrv_dssetup.c
source/rpc_server/lsa/dcesrv_lsa.c
source/rpc_server/netlogon/dcerpc_netlogon.c
source/rpc_server/samr/dcesrv_samr.c
source/rpc_server/samr/samr_password.c