• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Authentication with LDAP

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i want to know how to automate users authentication from ldap data store rather than from the server realm?i know how to use ldap(openldap) and ofcourse the JNDI API but is there any mapping tool in the sun application server to the ldap DIT initial context and the searching controls , filters and son on to ease this process?
 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think is no you need to create login page through this login.
You can use the JNDI API in your pages if the user right will work well rather than you need catch the exception.
 
Bartender
Posts: 1638
IntelliJ IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am not sure what you mean by "automating user authentication" and mapping tool.
However, if you want to do ldap authentication from java, then this tutorial trail will be a good point to start.

Using JNDI to connect to LDAP is in itself an easy process and I am not sure what further tools you are looking for.

By the way this post will probably belong to the Security forum.
[ May 12, 2008: Message edited by: Nitesh Kant ]
 
hisham ragheb
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I am not sure what you mean by "automating user authentication" and mapping tool.



ok..i mean when you want to deploy a web application that use a FORM login page you have to supply the action=j_security_check and both properties names for the username and password must be j_username and j_password..my point is that this type of authentication uses the file Realm of the web container which means i have to edit the editor and add users in this file(tomcat-users.xml is an example)..so this nonsense if i have a website that accept members..i can store users info using JNDI with LDAP but..how to map the authentication to the LDAP entries...how i can say that j_username in the FORM authentication page will be mapped to "cn" attribute in ldap?and also how to map j_passwaord to ldap attribute "userPassword"?
 
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
You can configure Tomcat to use LDAP for container-managed security as described here.
 
hisham ragheb
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Joe Ess:
You can configure Tomcat to use LDAP for container-managed security as described here.




Thank you alot Joe Ess..it was very useful and exactly what i want.

[ May 12, 2008: Message edited by: hisham ragheb ]
 
I'm just a poor boy, I need no sympathy, because I'm easy come, easy go, little high, little low, little ad
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic