View | Details | Raw Unified
Collapse All | Expand All

(-) hylafax-4.2.1/configure (-4 / +2 lines)
 Lines 1578-1588    Link Here 
if [ "$DISABLE_PAM" != "yes" ]; then
if [ "$DISABLE_PAM" != "yes" ]; then
	Note "Checking for PAM (Pluggable Authentication Module) support"
	Note "Checking for PAM (Pluggable Authentication Module) support"
	CheckForLibrary pam_authenticate -lpam &&
	CheckForLibrary pam_authenticate -lpam &&
		CheckForLibrary misc_conv -lpam_misc -lpam &&
		CheckForIncludeFile security/pam_appl.h && {
		CheckForIncludeFile security/pam_appl.h &&
		CheckForIncludeFile security/pam_misc.h && {
			HAVE_PAM="#define HAVE_PAM 1"
			HAVE_PAM="#define HAVE_PAM 1"
			PAMLIBS="-lpam -lpam_misc"
			PAMLIBS="-lpam"
		}
		}
	if [ "x$PAMLIBS" = "x" ]; then
	if [ "x$PAMLIBS" = "x" ]; then
		Note "... not found. Disabling PAM support"
		Note "... not found. Disabling PAM support"
(-) hylafax-4.2.1/hfaxd/HylaFAXServer.h (-1 lines)
 Lines 43-49    Link Here 
#ifdef HAVE_PAM
#ifdef HAVE_PAM
extern "C" {
extern "C" {
#include <security/pam_appl.h>
#include <security/pam_appl.h>
#include <security/pam_misc.h>
#include <grp.h>
#include <grp.h>
}
}
#endif // HAVE_PAM
#endif // HAVE_PAM
(-) hylafax-4.2.1/hfaxd/Login.c++ (-1 / +1 lines)
 Lines 109-115    Link Here 
	for (i=0; i<num_msg; i++) {
	for (i=0; i<num_msg; i++) {
		switch(msg[i]->msg_style) {
		switch(msg[i]->msg_style) {
			case PAM_PROMPT_ECHO_OFF:
			case PAM_PROMPT_ECHO_OFF:
				replies[i].resp = x_strdup(password);
				replies[i].resp = password ? strdup(password) : NULL;
				replies[i].resp_retcode = 0;
				replies[i].resp_retcode = 0;
				retval = PAM_SUCCESS;
				retval = PAM_SUCCESS;
				break;
				break;