I changed to use 5.5.27 (latest 5.5 version), and still have the same
problem.
I have set up my realm in my webapp's META-INF directory, like this:
<Context path="/test" reloadable="false">
<Realm className="org.apache.catalina.realm.JNDIRealm" debug="99"
connectionName="uid=admin,ou=system"
connectionPassword="secret"
connectionURL="ldap://localhost:10389"
digest="SHA"
allRolesMode="authOnly"
userPassword="userPassword"
userPattern="uid={0},ou=accounts,dc=test,dc=org"
roleBase="ou=groups,dc=test,dc=org"
roleName="cn"
roleSearch="(uniqueMember={0})"
useContextClassLoader="true"
/>
</Context>
I have no realms configured in my server.xml for Tomcat. But I still
get this error:
[java] May 19, 2009 10:33:01 PM org.apache.catalina.realm.JAASRealm
authenticate
[java] SEVERE: Unexpected error
[java] java.lang.SecurityException: Unable to locate a login
configuration
[java] at
com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:93)
[java] at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> I would guess your config is wrong.
What configuration piece could I be missing? I've been over the
server.xml and
my context.xml and don't see anything wrong. What should I look for?
Do I need to go to Tomcat 6? I'd rather not, but if I have to....
Thanks,
-- Greg
-----Original Message-----
From: Mark Thomas [mailto:[email protected]]
Sent: Monday, May 18, 2009 3:06 PM
To: Tomcat Users List
Subject: Re: Tomcat, <Realm>, and context.xml
Greg Allen wrote:
> I am trying to use ApacheDS 1.5 with Tomcat 5.5.17.
Try a later version. You may be hitting multiple bugs that have since
been fixed.
> Now this really confuses me. Why is it using JAASRealm? That's not
> configured
The JAAS Realm is the default Realm Tomcat falls back to if no other
Realm can be found. I would guess your config is wrong.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
__________________________________________________________________________________________________________________
DISCLAIMER:"The information contained in this message and the attachments (if
any) may be privileged and confidential and protected from disclosure. You are
hereby notified that any unauthorized use, dissemination, distribution or
copying of this communication, review, retransmission, or taking of any action
based upon this information, by persons or entities other than the intended
recipient, is strictly prohibited. If you are not the intended recipient or an
employee or agent responsible for delivering this message, and have received
this communication in error, please notify us immediately by replying to the
message and kindly delete the original message, attachments, if any, and all
its copies from your computer system. Thank you for your cooperation."
________________________________________________________________________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]