File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Security and the fly likes Authenticate user against MS active directory in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "Authenticate user against MS active directory in Java" Watch "Authenticate user against MS active directory in Java" New topic
Author

Authenticate user against MS active directory in Java

Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 666
I need to authenticate user against MS active directory in my servlet application. Has anyone done this? Can you point me to some resources?
Thanks!


BJ - SCJP and SCWCD
We love Java programming. It is contagious, very cool, and lot of fun. - Peter Coad, Java Design

Crazy Bikes created by m-Power
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41068
    
  43
I think AD supports LDAP, which can be used from Java via the JNDI API. Your servlet container may have provisions for doing that automatically for authenticating users, e.g. Tomcat has the JNDIRealm.

http://wiki.java.net/bin/view/Javapedia/ActiveDirectory has a lot of information about using AD from Java.


Ping & DNS - my free Android networking tools app
Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 666
Thanks for the link!
I will take a look.

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Authenticate user against MS active directory in Java
 
Similar Threads
Tomcat with windows Active directory
Authenticate User against Windows Directory.
Tomcat with windows Active directory
User Authentication against window active directory
Regarding Kerberos Authenication And Windows Active Directory.