• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Any one implement LDAP Authorization in Struts2?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I am new to the Struts2 Framework. I need to implement LDAP Authorization logic in to my existing web application using Struts2 framework. Basically I need to verify user Id existence in LDAP and forward to Login page if success.

I would really appreciate some feedback/help here.
 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I faced the similar problem some time back and found solution by following instruction of this tutorial(video presentation) http://alextch.members.winisp.net/TomcatAndAD/TomcatAndAD.html. You may also find some help with this tutorial.
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you want to do authorization yourself, JNDI makes it possible to bounce credentials off an LDAP server.
JAAS may be another option, though I've never used it.
I prefer to rely on the container for authentication and authorization. You will have to look at your server's documentation for how to configure it to talk to the LDAP server. Here is the relevant documentation for Tomcat. You then use your web.xml to declare what security roles have access to your application. See here for more on that.
 
permaculture is giving a gift to your future self. After reading this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic