passdb-pam.c revision eb9e1428a31ff3abf7c3eaf7aafc95eede90e86b
1607N/A Based on auth_pam.c from popa3d by Solar Designer <solar@openwall.com>.
1607N/A#ifdef PASSDB_PAM
1607N/A#include "lib-signals.h"
6983N/A#include "var-expand.h"
1607N/A#include "safe-memset.h"
1607N/A#include "auth-cache.h"
1607N/A# define linux_const
1607N/A# define linux_const const
1607N/Astruct pam_passdb_module {
2543N/Astruct pam_conv_context {
1607N/A const char *failure_msg;
2644N/A case PAM_PROMPT_ECHO_ON:
1607N/A case PAM_PROMPT_ECHO_OFF:
2284N/A case PAM_ERROR_MSG:
1929N/A case PAM_TEXT_INFO:
1929N/A return PAM_CONV_ERR;
1607N/A return PAM_SUCCESS;
1607N/A#ifdef HAVE_PAM_SETCRED
1607N/A return PAM_SUCCESS;
1607N/Astatic enum passdb_result
1607N/A case PAM_SUCCESS:
1607N/A case PAM_USER_UNKNOWN:
1607N/A case PAM_NEW_AUTHTOK_REQD:
1607N/A case PAM_ACCT_EXPIRED:
2872N/Astatic struct passdb_module *