Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Sep 1997 00:26:39 -0500 (CDT)
From:      Jimbo Bahooli <griffin@blackhole.iceworld.org>
To:        freebsd-hackers@freebsd.org
Subject:   Patch to sshd to maintain consistency when using libwrap.
Message-ID:  <Pine.BSF.3.96.970901002120.196A-100000@blackhole.iceworld.org>

next in thread | raw e-mail | index | archive | help
	This patch to sshd only affects it when using libwrap.  One would
expect sshd to log accepted connections just as tcpd, but that is not that
case until this patch is added.  A long term solution I see is to add an
opposite to refuse() to libwrap that will provide logging as refuse()
does.


--- sshd-old.c	Tue Apr 22 19:40:08 1997
+++ sshd.c	Mon Sep  1 00:01:20 1997
@@ -1020,7 +1020,14 @@
 		    request_init(&req, RQ_DAEMON, av0, RQ_FILE, newsock, NULL);
 		    fromhost(&req);
 		    if (!hosts_access(&req))
-		      refuse(&req);
+			    {
+				    refuse(&req);
+			    }
+			  else
+			    {
+				    syslog(allow_severity,"connect from %s", eval_client(&req));	    
+			    }
+			  
 		  }
 #endif /* LIBWRAP */




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.970901002120.196A-100000>