summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-11-16 17:44:08 +0100
committerVolker Lendecke <vl@samba.org>2010-11-17 12:17:22 +0100
commit3bfe6765b20904a47b81d9fa7df6d6385f144ceb (patch)
tree2a98e13697f5d506200e38c2d1160e6ea0871c55 /source3
parent240edd07b30b20e9914de147d2773a36bc7a3a32 (diff)
downloadsamba-3bfe6765b20904a47b81d9fa7df6d6385f144ceb.tar.gz
samba-3bfe6765b20904a47b81d9fa7df6d6385f144ceb.tar.bz2
samba-3bfe6765b20904a47b81d9fa7df6d6385f144ceb.zip
s3: Remove a reference to "winbindd_cli_state" from append_unix_username
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/winbindd_pam.c12
1 files changed, 6 insertions, 6 deletions
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)));