From 0b9b897495b16fe4efeb8060a97c00bbbab28c0d Mon Sep 17 00:00:00 2001 From: oracle Date: Mon, 3 Aug 2015 14:34:19 -0700 Subject: [PATCH 02/34] PAM Support # # To comply to the illumos PAM policy, the UsePAM option is changed to be # always on and not configurable on illumos. This is for illumos only, so we # will not contribute the changes to the upstream community. # diff -wpruN --no-dereference '--exclude=*.orig' a~/servconf.c a/servconf.c --- a~/servconf.c 1970-01-01 00:00:00 +++ a/servconf.c 1970-01-01 00:00:00 @@ -1172,8 +1172,16 @@ process_server_config_line_depth(ServerO /* Portable-specific options */ #ifdef USE_PAM case sUsePAM: +#ifdef SET_USE_PAM + /* UsePAM is always on and not configurable on illumos */ + logit("%s line %d: ignoring UsePAM option value." + " This option is always on.", filename, linenum); + argv_consume(&ac); + break; +#else intptr = &options->use_pam; goto parse_flag; +#endif case sPAMServiceName: charptr = &options->pam_service_name; arg = argv_next(&ac, &av); diff -wpruN --no-dereference '--exclude=*.orig' a~/servconf.h a/servconf.h --- a~/servconf.h 1970-01-01 00:00:00 +++ a/servconf.h 1970-01-01 00:00:00 @@ -272,7 +272,7 @@ SSHCONF_ALIAS(KeepAlive, TCPKeepAlive, S #ifdef USE_PAM #define SSHD_CONFIG_ENTRIES_PAM \ -SSHCONF_INTFLAG(use_pam, UsePAM, SSHCFG_GLOBAL, 0, SSHCFG_COPY_NONE) \ +SSHCONF_INTFLAG(use_pam, UsePAM, SSHCFG_GLOBAL, 1, SSHCFG_COPY_NONE) \ SSHCONF_STRING(pam_service_name, PAMServiceName, SSHCFG_GLOBAL, SSHCFG_COPY_NONE) #else #define SSHD_CONFIG_ENTRIES_PAM \