Changelog for HylaFAX 4.2.2
+* extend PAM support to OpenPAM variants (6 Jun 2005)
* send PPR instead of DCN when an empty block is received (1 Jun 2005)
* fix some dysfunctional mail redirects (30 May 2005)
* don't save null-data pages (26 May, 6 Jun 2005)
if [ "$DISABLE_PAM" != "yes" ]; then
Note "Checking for PAM (Pluggable Authentication Module) support"
CheckForLibrary pam_authenticate -lpam &&
- CheckForLibrary misc_conv -lpam_misc -lpam &&
- CheckForIncludeFile security/pam_appl.h &&
- CheckForIncludeFile security/pam_misc.h && {
+ CheckForIncludeFile security/pam_appl.h && {
HAVE_PAM="#define HAVE_PAM 1"
- PAMLIBS="-lpam -lpam_misc"
+ PAMLIBS="-lpam"
}
if [ "x$PAMLIBS" = "x" ]; then
Note "... not found. Disabling PAM support"
#ifdef HAVE_PAM
extern "C" {
#include <security/pam_appl.h>
-#include <security/pam_misc.h>
#include <grp.h>
}
#endif // HAVE_PAM
for (i=0; i<num_msg; i++) {
switch(msg[i]->msg_style) {
case PAM_PROMPT_ECHO_OFF:
- replies[i].resp = x_strdup(password);
+ replies[i].resp = password ? strdup(password) : NULL;
replies[i].resp_retcode = 0;
retval = PAM_SUCCESS;
break;