summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd_pam.c14
-rw-r--r--source3/winbindd/winbindd_proto.h4
2 files changed, 12 insertions, 6 deletions
diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c
index b87d2a8a9b..e28075bd80 100644
--- a/source3/winbindd/winbindd_pam.c
+++ b/source3/winbindd/winbindd_pam.c
@@ -726,10 +726,10 @@ static bool check_request_flags(uint32_t flags)
/****************************************************************
****************************************************************/
-static NTSTATUS append_data(struct winbindd_cli_state *state,
- struct netr_SamInfo3 *info3,
- const char *name_domain,
- const char *name_user)
+NTSTATUS append_auth_data(struct winbindd_cli_state *state,
+ struct netr_SamInfo3 *info3,
+ const char *name_domain,
+ const char *name_user)
{
NTSTATUS result;
uint32_t flags = state->request->flags;
@@ -1635,7 +1635,8 @@ process_result:
goto done;
}
- result = append_data(state, info3, name_domain, name_user);
+ result = append_auth_data(state, info3, name_domain,
+ name_user);
if (!NT_STATUS_IS_OK(result)) {
goto done;
}
@@ -1959,7 +1960,8 @@ enum winbindd_result winbindd_dual_pam_auth_crap(struct winbindd_domain *domain,
goto done;
}
- result = append_data(state, info3, name_domain, name_user);
+ result = append_auth_data(state, info3, name_domain,
+ name_user);
if (!NT_STATUS_IS_OK(result)) {
goto done;
}
diff --git a/source3/winbindd/winbindd_proto.h b/source3/winbindd/winbindd_proto.h
index 49034d79b7..d7f5761bcf 100644
--- a/source3/winbindd/winbindd_proto.h
+++ b/source3/winbindd/winbindd_proto.h
@@ -496,6 +496,10 @@ void ndr_print_winbindd_domain(struct ndr_print *ndr,
struct winbindd_domain *find_auth_domain(struct winbindd_cli_state *state,
const char *domain_name);
+NTSTATUS append_auth_data(struct winbindd_cli_state *state,
+ struct netr_SamInfo3 *info3,
+ const char *name_domain,
+ const char *name_user);
void winbindd_pam_auth(struct winbindd_cli_state *state);
enum winbindd_result winbindd_dual_pam_auth(struct winbindd_domain *domain,
struct winbindd_cli_state *state) ;