• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Section 6 - Security - BASIC Authentication ?

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Pardon me for my typo: I mean "Realm", not "Relm".
 
If you try to please everybody, your progress is limited by the noisiest fool. And this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic