1508N/AThis patch addes pam_chauthtok(3PAM) and PAM_NO_AUTHTOK_CHECK features.
1508N/AAlso refer to pam_authtok_check(5).
1508N/A+ else if (strcmp(name, "NO_AUTHTOK_CHECK") == 0)
1508N/A+ #if defined(HAVE_PAM_NO_AUTHTOK_CHECK)
1508N/A+ return PAM_NO_AUTHTOK_CHECK;
1508N/A else if (strcmp(name, "MODULE_UNKNOWN") == 0)
1508N/A #if defined(HAVE_PAM_MODULE_UNKNOWN) /* Linux-PAM only */
1508N/A PAM_ESTABLISH_CRED PAM_DELETE_CRED PAM_REINITIALIZE_CRED
1508N/A PAM_REFRESH_CRED PAM_CHANGE_EXPIRED_AUTHTOK
1508N/A PAM_PROMPT_ECHO_OFF PAM_PROMPT_ECHO_ON PAM_ERROR_MSG
1508N/A PAM_TEXT_INFO PAM_RADIO_TYPE PAM_BINARY_PROMPT
1508N/A return _pam_start($_[0], $_[1], \&pam_default_conv, $_[2]) if @_ == 3;
1508N/A return _pam_start($_[0], undef, \&pam_default_conv, $_[1]) if @_ == 2;
1508N/A croak("Wrong number of arguments in pam_start function");
1508N/A+ return _pam_chauthtok(@_) if @_ == 2;
1508N/A+ return _pam_chauthtok($_[0], 0) if @_ == 1;
1508N/A+ croak("Wrong number of arguments in pam_chauthtok function");
1508N/A # Autoload methods go after =cut, and are processed by the autosplit program.
1508N/A /* Is the symbol PAM_REINITIALIZE_CRED defined? */
1508N/A #undef HAVE_PAM_REINITIALIZE_CRED
1508N/A+/* Is the symbol PAM_NO_AUTHTOK_CHECK defined? */
1508N/A+#undef HAVE_PAM_NO_AUTHTOK_CHECK
1508N/A #undef HAVE_SECURITY_PAM_APPL_H
1508N/A AC_CHECK_PAM_CONST(PAM_MODULE_UNKNOWN)
1508N/A AC_CHECK_PAM_CONST(PAM_RADIO_TYPE)
1508N/A AC_CHECK_PAM_CONST(PAM_BINARY_PROMPT)
1508N/A+AC_CHECK_PAM_CONST(PAM_NO_AUTHTOK_CHECK)
1508N/A # Checks if the dl library supports the RTLD_GLOBAL flag
1508N/A # but only if perl was compiled with the dl_open library