- SunOS 4.x support from Todd C. Miller <Todd.Miller@courtesan.com>
This commit is contained in:
parent
ad1bc5f986
commit
dfc83f42eb
|
@ -1,6 +1,7 @@
|
||||||
20000520
|
20000520
|
||||||
- Xauth fix from Markus Friedl <markus.friedl@informatik.uni-erlangen.de>
|
- Xauth fix from Markus Friedl <markus.friedl@informatik.uni-erlangen.de>
|
||||||
- Don't touch utmp if USE_UTMPX defined
|
- Don't touch utmp if USE_UTMPX defined
|
||||||
|
- SunOS 4.x support from Todd C. Miller <Todd.Miller@courtesan.com>
|
||||||
|
|
||||||
20000518
|
20000518
|
||||||
- Include Andre Lucas' fixprogs script. Forgot to "cvs add" it yesterday
|
- Include Andre Lucas' fixprogs script. Forgot to "cvs add" it yesterday
|
||||||
|
|
|
@ -102,6 +102,9 @@
|
||||||
/* Define if you want have trusted HPUX */
|
/* Define if you want have trusted HPUX */
|
||||||
#undef HAVE_HPUX_TRUSTED_SYSTEM_PW
|
#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/>) */
|
/* Defined if in_systm.h needs to be included with netinet/ip.h (HPUX - <sigh/>) */
|
||||||
#undef NEED_IN_SYSTM_H
|
#undef NEED_IN_SYSTM_H
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
#ifndef USE_PAM
|
#ifndef USE_PAM
|
||||||
|
|
||||||
RCSID("$Id: auth-passwd.c,v 1.19 2000/04/29 14:47:29 damien Exp $");
|
RCSID("$Id: auth-passwd.c,v 1.20 2000/05/20 05:03:00 damien Exp $");
|
||||||
|
|
||||||
#include "packet.h"
|
#include "packet.h"
|
||||||
#include "ssh.h"
|
#include "ssh.h"
|
||||||
|
@ -28,6 +28,11 @@ RCSID("$Id: auth-passwd.c,v 1.19 2000/04/29 14:47:29 damien Exp $");
|
||||||
#ifdef HAVE_SHADOW_H
|
#ifdef HAVE_SHADOW_H
|
||||||
# include <shadow.h>
|
# include <shadow.h>
|
||||||
#endif
|
#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)
|
#if defined(HAVE_MD5_PASSWORDS) && !defined(HAVE_MD5_CRYPT)
|
||||||
# include "md5crypt.h"
|
# include "md5crypt.h"
|
||||||
#endif /* defined(HAVE_MD5_PASSWORDS) && !defined(HAVE_MD5_CRYPT) */
|
#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
|
#ifdef HAVE_SHADOW_H
|
||||||
struct spwd *spw;
|
struct spwd *spw;
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef HAVE_GETPWANAM
|
||||||
|
struct passwd_adjunct *spw;
|
||||||
|
#endif
|
||||||
#ifdef WITH_AIXAUTHENTICATE
|
#ifdef WITH_AIXAUTHENTICATE
|
||||||
char *authmsg;
|
char *authmsg;
|
||||||
char *loginmsg;
|
char *loginmsg;
|
||||||
|
@ -99,6 +107,16 @@ auth_password(struct passwd * pw, const char *password)
|
||||||
pw_password = spw->sp_pwdp;
|
pw_password = spw->sp_pwdp;
|
||||||
}
|
}
|
||||||
#endif /* defined(HAVE_SHADOW_H) && !defined(DISABLE_SHADOW) */
|
#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')
|
if (pw_password[0] != '\0')
|
||||||
salt = pw_password;
|
salt = pw_password;
|
||||||
|
|
|
@ -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 <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#ifdef USER_PROCESS
|
||||||
/*
|
/*
|
||||||
* find first matching slot in utmp, or "-1" for none
|
* find first matching slot in utmp, or "-1" for none
|
||||||
*
|
*
|
||||||
|
@ -95,6 +96,13 @@ struct utmp * utp;
|
||||||
#endif
|
#endif
|
||||||
return(-1);
|
return(-1);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
int find_tty_slot( utp )
|
||||||
|
struct utmp * utp;
|
||||||
|
{
|
||||||
|
return(ttyslot());
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(HAVE_UTMPX_H) && defined(USE_UTMPX)
|
#if defined(HAVE_UTMPX_H) && defined(USE_UTMPX)
|
||||||
void
|
void
|
||||||
|
|
|
@ -110,6 +110,10 @@ case "$host" in
|
||||||
need_dash_r=1
|
need_dash_r=1
|
||||||
AC_DEFINE(USE_UTMPX)
|
AC_DEFINE(USE_UTMPX)
|
||||||
;;
|
;;
|
||||||
|
*-*-sunos4*)
|
||||||
|
CFLAGS="$CFLAGS -DSUNOS4"
|
||||||
|
AC_CHECK_FUNCS(getpwanam)
|
||||||
|
;;
|
||||||
*-*-sysv*)
|
*-*-sysv*)
|
||||||
CFLAGS="$CFLAGS -I/usr/local/include"
|
CFLAGS="$CFLAGS -I/usr/local/include"
|
||||||
LDFLAGS="$LDFLAGS -L/usr/local/lib"
|
LDFLAGS="$LDFLAGS -L/usr/local/lib"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Version of OpenSSH
|
# Version of OpenSSH
|
||||||
%define oversion 2.1.0p1
|
%define oversion 2.1.0p2
|
||||||
|
|
||||||
# Version of ssh-askpass
|
# Version of ssh-askpass
|
||||||
%define aversion 1.0
|
%define aversion 1.0
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
Summary: OpenSSH, a free Secure Shell (SSH) implementation
|
Summary: OpenSSH, a free Secure Shell (SSH) implementation
|
||||||
Name: openssh
|
Name: openssh
|
||||||
Version: 2.1.0p1
|
Version: 2.1.0p2
|
||||||
URL: http://www.openssh.com/
|
URL: http://www.openssh.com/
|
||||||
Release: 1
|
Release: 1
|
||||||
Source0: openssh-%{version}.tar.gz
|
Source0: openssh-%{version}.tar.gz
|
||||||
|
|
Loading…
Reference in New Issue