tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From teknokrat <teknok...@yahoo.com>
Subject why is my security not working?
Date Fri, 22 Apr 2005 19:39:28 GMT
I have placed the following context file

<Context path="/myAdmin"
	cachingAllowed="false"
	cacheTTL="0"
	cacheMaxSize="0"
	swallowOutput="false"
	>
	
	<Realm className="org.apache.catalina.realm.UserDatabaseRealm" debug="5"/>
	
</Context>

and i have added to web.xml

	 <security-constraint>
     	<web-resource-collection>
       		<web-resource-name>Admin</web-resource-name>
       		<url-pattern>/myAdmin/*</url-pattern>
      	</web-resource-collection>
     	<auth-constraint>
         	<role-name>me</role-name>
     	</auth-constraint>
  	 </security-constraint>
	
	<login-config>
		<auth-method>BASIC</auth-method>
		<realm-name>Admin</realm-name>
	</login-config>
	
	 <security-role>
     	<description>The role</description>
     	<role-name>me</role-name>
   	</security-role>

Yet, I can still access the webapp without tomcat asking for a username 
and password. I have added the role and users to tomcat-users.xml too.

thanks


---------------------------------------------------------------------
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