File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes LDAP, ADS and java API for same Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "LDAP, ADS and java API for same" Watch "LDAP, ADS and java API for same" New topic
Author

LDAP, ADS and java API for same

Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1526
Hi buddies,
I am to design a web-page (basically a servlet or JSP page) that accepts a username and pwd. The deal is to authenticate this user against the Active Directory Service which is basically on win 2003 server machine. Now hod do I achieve all this??? With a vision of core java programmer, I have something to ask and something to share...

1. ADS uses LDAP or to be more specific LDAP can be used to use ads services?
2. Are their built in API for LDAP services?
3. If no, does the implementation vary from platform to platform...
4. What is the difference between ADS and LDAP, will I be wrong if I say ADS is platform dependent and LDAP is much a protocol implementation?

Any ideas??? And I apologise to the moderators if my question is in the wrong thread for I am really unaware under which thread this should go in. Please channelise it in the right path.
[ April 20, 2006: Message edited by: Akhilesh Trivedi ]

Keep Smiling Always — My life is smoother when running silent. -paul
[FAQs] [Certification Guides] [The Linux Documentation Project]
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8836
    
    7

The Java Authentication and Authorization Service is a set of APIs that enable services to authenticate and enforce access controls upon users. Weblogic supports JAAS to LDAP and Active Directory servers (among others) and I'd think most application servers do the same. Consult your server's documentation for details on configuration and implementation.
If you want the bare-bones approach, one can directly access LDAP and AD trees using JNDI.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Heather Rose
Ranch Hand

Joined: Aug 25, 2008
Posts: 54
Sorry to bring up an old post, but I was wondering if you have found an answer to your problem? I am still working on mine, and I want to know the exact same thing. If you figured this out, please post!!
Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1526
Hi Heather, We had windows 2003 server and I did the page-designing work with .Net framework then, keeping the abstractions as is. All that was needed was a simple login page.
On the go I remember browsing around OpenLDAP but could not take it to work for me, there is one from Novell as well. I suspect if they both are same.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: LDAP, ADS and java API for same
 
Similar Threads
Java 5.0: How does cache pool thread reuse threads?
regarding JAXR
Whats a naming service?
(how to) Read entries from LDAP? getting server down error
Changing the LDAP provider