Hi,
   I am new at this so please be patient with me !!! Ok I am trying to get
Tomcat to work with Oracle's LDAP implementation (OiD) for authentication
purposes. I just wanted to know if anyone has ever tried this. I cant get it
to work ! 
 In the <REALM> tag in server.xml what I have is as follows:

<Realm className="org.apache.catalina.realm.JNDIRealm" debug="99"
connectionName="cn=orcladmin" connectionPassword="welcome"
connectionURL="ldap://LdapServer:389"; roleBase="dc=roles,dc=com"
roleName="tomcat" roleSearch="(uniqueMember={0})" roleSubtree="false"
userPassword="userPassword" userPattern="cn={0},dc=com"/>

and my web.xml file is as follows:

        <security-constraint>
                <display-name>Example Security Constraint</display-name>
                <web-resource-collection>
                        <web-resource-name>Protected
Area</web-resource-name>
                        <!-- Define the context-relative URL(s) to be
protected -->
                        <!--
<url-pattern>/jsp/security/protected/*</url-pattern> -->
                        <url-pattern>/*</url-pattern>
                        <!-- If you list http methods, only those methods
are protected -->
                        <http-method>DELETE</http-method>
                        <http-method>GET</http-method>
                        <http-method>POST</http-method>
                        <http-method>PUT</http-method>
                </web-resource-collection>
                <auth-constraint>
                        <!-- Anyone with one of the listed roles may access
this area -->
                        <role-name>organizationalRole</role-name>
                        <role-name>roles</role-name>
                        <role-name>tomcat</role-name>
                </auth-constraint>
        </security-constraint>
        <!-- Default login configuration uses form-based authentication -->
        <login-config>
                <auth-method>BASIC</auth-method>
                <realm-name>Example BASIC Authentication Area</realm-name>
        </login-config>
        <!-- Security roles referenced by this web application -->
        <security-role>
                <role-name>organizationalRole</role-name>
        </security-role>
        <security-role>
                <role-name>roles</role-name>
        </security-role>
        <security-role>
                <role-name>tomcat</role-name>
        </security-role>

The authentication box comes up when I navigate to my application site but
it cannot authenticate. Has anyone ever tried Oracle and Tomcat before? And
yes I have Users and Roles under OiD assigned. 
Any help will be greatly appreciated.
Thanks
Adil

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to