tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerome moliere <jmoli...@nerim.net>
Subject Re: What LDAP servers does JNDI realm support? -
Date Thu, 09 Oct 2003 08:44:23 GMT
Equipment Lamp wrote:

>Hi
> 
>Can youguys give some input on the following. I am using the following
> 
>Tomcat: 4.1.27-LE-jdk14
>Apache: 2.0.47
>Java : 1.4.2
>Linux OS: 7.3
>iPlanet LDAP Server
> 
>I am trying to configure LDAP authentication mechanism to my application. 
> 
>1) In this regard i have downloaded the latest JNDI API and then copied the ldap.jar file
to $CATALINA_HOME/server/lib directory.
> 
>2) The i have added the following entry to the server.xml file.
> 
>       <Realm className="org.apache.catalina.realm.JNDIRealm"
>               connectionURL="ldap://ldap.mycompany.com:389"
>               userBase="ou=active,ou=employees,ou=people,o=mycompany.com"
>               userSearch="(uid={0})"
>               roleSearch="(uniqueMember={0})"
>               roleName="cn"
>               debug="99"
>               contextFactory="com.sun.jndi.ldap.LdapCtxFactory"
>               />
> 
>3) In my application "web.xml" file i have added the following
> 
>   <security-constraint>
>    <web-resource-collection>
>      <web-resource-name>Nrt</web-resource-name>
>      <url-pattern>/*</url-pattern>
>    </web-resource-collection>
>    <auth-constraint>
>      <role-name>*</role-name>
>    </auth-constraint>
>    </security-constraint>
>    <login-config>
>    <auth-method>BASIC</auth-method>
>    <realm-name>CEC</realm-name>
>    </login-config>
>
>
>But authentication is not working, any debug techniques or methods will be a great help.
>  
>
have you any log entries or anything helpful ?
classnotfound exception or something like this woulmd be great (easy to fix)

Jerome



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message