aspose file tools*
The moose likes Security and the fly likes Active Directory Authentication using java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "Active Directory Authentication using java" Watch "Active Directory Authentication using java" New topic
Author

Active Directory Authentication using java

jerry conosm
Greenhorn

Joined: Sep 09, 2003
Posts: 10
Hi All,

Has anyone of you have done authentication using java and ms active directory? I'm a newbie in this area of Java and our client requires that there web application be authenticated using their ms active directory. I appreciate if you can share some code to do this.

Thanks in Advance.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39535
    
  27
AD can act as an LDAP server, and as such be accessed via JNDI.

Some links on using AD for authentication be found in this thread.


Ping & DNS - updated with new look and Ping home screen widget
jerry conosm
Greenhorn

Joined: Sep 09, 2003
Posts: 10
Hi Ulf,

I looked at this thread and it seems that they are discussing authentication using JAAS and AD. What I need is an LDAP way of accessing Active Directory. Do you know if there are threads that discuss LDAP authentication using AD.

I appreciate any help.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39535
    
  27
I have no idea, but I bet the Search link does
mih ira
Greenhorn

Joined: Sep 30, 2008
Posts: 10


mihira
Dale Seng
Ranch Hand

Joined: Mar 22, 2004
Posts: 275
I'm not sure the code that's posted answers the OP's question. The code shows that "user" and "password" are built into the LDAP context to "bind" to the LDAP data. That's step 1. Step 2 would be to USE that context to determine if any random user/password pair in that context are valid.

--Dale--
 
Consider Paul's rocket mass heater.
 
subject: Active Directory Authentication using java
 
Similar Threads
How to secure web resources by using MS Active Directory as LDAP Server?
Authenticate User against Windows Directory.
JOSSO integration with servlet
Certificate contains unsupported critical extensions: [2.5.29.17]
what are the different LDAP connecting mechanisms ?