• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

realm - what is the meaning ?

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone,

I find the term realm to be very confusing ...

1) The realm sent by a browser is a pair of user + password - right ?
2) realm also is the place where the authentication information is
stored, so the tomcat-users.xml is an example, right ?

So what is the story of <realm-name> in <login-config> element in DD ?
What is it used for ? Why do we need it ? What can we do with it ?

Cheers,

Adrian
 
Saloon Keeper
Posts: 27863
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The realm is the security context itself. In tomcat, you pick a realm type based on the authentication mechanism in use - jdbc, ldap, jaas, xml (your example), etc.
 
Adrian Sosialuk
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Tim,

Thanks for your reply.

OK - I thing I got it now. It looks like it's overloaded. Containers uses
realm with regards to policy domain (xml, LDAP, etc...) and HTTP uses it
with regards to the name of a resource in which the user is to be
authenticated - so that's that string which you set up in DD in
<realm-name> element (so it will pop up on the screen together with
other elements asking you for password). I think it works only with
BASIC authentication anyway ...

All the best.

Adrian
 
I can't renounce my name. It's on all my stationery! And hinted in this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic