Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
    Bookmark Topic Watch Topic
  • New Topic

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

 
Wal Samaad
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • 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
 
Rob Spoor
Sheriff
Posts: 21044
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • 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.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question to multiple forums: CarefullyChooseOneForum
 
Rob Spoor
Sheriff
Posts: 21044
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • 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.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!