Re: why is my security not working?

2005-04-22 Thread teknokrat
I should mention I am on tomcat 5.0.28
teknokrat wrote:
I have placed the following context file

cachingAllowed="false"
cacheTTL="0"
cacheMaxSize="0"
swallowOutput="false"
>





and i have added to web.xml
 

  Admin
  /myAdmin/*
 

me

  


BASIC
Admin


 
The role
me
  

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


why is my security not working?

2005-04-22 Thread teknokrat
I have placed the following context file





and i have added to web.xml
 

Admin
/myAdmin/*


me

 


BASIC
Admin


 
The role
me

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: why is my security not working?

2005-04-22 Thread teknokrat
Whew, that worked. Thanks!
Do I still need the realm setting in my context file or not? and should 
it refer to UserDatabaseRealm or MemoryRealm?

Mark Thomas wrote:
try:
 
   Admin
   /*
  
You don't need to include the context in your url patterns.
Mark
teknokrat wrote:
I have placed the following context file

cachingAllowed="false"
cacheTTL="0"
cacheMaxSize="0"
swallowOutput="false"
>



and i have added to web.xml
 

  Admin
  /myAdmin/*
 

me

  

BASIC
Admin

 
The role
me
  
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: why is my security not working?

2005-04-22 Thread Mark Thomas
try:
 
   Admin
   /*
  
You don't need to include the context in your url patterns.
Mark
teknokrat wrote:
I have placed the following context file

cachingAllowed="false"
cacheTTL="0"
cacheMaxSize="0"
swallowOutput="false"
>





and i have added to web.xml
 

  Admin
  /myAdmin/*
 

me

  


BASIC
Admin


 
The role
me
  

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]