From owner-freebsd-security@FreeBSD.ORG Thu Dec 11 02:16:18 2003 Return-Path: Delivered-To: freebsd-security@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 932EB16A4CE for ; Thu, 11 Dec 2003 02:16:18 -0800 (PST) Received: from raven.bjn.net (raven.bjn.net [193.73.230.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 85A7E43D2B for ; Thu, 11 Dec 2003 02:16:14 -0800 (PST) (envelope-from bruce@nikkel.com) Received: (from bruce@localhost) by raven.bjn.net (8.11.7p1+Sun/8.11.7) id hBBAFpH28385; Thu, 11 Dec 2003 11:15:51 +0100 (MET) From: bruce@nikkel.com Date: Thu, 11 Dec 2003 11:15:51 +0100 To: Brett Glass Message-ID: <20031211101551.GA27435@nikkel.com> Mail-Followup-To: Brett Glass , James Welcher , Kyle Amon , security@freebsd.org References: <6.0.0.22.2.20031210115335.04c2fc50@localhost> <20031210093927.70c87960.amonk@gnutec.com> <6.0.0.22.2.20031210124332.04e94ac0@localhost> <16343.33321.632599.190251@oscar.buszard-welcher.com> <6.0.0.22.2.20031210173916.04f57be8@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6.0.0.22.2.20031210173916.04f57be8@localhost> User-Agent: Mutt/1.5.3i cc: Kyle Amon cc: security@freebsd.org Subject: Re: s/key authentication for Apache on FreeBSD? X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Security issues [members-only posting] List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Dec 2003 10:16:18 -0000 On Wed, Dec 10, 2003 at 05:47:00PM -0700, Brett Glass wrote: > >The problem with using s/key (or opie) together with http basic auth is > >the repetive nature of http requests. The webserver would expect see > >the basic authentication string with every single request. You would be > >promtped for your next onetime password for every single gif or link on > >the page requested. I don't know how practical that would be. > > If this is true, then I'd have to write a Perl authentication module > that called s/key once and authorized an IP until the user clicked > a "logout" button or a certain amount of time elapsed. So, I'd be > using mod_perl *and* PAM. A bit more complex, but I can do it if I must. > Are you sure that Apache will try to authorize again on every hit? If the basic auth string was not included in an http request, the webserver would generate a error 401 (Unauthorized). Check out RFC 2617 (HTTP Authentication: Basic and Digest Access Authentication). Bruce Nikkel --