Damien Miller | e72b7af | 1999-12-30 15:08:44 +1100 | [diff] [blame] | 1 | #include "includes.h" |
| 2 | #ifdef USE_PAM |
| 3 | |
| 4 | #include <pwd.h> /* For struct passwd */ |
| 5 | |
| 6 | void start_pam(struct passwd *pw); |
| 7 | void finish_pam(void); |
| 8 | int auth_pam_password(struct passwd *pw, const char *password); |
| 9 | char **fetch_pam_environment(void); |
Damien Miller | b848158 | 2000-12-03 11:51:51 +1100 | [diff] [blame] | 10 | int do_pam_authenticate(int flags); |
Damien Miller | e72b7af | 1999-12-30 15:08:44 +1100 | [diff] [blame] | 11 | int do_pam_account(char *username, char *remote_user); |
Damien Miller | 3e955e7 | 2000-01-27 10:55:38 +1100 | [diff] [blame] | 12 | void do_pam_session(char *username, const char *ttyname); |
Kevin Steves | 6beac8c | 2000-10-14 15:08:49 +0000 | [diff] [blame] | 13 | void do_pam_setcred(void); |
Damien Miller | e72b7af | 1999-12-30 15:08:44 +1100 | [diff] [blame] | 14 | void print_pam_messages(void); |
Kevin Steves | 092f2ef | 2000-10-14 13:36:13 +0000 | [diff] [blame] | 15 | int pam_password_change_required(void); |
Kevin Steves | 6beac8c | 2000-10-14 15:08:49 +0000 | [diff] [blame] | 16 | void do_pam_chauthtok(void); |
Damien Miller | b848158 | 2000-12-03 11:51:51 +1100 | [diff] [blame] | 17 | void pam_set_conv(struct pam_conv *); |
Damien Miller | e72b7af | 1999-12-30 15:08:44 +1100 | [diff] [blame] | 18 | |
| 19 | #endif /* USE_PAM */ |