• Post Reply Bookmark Topic Watch Topic
  • New Topic

Security Issue

 
Raef Kandeel
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey ranchers,

I added the following :-



in two locations:

- in the web.xml in my web-app
- in the tomcat5.0/conf/web.xml

I was expecting the container to prompt me for the username and the password. Given that the container didn't prompt me for the username and the password, was I wrong to expect this?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
login-config by itself is not enough; you also need a security-constraint element. See http://faq.javaranch.com/java/ServletsFaq#security for more information.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!