Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Section 6 - Security - BASIC Authentication ?

 
Dumitru Husleag
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I didnt managed to make an working example. This is my security section from web.xml:

With this the application sends always a HTTP404 . If I delete it the app works ok but of course there is no authentication.
In fact I would like to know how to make working all types of authentication.
If you know how to do it or a good tutorial with working examples please help.
I intend to take my exam in about 2 weeks so I am a little bit pressed
 
Tieyi Guo
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<user-data-constraint> <transport-guarantee>INTEGRAL</transport-guarantee> </user-data-constraint>

You may try to use "None" in your "transport-guarantee" segment. I believe "Integral" or "Confidential" means using SSL and you may not having SSL configured when you run this example. If that is the case, then changing to "None" should help you solve the problem.
Hope this will be of some help to you.
Tieyi
 
Dumitru Husleag
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tieyi , I tried also with NONE for transport-guarantee and it doesnt solve the problem.
 
Tieyi Guo
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Two things I can think of at this moment:
1) If you are using the "tomcat-users.xml" file to store the user security role, then you need to make sure you have a role "manager" defined there before you access the page;
2) If you are using some other kind of security backstore like LDAP etc, then you probabaly need to define a "Relm" in your sever.xml file to make that work.

Tieyi
 
Tieyi Guo
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pardon me for my typo: I mean "Realm", not "Relm".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic