From 3a7e642d19b8401376b9c5c9a36af3495c2ac04b Mon Sep 17 00:00:00 2001 From: jbasney Date: Mon, 6 Jun 2005 14:37:02 +0000 Subject: [PATCH] Enable PAM password authentication by default, unless PAM library and headers are unusable. --- openssh/configure.ac | 21 +++++++++++++++++++++ openssh/sshd_config | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/openssh/configure.ac b/openssh/configure.ac index e71551c..0d3ad6b 100644 --- a/openssh/configure.ac +++ b/openssh/configure.ac @@ -1297,6 +1297,27 @@ AC_ARG_WITH(pam, LIBPAM="-lpam" fi + AC_SUBST(LIBPAM) + fi + ], + [ + AC_CHECK_LIB(dl, dlopen, , ) + AC_CHECK_LIB(pam, pam_set_item, , ) + AC_CHECK_FUNCS(pam_getenvlist) + AC_CHECK_FUNCS(pam_putenv) + + if (test "x$ac_cv_header_security_pam_appl_h" = "xyes" || \ + test "x$ac_cv_header_pam_pam_appl_h" = "xyes") && + test "x$ac_cv_lib_pam_pam_set_item" = "xyes" ; then + + PAM_MSG="yes" + + AC_DEFINE(USE_PAM) + if test $ac_cv_lib_dl_dlopen = yes; then + LIBPAM="-lpam -ldl" + else + LIBPAM="-lpam" + fi AC_SUBST(LIBPAM) fi ] diff --git a/openssh/sshd_config b/openssh/sshd_config index 1abeebb..2a60657 100644 --- a/openssh/sshd_config +++ b/openssh/sshd_config @@ -81,7 +81,7 @@ # "PermitRootLogin without-password". If you just want the PAM account and # session checks to run without PAM authentication, then enable this but set # ChallengeResponseAuthentication=no -#UsePAM no +UsePAM yes #AllowTcpForwarding yes #GatewayPorts no -- 2.45.2