summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorsimonb <simonb>1999-03-02 02:25:52 +0000
committersimonb <simonb>1999-03-02 02:25:52 +0000
commit525afb5627d162745328ed0d5a0e63308b81eb78 (patch)
treee381a172b3d9cb38020168feb5c4a08c493c9d34 /security
parent29ce0b5a74c663efaddea29ae77004cf70b46ee5 (diff)
downloadpkgsrc-525afb5627d162745328ed0d5a0e63308b81eb78.tar.gz
Support TIS authentication if USE_TIS=YES.
Remove extra "Challange" word from displayed challenge - the challenge string from authsrv already has it. XXX: No TIS fwtk package yet...
Diffstat (limited to 'security')
-rw-r--r--security/ssh/Makefile7
-rw-r--r--security/ssh/patches/patch-am39
2 files changed, 45 insertions, 1 deletions
diff --git a/security/ssh/Makefile b/security/ssh/Makefile
index 544157a134c..5b23eb7e74b 100644
--- a/security/ssh/Makefile
+++ b/security/ssh/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.40 1999/02/20 22:48:42 hubertf Exp $
+# $NetBSD: Makefile,v 1.41 1999/03/02 02:25:52 simonb Exp $
# FreeBSD Id: Makefile,v 1.47 1997/11/10 22:04:42 dima Exp
#
@@ -65,6 +65,11 @@ DEPENDS+= socks5-1.0.2:../../net/socks5
.endif
.endif
+# Enable support for TIS authentication server
+.if defined(USE_TIS) && ${USE_TIS} == YES
+CONFIGURE_ARGS+= --with-tis=${LOCALBASE}
+.endif
+
# Don't install "ssh" setuid
.if !defined(SSH_SUID) || ${SSH_SUID} != YES
CONFIGURE_ARGS+= --disable-suid-ssh
diff --git a/security/ssh/patches/patch-am b/security/ssh/patches/patch-am
new file mode 100644
index 00000000000..de6f1a0f311
--- /dev/null
+++ b/security/ssh/patches/patch-am
@@ -0,0 +1,39 @@
+$NetBSD: patch-am,v 1.1 1999/03/02 02:25:53 simonb Exp $
+
+--- sshd.c.orig Tue Mar 2 12:24:50 1999
++++ sshd.c Tue Mar 2 12:25:46 1999
+@@ -2510,7 +2510,7 @@
+
+ if (!strncmp(buf, "challenge ", 10) ||
+ !strncmp(buf, "chalnecho ", 10)) {
+- sprintf(prompt,"Challenge \"%.100s\": ",&buf[10]);
++ sprintf(prompt,"%.100s" ,&buf[10]);
+ debug("TIS challenge %s", buf);
+ packet_start(SSH_SMSG_AUTH_TIS_CHALLENGE);
+ packet_put_string(prompt, strlen(prompt));
+--- configure.in.orig Thu Jul 9 02:41:10 1998
++++ configure.in Tue Mar 2 12:46:58 1999
+@@ -909,8 +909,8 @@
+ fi
+ AC_MSG_RESULT(Assuming TIS headers and libraries are in $withval.)
+ AC_DEFINE(HAVE_TIS)
+- CFLAGS="$CFLAGS -I$withval -DHAVE_TIS"
+- LIBS="-L$withval -lauth -lfwall $LIBS"
++ CFLAGS="$CFLAGS -I$withval/include -DHAVE_TIS"
++ LIBS="-L$withval/lib -lauth -lfwall $LIBS"
+ AC_MSG_WARN(Remember to read README.TIS. The connection between sshd and TIS authentication
+ server is clear text!)
+ ;;
+--- configure.orig Tue Mar 2 12:55:14 1999
++++ configure Tue Mar 2 12:58:22 1999
+@@ -6605,8 +6605,8 @@
+ #define HAVE_TIS 1
+ EOF
+
+- CFLAGS="$CFLAGS -I$withval -DHAVE_TIS"
+- LIBS="-L$withval -lauth -lfwall $LIBS"
++ CFLAGS="$CFLAGS -I$withval/include -DHAVE_TIS"
++ LIBS="-L$withval/lib -lauth -lfwall $LIBS"
+ echo "configure: warning: Remember to read README.TIS. The connection between sshd and TIS authentication
+ server is clear text!" 1>&2
+ ;;