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

Authentication mechanism and code procedure from web app to an LDAP server

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hello, i have posted a couple of entries here with regards to authenticating to an LDAP server and some of the members are thinking, i am an hacker/cracker of a sort. Please could anyone tell/show me how to write the code for authentication from users on a web app to an LDAP server. I have a web app written already but users entries are stored in an LDAp server, i need to authenticate user from that dirctory, what do i do and how am i suppose to strcuture the code. I am using JAVA EE, MySQL server and a Sun Directory Enterprise Edition LDAP server. thanks
 
Sheriff
Posts: 22781
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
What web server are you using? Apache Tomcat? If so, check out JCIFS and their NtlmHttpFilter. I've used this at work myself; here is part of the web.xml file:
This works with all major browsers (Internet Explorer 6-8, Firefox, Chrome, Safari, Opera) in both Windows XP and Windows 7, although the security settings of the latter may need to be tweaked a little to get it to work with Internet Explorer 8. Internet Explorer won't even ask for a login.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Please do not post the same question to multiple forums: CarefullyChooseOneForum
 
Rob Spoor
Sheriff
Posts: 22781
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator

Ulf Dittmer wrote:Please do not post the same question to multiple forums: CarefullyChooseOneForum


Right. Let's stick to the one in JSP. Closing this one.
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic