summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd_pam.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-01-28 19:05:37 +0100
committerVolker Lendecke <vlendec@samba.org>2011-01-28 22:54:19 +0100
commite099c91ef9ebdde09fb372d4a48a299f51cd919c (patch)
tree12e0199353d9aaa64b755453bb1a1398a6d70fd0 /source3/winbindd/winbindd_pam.c
parentfe516a3fb76b389ba7dc70ec8c16522d8dc93d27 (diff)
downloadsamba-e099c91ef9ebdde09fb372d4a48a299f51cd919c.tar.gz
samba-e099c91ef9ebdde09fb372d4a48a299f51cd919c.tar.bz2
samba-e099c91ef9ebdde09fb372d4a48a299f51cd919c.zip
s3: Lift winbindd_cli_state from fillup_password_policy
Diffstat (limited to 'source3/winbindd/winbindd_pam.c')
-rw-r--r--source3/winbindd/winbindd_pam.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c
index 9555be0d85..004f3d47a3 100644
--- a/source3/winbindd/winbindd_pam.c
+++ b/source3/winbindd/winbindd_pam.c
@@ -388,7 +388,7 @@ static void fill_in_password_policy(struct winbindd_response *r,
}
static NTSTATUS fillup_password_policy(struct winbindd_domain *domain,
- struct winbindd_cli_state *state)
+ struct winbindd_response *response)
{
TALLOC_CTX *frame = talloc_stackframe();
struct winbindd_methods *methods;
@@ -409,7 +409,7 @@ static NTSTATUS fillup_password_policy(struct winbindd_domain *domain,
goto done;
}
- fill_in_password_policy(state->response, &password_policy);
+ fill_in_password_policy(response, &password_policy);
done:
TALLOC_FREE(frame);
@@ -1635,7 +1635,8 @@ process_result:
result = NT_STATUS_NOT_SUPPORTED;
if (our_domain == domain ) {
- result = fillup_password_policy(our_domain, state);
+ result = fillup_password_policy(
+ our_domain, state->response);
}
if (!NT_STATUS_IS_OK(result)
@@ -1911,7 +1912,8 @@ done:
NTSTATUS policy_ret;
- policy_ret = fillup_password_policy(contact_domain, state);
+ policy_ret = fillup_password_policy(
+ contact_domain, state->response);
/* failure of this is non critical, it will just provide no
* additional information to the client why the change has