tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Probst" <andpr...@gmx.net>
Subject Re: Security question
Date Mon, 23 Sep 2002 11:55:01 GMT
Hi David,

if it weren't Apache I would say: try 
HttpServletRequest.getUserPrincipal().getName(). Maybe it could 
be that this also works with Apache...

Andreas


> I'm trying to retrieve the userid that logged into apache and accessed 
> the current JSP page.  How can I get this info?
> 
> Explanation: I'm implementing a very crude security system on my site 
> for right now (mainly to just keep people from accessing the email 
> addresses and photos on the site), but I need to implement a password 
> change page.  So what I did (and yes I know it's a hack 8), I 
> implemented a JNI interface to call htpasswd in the background.  I'm 
> trying to have an html page (that's in a secured area of course) post 
> the new password to a jsp page which will in turn retrieve the logged in 
> userID and call the interface class.
> 
> Any help would be appreciated,
>     David J
> -- 
> If you only compete with yourself,
>      you can always be a winner. - David Jenkins
> Of course, you could always be a loser too. - Miles Thornton
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
> 



--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message