From a693e6f1c71d9772b52cf40a85b0504cea837240 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 4 Dec 2007 19:33:00 +0100 Subject: r26295: Remove use of global_loadparm for net and wb_pam_auth. (This used to be commit 47696b42987ea67ae1c6c09a4bec5858e5db4542) --- source4/winbind/wb_pam_auth.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source4/winbind/wb_pam_auth.c') diff --git a/source4/winbind/wb_pam_auth.c b/source4/winbind/wb_pam_auth.c index 9045c63d63..c8e81e09f2 100644 --- a/source4/winbind/wb_pam_auth.c +++ b/source4/winbind/wb_pam_auth.c @@ -35,6 +35,7 @@ struct pam_auth_crap_state { struct composite_context *ctx; struct event_context *event_ctx; + struct loadparm_context *lp_ctx; struct winbind_SamLogon *req; char *unix_username; @@ -77,6 +78,7 @@ struct composite_context *wb_cmd_pam_auth_crap_send(TALLOC_CTX *mem_ctx, state = talloc(result, struct pam_auth_crap_state); if (state == NULL) goto failed; state->ctx = result; + state->lp_ctx = service->task->lp_ctx; result->private_data = state; state->req = talloc(state, struct winbind_SamLogon); @@ -176,7 +178,7 @@ static void pam_auth_crap_recv_logon(struct composite_context *ctx) state->unix_username = talloc_asprintf(state, "%s%s%s", state->domain_name, - lp_winbind_separator(global_loadparm), + lp_winbind_separator(state->lp_ctx), state->user_name); if (composite_nomem(state->unix_username, state->ctx)) return; -- cgit