s/key authentication for Apache on FreeBSD?
bruce at nikkel.com
bruce at nikkel.com
Thu Dec 11 02:16:18 PST 2003
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
--
More information about the freebsd-security
mailing list