• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to configure only one login-config in an app with two war files ? (LDAP sign on)

 
Rogerio Kioshi
Ranch Hand
Posts: 690
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi people,

I have an application (ear file) witch is composed by two war files and a jar (for EJBs). I used LDAP authentication configured declaratively. It is working fine, but I have to configure each war with their own login pages. Each web.xml must have their own <login-config>, and I have a login.jsp page for each war.
Is there a way to put the login page in just a war file, and configure the other war file to find this login page on the first .war ?

The way I'm using now, if I have to change something in the login page I'll have to configure it twice.
 
Rogerio Kioshi
Ranch Hand
Posts: 690
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've found what I was looking for: created a new Struts Action, where I wrote response.sendRedirect(url). Also changed web.xml <login-config>, where I call the url related to my Action.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic