tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid...@pidster.com>
Subject Re: tomcat 5.5 DataSourceRealm not taken in charge
Date Thu, 21 Aug 2008 10:00:35 GMT
lmk wrote:
> hello all,
> 
> I try ti use tomcat security management with DataSourceRealm but I never get 
> authentication console, log shows that user 'Successfully passed all
> security constraints'
> I declare Realm inside server.xml:
> 
> <Realm className="org.apache.catalina.realm.DataSourceRealm"
> dataSourceName="jdbc/auth" userTable="USERS" userNameCol="login"
> userCredCol="password" />
> 
> and security constraints on web.xml
> 
> <security-constraint>
>   <display-name>TOMCAT SECURITY</display-name>
>   <web-resource-collection>
>    <web-resource-name>Entire Application</web-resource-name>
>    <url-pattern>/*</url-pattern>   
>   </web-resource-collection>

<auth-constraint>
  <role-name>someusertype</role-name>
<auth-constraint>

>  </security-constraint>
>  <login-config>
>   <auth-method>BASIC</auth-method>
>  </login-config>

<security-role>
  <role-name>someusertype</role-name>
</security-role>

p


> did  I forget anything..?
> 
> thanks!
> 
> 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message