components/openssh/patches/003-last_login.patch
author Huie-Ying Lee <huieying.lee@oracle.com>
Fri, 13 Mar 2015 17:05:08 -0700
branchs11-update
changeset 3946 b1e0e68de63b
child 5324 5683175b6e99
permissions -rw-r--r--
PSARC 2012/335 OpenSSH migration PSARC 2013/115 Shared configuration for SunSSH & OpenSSH PSARC 2014/078 OpenSSH 6.5 PSARC 2014/342 pam_unix_session lastlog support 15769261 SUNBT7135649 Deliver OpenSSH 6.0P1 in the userland gate 18205826 upgrade OpenSSH to 6.5p1 19579776 OpenSSH doesn't need to reference lastlog anymore now that PAM session mgmt does 18267729 Delegating credentials in OpenSSH 18828925 migrate the disablebanner feature from SunSSH to OpenSSH 18890096 migrate PAM enhancements from SunSSH to OpenSSH 19629847 OpenSSH does not support Solaris Audit for login/logout. 17997193 misc. problems in Makefile and openssh.p5m 18268681 openssh has non-existent /usr/local/lib in its runpath 18528305 /var/empty should be delivered readonly 19034156 PAM coversation function for passwd auth method has an incorrect assumption 19906401 should set AUTHTOK to NULL after pam_authenticate in sshpam_auth_passwd() 19517432 OpenSSH does not update utmpx on login 19570656 GSSAPIAuthentication option should default to yes 19591379 X11Forwarding and ForwardX11Trusted should default to yes 19465507 Deprecate SunSSH-only server options (e.g. iMaxAuthTriesLog) in OpenSSH 18898794 ssh connections fail with openssh, same config works with sunssh 20549448 OpenSSH X86 server core dump at audit_event 20656125 OpenSSH ed25519 algorithm signature verification failure 18435439 problem in UTILITY/OPENSSH 18491957 problem in UTILITY/OPENSSH

# The man page change here is Solaris-specific and thus is not being
# contributed back to the upstream community.  The servconf.c change
# was developed in-house and has been submitted upstream to OpenSSH for
# their consideration:
# https://bugzilla.mindrot.org/show_bug.cgi?id=2278
#
# OpenSSH normally updates lastlog when users login and reads lastlog to
# determine the last login time of the user however on Solaris the
# pam_unix_session(5) module handles both of these tasks so we compile
# OpenSSH with --disable-lastlog to disable all lastlog references.
# This means the sshd_config option of PrintLastLog is now ignored and
# can't be changed so we update sshd's configuration parsing to flag
# this as unsupported and update the man page here.
#
*** old/servconf.c Wed Sep 17 02:54:26 2014
--- new/servconf.c Wed Sep 17 02:56:55 2014
***************
*** 432,438 ****
--- 432,442 ----
  	{ "listenaddress", sListenAddress, SSHCFG_GLOBAL },
  	{ "addressfamily", sAddressFamily, SSHCFG_GLOBAL },
  	{ "printmotd", sPrintMotd, SSHCFG_GLOBAL },
+ #ifdef DISABLE_LASTLOG
+ 	{ "printlastlog", sUnsupported, SSHCFG_GLOBAL },
+ #else
  	{ "printlastlog", sPrintLastLog, SSHCFG_GLOBAL },
+ #endif
  	{ "ignorerhosts", sIgnoreRhosts, SSHCFG_GLOBAL },
  	{ "ignoreuserknownhosts", sIgnoreUserKnownHosts, SSHCFG_GLOBAL },
  	{ "x11forwarding", sX11Forwarding, SSHCFG_ALL },
*** old/sshd_config.5	Tue Sep 16 06:24:13 2014
--- new/sshd_config.5	Tue Sep 16 06:47:47 2014
***************
*** 1008,1015 ****
  .Xr sshd 1M
  should print the date and time of the last user login when a user logs
  in interactively.
! The default is
! .Dq yes .
  .It Cm PrintMotd
  Specifies whether
  .Xr sshd 1M
--- 1008,1015 ----
  .Xr sshd 1M
  should print the date and time of the last user login when a user logs
  in interactively.
! On Solaris this option is always ignored since pam_unix_session(5)
! reports the last login time.
  .It Cm PrintMotd
  Specifies whether
  .Xr sshd 1M
***************
*** 1349,1355 ****
  (though not necessary) that it be world-readable.
  .El
  .Sh SEE ALSO
! .Xr sshd 8
  .Sh AUTHORS
  OpenSSH is a derivative of the original and free
  ssh 1.2.12 release by Tatu Ylonen.
--- 1349,1356 ----
  (though not necessary) that it be world-readable.
  .El
  .Sh SEE ALSO
! .Xr sshd 8 ,
! .Xr pam_unix_session 5
  .Sh AUTHORS
  OpenSSH is a derivative of the original and free
  ssh 1.2.12 release by Tatu Ylonen.