DBY
Who's Online
0 registered (), 14 Guests and 4 Spiders online.
Key: Admin, Global Mod, Mod
Latest Photo Gallery
light pole in the water
Eastern State Penitentiary - Philadelphia
Top Posters (30 Days)
HarryB 13
FinalDJ 11
Anartist 11
Goofy 7
Fitzy 3
m2h 3
Meph 2
Doorslammer 1
Dough 1
Nightowl 1
Topic Options
#177482 - 12/31/10 09:15 PM What does "realm" refer to in authentication?
Mr_Blog Offline
human

Registered: 06/06/01
Posts: 13762
Loc: ${PWD}
It doesn't seem to matter what I use for this, as long as it's the same in both the server config and the authorization file, but I was wondering if someone could tell me what it actually means.

A web search brings up a lot of documentation about authorization, but no one seems to bother mentioning why realm is included rather than just a username and password.
_________________________
( o_
/ >) My 84-year-old non-techy mom uses Debian Linux. It ain't that hard.

Top
#177488 - 01/01/11 08:00 AM Re: What does "realm" refer to in authentication? [Re: Mr_Blog]
HarryB Offline
ghast hacker

Registered: 06/10/01
Posts: 18835
Loc: $$
The AuthName directive sets the Realm to be used in the authentication. The realm serves two major functions. First, the client often presents this information to the user as part of the password dialog box. Second, it is used by the client to determine what password to send for a given authenticated area.

So, for example, once a client has authenticated in the "Restricted Files" area, it will automatically retry the same password for any area on the same server that is marked with the "Restricted Files" Realm. Therefore, you can prevent a user from being prompted more than once for a password by letting multiple restricted areas share the same realm. Of course, for security reasons, the client will always need to ask again for the password whenever the hostname of the server changes.


if using apache
http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html#What_is_a_Realm?

it's one more level of security on webservers.
_________________________
I got your salvation b*tch

wanna go night night fool.

Top
#177494 - 01/02/11 06:00 AM Re: What does "realm" refer to in authentication? [Re: HarryB]
Mr_Blog Offline
human

Registered: 06/06/01
Posts: 13762
Loc: ${PWD}
Thanks for that. It makes a little more sense to me.
I'm going to assume that since my website is extremely minimal, serving only static pages, and the authentication is only for a couple of directories that share additional static content to a couple of people, I can leave it as is and just use an arbitrary string for the realm without being concerned about the complexities of its more advanced uses....which I may or may not ever have reason to use in the future.
_________________________
( o_
/ >) My 84-year-old non-techy mom uses Debian Linux. It ain't that hard.

Top



Moderator:  Doorslammer, Nightowl, NightShade, Rez 
Shout Box

Today's Birthdays
No Birthdays
May
Su M Tu W Th F Sa
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31