summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-09-27 11:39:38 +0200
committerVolker Lendecke <vl@samba.org>2009-09-28 17:54:20 +0200
commit93db77adcb140d2510af07dab5002709dd14549f (patch)
tree832ef4ca179cd9b9ca6fcf31a1bad72225665908 /source3/winbindd
parent388470f1f34111f7027e2abae5dbdf490f0992df (diff)
downloadsamba-93db77adcb140d2510af07dab5002709dd14549f.tar.gz
samba-93db77adcb140d2510af07dab5002709dd14549f.tar.bz2
samba-93db77adcb140d2510af07dab5002709dd14549f.zip
s3:winbind: Make append_data publically available as append_auth_data
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) ;