Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Apache + Tomcat

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  apache1.3 + mod_become + mod_throttle -> criti..  
Author Message
nbehravan

External


Since: Jul 17, 2004
Posts: 3



(Msg. 1) Posted: Sun Jul 18, 2004 1:33 am
Post subject: Apache + Tomcat
Archived from groups: alt>apache>configuration (more info?)

Hi all,

I have configured Apache und Tomcat with mod_jk. I can get in Tomcat the
logged on user with getReomteUser(). Is there a way to get the groups of
user too?

Thanks in advance
Nader Behravan

 >> Stay informed about: Apache + Tomcat 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Sun Jul 18, 2004 11:01 am
Post subject: Re: Apache + Tomcat [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Nader Behravan <nbehravan.RemoveThis@hotmail.com> wrote:
 > logged on user with getReomteUser().

Which user? If someone contact your web server from remote he can
not exists on the local machine, if you implemented a login functionality
is your login.

Davide


--
| If you stand on your head, you will get footprints in your hair.
|
|
|<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Apache + Tomcat 
Back to top
Login to vote
nbehravan

External


Since: Jul 17, 2004
Posts: 3



(Msg. 3) Posted: Mon Jul 19, 2004 11:32 pm
Post subject: Re: Apache + Tomcat [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi, sorry I had to describe it a little more.
I have configured Apache to be secure (passwd and group file). So every one
who wants to call a url, has to enter a name and password. Beside that he
has to be in one or more groups. This works properly. On the other end (by
Tomcat) I can get the user name (who logged on in Apache) with the method
getRemoteUser() (of request). I wonder, if I can even get the group
Infromation of user (groups that I have configured in group file).

I hope it's clear now.
Nader Behravan

"Davide Bianchi" <davideyeahsure.RemoveThis@onlyforfun.net> schrieb im Newsbeitrag
news:2lup2dFh77bmU4@uni-berlin.de...
 > Nader Behravan <nbehravan.RemoveThis@hotmail.com> wrote:
  > > logged on user with getReomteUser().
 >
 > Which user? If someone contact your web server from remote he can
 > not exists on the local machine, if you implemented a login functionality
 > is your login.
 >
 > Davide
 >
 >
 > --
 > | If you stand on your head, you will get footprints in your hair.
 > |
 > |
 > |<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Apache + Tomcat 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 4) Posted: Tue Jul 20, 2004 2:25 pm
Post subject: Re: Apache + Tomcat [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Nader Behravan <nbehravan.RemoveThis@hotmail.com> wrote:
 > Tomcat) I can get the user name (who logged on in Apache) with the method
 > getRemoteUser() (of request). I wonder, if I can even get the group
 > Infromation of user (groups that I have configured in group file).

Ok, so the 'users' and 'groups' are not system user/group but are defined
in some passwd file managed trought htpasswd functionality, right? Then
I'm afraid that there is nothing to do. If Apache doesn't transfert those
info the only thing you can do is to implement your own utility or to
switch to a different authentication scheme database-based (LDAP,
MySQL, PostGRe, wathever), then you should be able to collect those info
querying the database.

See the documentation of TomCat.

Davide

--
| Everybody lies, but it doesn't matter since nobody listens.
|
|
|<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Apache + Tomcat 
Back to top
Login to vote
nbehravan

External


Since: Jul 17, 2004
Posts: 3



(Msg. 5) Posted: Wed Jul 21, 2004 1:09 am
Post subject: Re: Apache + Tomcat [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks

Nader

"Davide Bianchi" <davideyeahsure.DeleteThis@onlyforfun.net> schrieb im Newsbeitrag
news:2m4dp2FiqhqlU3@uni-berlin.de...
 > Nader Behravan <nbehravan.DeleteThis@hotmail.com> wrote:
  > > Tomcat) I can get the user name (who logged on in Apache) with the
method
  > > getRemoteUser() (of request). I wonder, if I can even get the group
  > > Infromation of user (groups that I have configured in group file).
 >
 > Ok, so the 'users' and 'groups' are not system user/group but are defined
 > in some passwd file managed trought htpasswd functionality, right? Then
 > I'm afraid that there is nothing to do. If Apache doesn't transfert those
 > info the only thing you can do is to implement your own utility or to
 > switch to a different authentication scheme database-based (LDAP,
 > MySQL, PostGRe, wathever), then you should be able to collect those info
 > querying the database.
 >
 > See the documentation of TomCat.
 >
 > Davide
 >
 > --
 > | Everybody lies, but it doesn't matter since nobody listens.
 > |
 > |
 > |<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Apache + Tomcat 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Tomcat vs. Apache. - Hi everyone. I need to develop a JSP project, and I'm thinking about implement it in Tomcat server. I'm an Apache's fan, because of the quality of the logs it produces. I think that Tomcat's logs are not so goog. Do i have a way to get Tomcat logs closer...

Tomcat. 4.1.18 and Apache 2.0.49 - does it work together? if so, how? robert

Tomcat 5 for Apache 2 - Hi NG, I'm quite new to server related topics. Now I'm trying to build a server for educational purposes that can run java-servlets. So I picked Tomcat 5 and the JK2-connector but cannot find the right configuration to bind them (Tomcat & Apac...

tomcat and apache - i've just set up tomcat and apache on my mandrake linux box. i'm wondering how i get apache and tomcat to work together so that when someone comes to a html page it is handled by apache, then when it encounters a jsp page, tomcat handles that. where..

SSI + Apache + Tomcat - Hi All, Background: Here we have an Apache 2 server sitting in front of Tomcat 4, communicating via mod_jk2. Problem: We have a standard header and footer that we want applied to every out going page, both static apache files and JSP\servlet. Is...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]