----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Hi,
... it would be nice to be able to do this directly, as you stated. But I
think you can already make this work, albeit via a detour, by using a
database based authentication mod for Apache, and by modifying the
database through JDBC. for mySQL, you can find the mod and the JDBC driver
to try it out...
APACHE ---- MOD_AUTH*
| |
JSERV database
| |
servlet ---------- JDBC
e-gret,
D
Stefan Mainz wrote:
> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files. Don't make us guess your problem!!!
> ----------------------------------------------------------------
>
> As we all know now we can restrict access to servlets via the
> <Location> directiy in .htaccess.
>
> But is there something like the opposite? I would like to authorise
> a user by a servlet. As i do not want to serv ordinary html-pages by a
> servlet i would like to tell the apache server that the user is
> authenticated und may access pages in a certain realm.
>
> In theory i would have to set some header information, but don't know
> which ones. Has anyone tried this before?
>
> Stefan
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://java.apache.org/main/mail.html>
> Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]