mirror of
https://github.com/samba-team/samba.git
synced 2025-10-19 23:33:15 +03:00
r25446: Merge some changes I made on the way home from SFO:
2007-09-29 More higher-level passing around of lp_ctx. 2007-09-29 Fix warning. 2007-09-29 Pass loadparm contexts on a higher level. 2007-09-29 Avoid using global loadparm context.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
315ffc0191
commit
3468952e77
@@ -55,7 +55,9 @@ static int map_ldb_error(struct ldb_context *ldb, int err, const char **errstrin
|
||||
*/
|
||||
NTSTATUS ldapsrv_backend_Init(struct ldapsrv_connection *conn)
|
||||
{
|
||||
conn->ldb = ldb_wrap_connect(conn, lp_sam_url(global_loadparm), conn->session_info,
|
||||
conn->ldb = ldb_wrap_connect(conn,
|
||||
global_loadparm,
|
||||
lp_sam_url(global_loadparm), conn->session_info,
|
||||
NULL, conn->global_catalog ? LDB_FLG_RDONLY : 0, NULL);
|
||||
if (conn->ldb == NULL) {
|
||||
return NT_STATUS_INTERNAL_DB_CORRUPTION;
|
||||
|
Reference in New Issue
Block a user