From 0ffd6762d7598b1bba3d301547ae77f965b56c51 Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Sat, 22 May 2021 12:50:25 -0600 Subject: [PATCH] FreeBSD.cf,DragonFly.cf: disable PAM support by default These system can support PAM, but it requires a port of the NetBSD module to do so. As a result, this support is disabled by default. See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253073 for a patch to add this support to the OS. Then you can set HasPamLibrary to YES in the respective .cf files, rebuild CDE, and try it out. --- cde/config/cf/DragonFly.cf | 6 ++++-- cde/config/cf/FreeBSD.cf | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/cde/config/cf/DragonFly.cf b/cde/config/cf/DragonFly.cf index 5f45c053c..8a5b287f8 100644 --- a/cde/config/cf/DragonFly.cf +++ b/cde/config/cf/DragonFly.cf @@ -190,8 +190,10 @@ XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion) (OSRelVersio # define HasZlib YES #endif -#ifndef HasPam -# define HasPam YES +#ifndef HasPamLibrary +XCOMM See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253073 +XCOMM to enable pam support +# define HasPamLibrary NO #endif /* Take from FreeBSD */ diff --git a/cde/config/cf/FreeBSD.cf b/cde/config/cf/FreeBSD.cf index 48ac23c73..77eace491 100644 --- a/cde/config/cf/FreeBSD.cf +++ b/cde/config/cf/FreeBSD.cf @@ -248,7 +248,9 @@ ICONVSYSLIB != if test -f /usr/local/include/iconv.h; then echo -liconv; else ec #define CDESharedRev 2 #if !defined(HasPamLibrary) -#define HasPamLibrary YES +XCOMM See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253073 +XCOMM to enable pam support +#define HasPamLibrary NO #endif #if !defined(PamAuthenticationModule)