2001-03-27 08:12:24 +02:00
|
|
|
/* $Id: auth-pam.h,v 1.11 2001/03/27 06:12:24 djm Exp $ */
|
2001-02-09 02:55:35 +01:00
|
|
|
|
1999-12-30 05:08:44 +01:00
|
|
|
#include "includes.h"
|
|
|
|
#ifdef USE_PAM
|
|
|
|
|
|
|
|
#include <pwd.h> /* For struct passwd */
|
|
|
|
|
2001-01-19 05:46:38 +01:00
|
|
|
void start_pam(const char *user);
|
1999-12-30 05:08:44 +01:00
|
|
|
void finish_pam(void);
|
|
|
|
int auth_pam_password(struct passwd *pw, const char *password);
|
|
|
|
char **fetch_pam_environment(void);
|
2000-12-03 01:51:51 +01:00
|
|
|
int do_pam_authenticate(int flags);
|
1999-12-30 05:08:44 +01:00
|
|
|
int do_pam_account(char *username, char *remote_user);
|
2000-01-27 00:55:38 +01:00
|
|
|
void do_pam_session(char *username, const char *ttyname);
|
2001-03-27 08:12:24 +02:00
|
|
|
void do_pam_setcred(int init);
|
1999-12-30 05:08:44 +01:00
|
|
|
void print_pam_messages(void);
|
2001-02-15 01:51:32 +01:00
|
|
|
int is_pam_password_change_required(void);
|
2000-10-14 17:08:49 +02:00
|
|
|
void do_pam_chauthtok(void);
|
2001-02-15 01:51:32 +01:00
|
|
|
void do_pam_set_conv(struct pam_conv *);
|
2001-02-07 02:58:33 +01:00
|
|
|
void message_cat(char **p, const char *a);
|
1999-12-30 05:08:44 +01:00
|
|
|
|
|
|
|
#endif /* USE_PAM */
|