]> andersk Git - openssh.git/commitdiff
- SunOS 4.x support from Todd C. Miller <Todd.Miller@courtesan.com>
authordamien <damien>
Sat, 20 May 2000 05:02:59 +0000 (05:02 +0000)
committerdamien <damien>
Sat, 20 May 2000 05:02:59 +0000 (05:02 +0000)
ChangeLog
acconfig.h
auth-passwd.c
bsd-login.c
configure.in
contrib/redhat/openssh.spec
contrib/suse/openssh.spec

index 9f7f21c13d7987747e3f36a0ad5ae98e795a0aaf..9ca51be28d8e3f2294ae04a00e743a5522827af0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 20000520
  - Xauth fix from Markus Friedl <markus.friedl@informatik.uni-erlangen.de>
  - Don't touch utmp if USE_UTMPX defined
+ - SunOS 4.x support from Todd C. Miller <Todd.Miller@courtesan.com>
 
 20000518
  - Include Andre Lucas' fixprogs script. Forgot to "cvs add" it yesterday
index b3e11fe9c5ba18e558a5acc75c3db84e390093d0..308919f90fbe5aa6ca34e4f97d2e16f5d0452aae 100644 (file)
 /* Define if you want have trusted HPUX */
 #undef HAVE_HPUX_TRUSTED_SYSTEM_PW
 
+/* Define if you have getpwanam(3) [SunOS 4.x] */
+#undef HAVE_GETPWANAM
+
 /* Defined if in_systm.h needs to be included with netinet/ip.h (HPUX - <sigh/>) */
 #undef NEED_IN_SYSTM_H
 
index 610dbbe36330e57e05440ec3697d65987eb1c836..d8ecb1dcf5cdb7d8f9db47676d108d01e3d1d842 100644 (file)
@@ -28,6 +28,11 @@ RCSID("$Id$");
 #ifdef HAVE_SHADOW_H
 # include <shadow.h>
 #endif
+#ifdef HAVE_GETPWANAM
+# include <sys/label.h>
+# include <sys/audit.h>
+# include <pwdadj.h>
+#endif
 #if defined(HAVE_MD5_PASSWORDS) && !defined(HAVE_MD5_CRYPT)
 # include "md5crypt.h"
 #endif /* defined(HAVE_MD5_PASSWORDS) && !defined(HAVE_MD5_CRYPT) */
@@ -46,6 +51,9 @@ auth_password(struct passwd * pw, const char *password)
 #ifdef HAVE_SHADOW_H
        struct spwd *spw;
 #endif
+#ifdef HAVE_GETPWANAM
+       struct passwd_adjunct *spw;
+#endif
 #ifdef WITH_AIXAUTHENTICATE
        char *authmsg;
        char *loginmsg;
@@ -99,6 +107,16 @@ auth_password(struct passwd * pw, const char *password)
                pw_password = spw->sp_pwdp;
        }
 #endif /* defined(HAVE_SHADOW_H) && !defined(DISABLE_SHADOW) */
+#if defined(HAVE_GETPWANAM) && !defined(DISABLE_SHADOW)
+       if (issecure() && (spw = getpwanam(pw->pw_name)) != NULL)
+       {
+               /* Check for users with no password. */
+               if (strcmp(password, "") == 0 && strcmp(spw->pwa_passwd, "") == 0)
+                       return 1;
+
+               pw_password = spw->pwa_passwd;
+       }
+#endif /* defined(HAVE_GETPWANAM) && !defined(DISABLE_SHADOW) */
 
        if (pw_password[0] != '\0')
                salt = pw_password;
index de49214c09538b1034ed8ae3c1246c62074d709d..ecd5e05af1b86ed5667f01a394104d88db0f5a0e 100644 (file)
@@ -60,6 +60,7 @@ static char *rcsid = "$OpenBSD: login.c,v 1.5 1998/07/13 02:11:12 millert Exp $"
 #include <stdio.h>
 #include <string.h>
 
+#ifdef USER_PROCESS
 /*
  * find first matching slot in utmp, or "-1" for none
  *
@@ -95,6 +96,13 @@ struct utmp * utp;
 #endif
        return(-1);
 }
+#else
+int find_tty_slot( utp )
+struct utmp * utp;
+{
+       return(ttyslot());
+}
+#endif
 
 #if defined(HAVE_UTMPX_H) && defined(USE_UTMPX)
 void
index 43749046c68264492bace424a01b3b14a48b5030..60036c7b4f653b664d87779aec567c47c3b46959 100644 (file)
@@ -110,6 +110,10 @@ case "$host" in
        need_dash_r=1
        AC_DEFINE(USE_UTMPX)
        ;;
+*-*-sunos4*)
+       CFLAGS="$CFLAGS -DSUNOS4"
+       AC_CHECK_FUNCS(getpwanam)
+       ;;
 *-*-sysv*)
        CFLAGS="$CFLAGS -I/usr/local/include"
        LDFLAGS="$LDFLAGS -L/usr/local/lib"
index 415719f1cecde93d5bd518afa7c340144dbd9d5e..bd628db447ced7c2d81562d2b8a341d51555c247 100644 (file)
@@ -1,5 +1,5 @@
 # Version of OpenSSH
-%define oversion 2.1.0p1
+%define oversion 2.1.0p2
 
 # Version of ssh-askpass
 %define aversion 1.0
index 69ab4bda80534be7b80f832ddbf9e47a4c1e79ee..4c745ac8095810bcbe3282efae4dfbcae77afa60 100644 (file)
@@ -1,6 +1,6 @@
 Summary: OpenSSH, a free Secure Shell (SSH) implementation
 Name: openssh
-Version: 2.1.0p1
+Version: 2.1.0p2
 URL: http://www.openssh.com/
 Release: 1
 Source0: openssh-%{version}.tar.gz
This page took 0.079817 seconds and 5 git commands to generate.