diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/passdb/pdb_samba4.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source3/passdb/pdb_samba4.c b/source3/passdb/pdb_samba4.c index ed27501b4d..ae38133e20 100644 --- a/source3/passdb/pdb_samba4.c +++ b/source3/passdb/pdb_samba4.c @@ -2213,10 +2213,18 @@ static NTSTATUS pdb_init_samba4(struct pdb_methods **pdb_method, goto nomem; } - state->ldb = samdb_connect(state, + if (location) { + state->ldb = samdb_connect_url(state, + state->ev, + state->lp_ctx, + system_session(state->lp_ctx), + 0, location); + } else { + state->ldb = samdb_connect(state, state->ev, state->lp_ctx, system_session(state->lp_ctx), 0); + } if (!state->ldb) { DEBUG(0, ("samdb_connect failed\n")); |