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