aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes LDAP Security Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "LDAP Security" Watch "LDAP Security" New topic
Author

LDAP Security

Ali Hassaan
Ranch Hand

Joined: May 16, 2001
Posts: 103
Hi Ranchers,
I am currently working on a financial application. Developed in JSP & Servlets.
Act. we hav another application for automating our branches we called it Branch Banking System (BBS). In BBS all userids and passwords are saved in LDAP(Lightweight Directory Access Protocol).
Now application i am developing needs to be authenticate through same LDAP. I need to knw how can i authenticate it via Java.. Do we have ne APIs for it.
robyne vaughn
Ranch Hand

Joined: Jun 04, 2003
Posts: 38
You can access LDAP using JNDI. Check the forum under Other API's and search for JNDI. If the LDAP you're using is Active Directory, you'll have some additional considerations. Look thru your search for help with your specific LDAP server. I know very little about it(JNDI, LDAP), but I found some help there. If you get really desperate, give a hollar and I can show you a little ditty that hits Active Directory, but it is incomplete and I can't find the rest of the answer to its problem. I've abandoned it for now and will return to it later. Good luck.
Robyne
robyne vaughn
Ranch Hand

Joined: Jun 04, 2003
Posts: 38
Oops! Actually, JNDI is covered under the forum EJB and other J2EE ...
sorry,
Robyne
Joel McNary
Bartender

Joined: Aug 20, 2001
Posts: 1824

As robyne pointed out, this really belongs in the J2EE forum, so I'm moving it there....


Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
How to use LDAP depends on what application server you're using. If you're using WebLogic or WebSphere you don't have to write any code -- the vendors provide LDAP authentication for you. If you're using Tomcat, then you'll have to do some work on your own.
Kyle


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
 
Consider Paul's rocket mass heater.
 
subject: LDAP Security