Advertisement

06.06.2008 at 12:40AM PDT, ID: 23462928
[x]
Attachment Details

JAASRealm to use LdapLoginModule in Tomcat

Asked by arunec in Apache Tomcat Application Server

Tags: JAVA, IE

Hi All,

I am trying to configure JAASRealm in Tomcat and use Java 6's LdapLoginModule to authenticate and authorize users against LDAP. My requirement is to bind with LDAP using a userid from one branch and thereon authenticate using userid from a different branch. LDAP is configured not to allow non-anonymous bind.

Here is my configuration.

Server.xml

--------------------------------------------------------------------------------

<Realm className="org.apache.catalina.realm.JAASRealm" appName="TEST" />

JAAS Config
--------------------------------------------------------------------------------
 
TEST {
com.sun.security.auth.module.LdapLoginModule REQUIRED
userProvider="ldap://localhost:389/ou=employee,dc=test,dc=com"
authIdentity="uid={USERNAME},ou=employee,dc=test,dc=com"
};

The user i am trying to authenticate belongs to ou=employee,dc=test,dc=com and the user that i am trying to bind belongs to mycompany branch in the LDAP.

Is there a way to configure bind userid & password directly in the JAAS config ? Start Free Trial
 
 
[+][-]06.06.2008 at 09:10AM PDT, ID: 21730362

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.07.2008 at 11:10PM PDT, ID: 21737674

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.07.2008 at 11:13PM PDT, ID: 21737681

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.09.2008 at 01:24AM PDT, ID: 21741670

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.11.2008 at 09:16AM PDT, ID: 21761606

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Apache Tomcat Application Server
Tags: JAVA, IE
Sign Up Now!
Solution Provided By: arunec
Participating Experts: 1
Solution Grade: C
 
 
[+][-]06.11.2008 at 01:30PM PDT, ID: 21763919

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]06.15.2008 at 04:43AM PDT, ID: 21788192

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628