Nevermind. I had a 401 page defined in web.xml, so it was being sent there instead of the browser. My mistake.
----- Original Message ----- From: "e-Denton Subscriber" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Saturday, October 23, 2004 4:06 PM Subject: BASIC authentication without Popup Verification window > Hi! > > I can't figure out why my BASIC authorization isn't working for my app. The > pages show up as 401 Not Authorized, but no popup authorization window pops > up! Further, the admin and manager apps are working using my JDBCRealm > (:Enter Password" window does pop up). Help appreciated. > > server.xml: > ----------- > <!-- > <Realm className="org.apache.catalina.realm.UserDatabaseRealm" > debug="0" resourceName="UserDatabase"/> > <Realm className="org.apache.catalina.realm.MemoryRealm" /> > --> > > <Realm resourceName="PortalDatabase" > className="org.apache.catalina.realm.JDBCRealm" > debug="99" > driverName="com.mysql.jdbc.Driver" > connectionURL="jdbc:mysql://127.0.0.1:3306/myDB" > connectionName="myUser" > connectionPassword="myPassword" > userTable="users" userNameCol="user_name" userCredCol="user_pass" > userRoleTable="user_roles" roleNameCol="role_name" /> > > web.xml: > -------- > <security-constraint> > <web-resource-collection> > <web-resource-name>Maintenance</web-resource-name> > <url-pattern>/maint/*</url-pattern> > <url-pattern>/maintenance.do</url-pattern> > </web-resource-collection> > <auth-constraint> > <role-name>manager</role-name> > </auth-constraint> > </security-constraint> > > <login-config> > <auth-method>BASIC</auth-method> > <realm-name>Portal</realm-name> > </login-config> > > <security-role> > <description>manager</description> > <role-name>manager</role-name> > </security-role> > > > --------------------------------------------------------------------- > 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]