mirror of
https://github.com/samba-team/samba.git
synced 2025-10-24 15:33:20 +03:00
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
(This used to be commit fd7203789a)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
5158636aff
commit
1377cca5f4
@@ -25,6 +25,7 @@
|
||||
#include "rpc_server/dcerpc_server.h"
|
||||
#include "rpc_server/common/common.h"
|
||||
#include "rpc_server/drsuapi/dcesrv_drsuapi.h"
|
||||
#include "auth/auth.h"
|
||||
|
||||
/*
|
||||
drsuapi_DsBind
|
||||
@@ -43,7 +44,7 @@ static WERROR drsuapi_DsBind(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem
|
||||
b_state = talloc(dce_call->conn, struct drsuapi_bind_state);
|
||||
WERR_TALLOC_CHECK(b_state);
|
||||
|
||||
b_state->sam_ctx = samdb_connect(b_state);
|
||||
b_state->sam_ctx = samdb_connect(b_state, dce_call->conn->auth_state.session_info);
|
||||
if (!b_state->sam_ctx) {
|
||||
talloc_free(b_state);
|
||||
return WERR_FOOBAR;
|
||||
|
||||
Reference in New Issue
Block a user