summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-09-05 17:00:21 +0200
committerVolker Lendecke <vl@samba.org>2009-09-05 17:00:21 +0200
commit1abf69231218446635cfc94041e7b0e61d73aeb1 (patch)
treeaef6291df4e8c34018912f01598dc4cddf228c3a /source3
parent4b49a8debce4c8f8b807b09f1800539028075c6f (diff)
downloadsamba-1abf69231218446635cfc94041e7b0e61d73aeb1.tar.gz
samba-1abf69231218446635cfc94041e7b0e61d73aeb1.tar.bz2
samba-1abf69231218446635cfc94041e7b0e61d73aeb1.zip
s3:winbind: Make the pam_auth subfunctions static
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/winbindd_pam.c18
-rw-r--r--source3/winbindd/winbindd_proto.h9
2 files changed, 9 insertions, 18 deletions
diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c
index 56657928a4..b7a9888f0c 100644
--- a/source3/winbindd/winbindd_pam.c
+++ b/source3/winbindd/winbindd_pam.c
@@ -854,9 +854,9 @@ void winbindd_pam_auth(struct winbindd_cli_state *state)
request_error(state);
}
-NTSTATUS winbindd_dual_pam_auth_cached(struct winbindd_domain *domain,
- struct winbindd_cli_state *state,
- struct netr_SamInfo3 **info3)
+static NTSTATUS winbindd_dual_pam_auth_cached(struct winbindd_domain *domain,
+ struct winbindd_cli_state *state,
+ struct netr_SamInfo3 **info3)
{
NTSTATUS result = NT_STATUS_LOGON_FAILURE;
uint16 max_allowed_bad_attempts;
@@ -1110,9 +1110,9 @@ failed:
return NT_STATUS_LOGON_FAILURE;
}
-NTSTATUS winbindd_dual_pam_auth_kerberos(struct winbindd_domain *domain,
- struct winbindd_cli_state *state,
- struct netr_SamInfo3 **info3)
+static NTSTATUS winbindd_dual_pam_auth_kerberos(struct winbindd_domain *domain,
+ struct winbindd_cli_state *state,
+ struct netr_SamInfo3 **info3)
{
struct winbindd_domain *contact_domain;
fstring name_domain, name_user;
@@ -1181,9 +1181,9 @@ typedef NTSTATUS (*netlogon_fn_t)(struct rpc_pipe_client *cli,
DATA_BLOB nt_response,
struct netr_SamInfo3 **info3);
-NTSTATUS winbindd_dual_pam_auth_samlogon(struct winbindd_domain *domain,
- struct winbindd_cli_state *state,
- struct netr_SamInfo3 **info3)
+static NTSTATUS winbindd_dual_pam_auth_samlogon(struct winbindd_domain *domain,
+ struct winbindd_cli_state *state,
+ struct netr_SamInfo3 **info3)
{
struct rpc_pipe_client *netlogon_pipe;
diff --git a/source3/winbindd/winbindd_proto.h b/source3/winbindd/winbindd_proto.h
index fba6bd2d46..086fa52563 100644
--- a/source3/winbindd/winbindd_proto.h
+++ b/source3/winbindd/winbindd_proto.h
@@ -478,15 +478,6 @@ void ndr_print_winbindd_domain(struct ndr_print *ndr,
struct winbindd_domain *find_auth_domain(struct winbindd_cli_state *state,
const char *domain_name);
void winbindd_pam_auth(struct winbindd_cli_state *state);
-NTSTATUS winbindd_dual_pam_auth_cached(struct winbindd_domain *domain,
- struct winbindd_cli_state *state,
- struct netr_SamInfo3 **info3);
-NTSTATUS winbindd_dual_pam_auth_kerberos(struct winbindd_domain *domain,
- struct winbindd_cli_state *state,
- struct netr_SamInfo3 **info3);
-NTSTATUS winbindd_dual_pam_auth_samlogon(struct winbindd_domain *domain,
- struct winbindd_cli_state *state,
- struct netr_SamInfo3 **info3);
enum winbindd_result winbindd_dual_pam_auth(struct winbindd_domain *domain,
struct winbindd_cli_state *state) ;
void winbindd_pam_auth_crap(struct winbindd_cli_state *state);