Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Websphere and the fly likes Help needed! regarding Global Security settings and Virtual hosts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Help needed! regarding Global Security settings and Virtual hosts" Watch "Help needed! regarding Global Security settings and Virtual hosts" New topic
Author

Help needed! regarding Global Security settings and Virtual hosts

Raghava Prasad
Greenhorn

Joined: Feb 05, 2003
Posts: 3
Hi all,
This is more a beginners question, so pardon me if I am not being lucid.
I have setup a IBM WAS 5.0 server with Domino 5 LDAP as the Authentication registry. So the current situation is I am able to authenticate against an LDAP registry, any user accessing a secure resource in a prototype application (say, App1).I am using Form-based Login/Logout. Say the url for the app is "http://www.xyz.com/*.jsp"
Now I want to setup a virtual host on the same server where I would like to host another prototype application(say, App2) and I want the URL to be say, "http://www.abc.com/*.jsp".
The reason for virtual hosts is to make the user visit two different locations for accessing these two apps.....(duh..?)
App1 and App2 dont have anything in common as far as the functionality goes, but I would like to use the same LDAP registry for authentication.
Here are my questions:
1. Will the Global security settings work for both the virtual hosts and applications
2. Is the LDAP authentication domain dependant?
I would be glad if any of you can give some answers and/or put me on the right track, if you feel I am doing something unrealistic...
Thanks in advance.
David Hibbs
Ranch Hand

Joined: Dec 19, 2002
Posts: 374
Originally posted by Raghava Prasad:

App1 and App2 dont have anything in common as far as the functionality goes, but I would like to use the same LDAP registry for authentication.
Here are my questions:
1. Will the Global security settings work for both the virtual hosts and applications
2. Is the LDAP authentication domain dependant?

That's a heck of a beginner's question.
I can't answer #1, but #2 depends on how you use LDAP, what you put in it, etc. I would think that you can do it without a problem.
My only warning is to beware configuring virtual hosts. There's a "feature" (according to IBM) where, by default, you cannot specify a JSP as a welcome page on a web app located at a root of / on a virtual host. You can override this though by adding a SimpleFileServlet to your web app.
Good luck!


"Write beautiful code; then profile that beautiful code and make little bits of it uglier but faster." --The JavaPerformanceTuning.com team, Newsletter 039.
Raghava Prasad
Greenhorn

Joined: Feb 05, 2003
Posts: 3
Originally posted by David Hibbs:

That's a heck of a beginner's question.
I can't answer #1, but #2 depends on how you use LDAP, what you put in it, etc. I would think that you can do it without a problem.
My only warning is to beware configuring virtual hosts. There's a "feature" (according to IBM) where, by default, you cannot specify a JSP as a welcome page on a web app located at a root of / on a virtual host. You can override this though by adding a SimpleFileServlet to your web app.
Good luck!

David,
Thanks for replying to my post, LDAP is being used only for Basic Authentication(as of now), (may be LDAP based roles in the future)
I did not know about the feature you told me, I am using index.jsp as the Welcome Page and it seems to be working ok. I dont remember adding a SimpleFileServlet, but thanx for bringing it up, I will keep a tab on it.
Please post a reply if you come across any other information in this forum or anywhere.
Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help needed! regarding Global Security settings and Virtual hosts