From 3bfe6765b20904a47b81d9fa7df6d6385f144ceb Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 16 Nov 2010 17:44:08 +0100 Subject: s3: Remove a reference to "winbindd_cli_state" from append_unix_username --- source3/winbindd/winbindd_pam.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source3') diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c index 92c555d2db..ca509d2d48 100644 --- a/source3/winbindd/winbindd_pam.c +++ b/source3/winbindd/winbindd_pam.c @@ -142,7 +142,7 @@ static NTSTATUS append_info3_as_ndr(TALLOC_CTX *mem_ctx, } static NTSTATUS append_unix_username(TALLOC_CTX *mem_ctx, - struct winbindd_cli_state *state, + struct winbindd_response *resp, const struct netr_SamInfo3 *info3, const char *name_domain, const char *name_user) @@ -166,11 +166,11 @@ static NTSTATUS append_unix_username(TALLOC_CTX *mem_ctx, nt_username = name_user; } - fill_domain_username(state->response->data.auth.unix_username, + fill_domain_username(resp->data.auth.unix_username, nt_domain, nt_username, true); - DEBUG(5,("Setting unix username to [%s]\n", - state->response->data.auth.unix_username)); + DEBUG(5, ("Setting unix username to [%s]\n", + resp->data.auth.unix_username)); return NT_STATUS_OK; } @@ -738,8 +738,8 @@ static NTSTATUS append_auth_data(struct winbindd_cli_state *state, } if (request_flags & WBFLAG_PAM_UNIX_NAME) { - result = append_unix_username(state->mem_ctx, state, info3, - name_domain, name_user); + result = append_unix_username(state->mem_ctx, state->response, + info3, name_domain, name_user); if (!NT_STATUS_IS_OK(result)) { DEBUG(10,("Failed to append Unix Username: %s\n", nt_errstr(result))); -- cgit