Mark/Vincent Looks like a configuration problem with server.xml here is a helpful link http://www.tccybersoft.com/docs/appserver/config/basic-realm.html if you can let us know what your JDBC Realm from server.xml looks like we'll take a look. Regards, -Martin
----- Original Message ----- From: "Vincent Massol" <[EMAIL PROTECTED]> To: "'Cactus Users List'" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, February 22, 2003 11:59 AM Subject: RE: Can't get authenticated using JDBC Realm > Hi Mark, > > I have personally never tried using the JDBC realm in Tomcat and I'm not > sure I can help you much. I can only tell you (as you already know) that > Cactus supports Basic and Form based authentications and this should be > completely independent on the underlying mechanism provided by the > container. > > I would say this is a setup issue but who knows. > > Thanks and sorry for not helping you much... > -Vincent > > > -----Original Message----- > > From: Mark [mailto:[EMAIL PROTECTED] > > Sent: 07 January 2003 21:37 > > To: [EMAIL PROTECTED] > > Subject: Can't get authenticated using JDBC Realm > > > > I'm new to Cactus and trying to get a grip on using it with Ant. > Cactus is > > a GREAT tool and everything was going fine - I was able to run a > servlet > > test case, and by following the Cactus 'Security Howto' I got > > authenticated > > using a Tomcat 4.1.12 Basic authentication and a Memory Realm. > However, > > using the same test case I'm not able to get authenticated using a > JDBC > > realm after modifying Tomcat's server.xml. I know the JDBC realm works > > since it's being used daily and I can use it interactively in our > > application. I verified the username/password I'm using in my > > ServletTestCase's BasicAuthentication() method and verified the > <Realm> > > information in my server.xml matches what's defined for the working > > application. > > > > The name of the realm in web.xml is "test realm". When I attempt to > run my > > test cases I get an http 401 error result, and in my cactus log I see > thes > > log4j messages: > > > > 15:23:57,587 [main] DEBUG httpclient.Authenticator - > > Authenticator.authenticate(HttpMethod, HttpState) > > 15:23:57,597 [main] DEBUG httpclient.Authenticator - Parsed > realm > > "test realm" from challenge "Basic realm="test realm"". > > 15:23:57,597 [main] DEBUG httpclient.Authenticator - > > Authenticator.basic(String,HttpState) > > 15:23:57,597 [main] INFO httpclient.Authenticator - No > credentials > > found for realm "test realm", attempting to use default credentials. > > 15:23:57,597 [main] DEBUG httpclient.HttpMethod - > > HttpMethodBase.execute(): Server demands authentication credentials, > but > > none are available, so aborting. > > > > Is there something I'm missing, or is using a JDBC realm not possible > with > > Cactus/Tomcat? I wanted our test cases to emulate real-life container > use > > as much as possible. > > > > Any help will be greatly appreciated. > > TIA > > > > > > -- > > To unsubscribe, e-mail: <mailto:cactus-user- > > [EMAIL PROTECTED]> > > For additional commands, e-mail: <mailto:cactus-user- > > [EMAIL PROTECTED]> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
