Author |
Topic  |
|
AnonJr
Moderator
    
United States
5768 Posts |
Posted - 14 December 2005 : 11:50:43
|
The site is currently running on a Win2K based server on the company intranet. I do great with coding, design, and that sort of stuff. The server admin. thing is what most of your consultants would call "a growth area" 
Can someone please explain to me (in simple-ish terms) the different authentication modes for IIS? (5 I think - whatever shipped with Win2K)
I know the "Anonymous Access", its the others that I'm just not getting. I've gone to the MSDN and read everything I could find until I was cross-eyed.
On a related note, I'd like to know if its possible to enable the "Basic" (or whatever best fits my needs) and the "Anonymous" at the same time. I'd like to be able to use the NT Authentication and check for generic accounts. If its a generic account, switch to DB authentication; otherwise, continue using NT Authentication... Or something to that extent.
Thanks in advance. 
< Moved to Community Discussions (All other subjects) by Shaggy /> |
Edited by - Shaggy on 14 December 2005 12:00:29 |
|
pdrg
Support Moderator
    
United Kingdom
2897 Posts |
Posted - 14 December 2005 : 12:50:45
|
Just as an aside, did you try the technet stuff as opposed to MSDN stuff? More for admins than devs/architects, may be more helpful? Sorry, this really isn't my area...
|
 |
|
AnonJr
Moderator
    
United States
5768 Posts |
Posted - 14 December 2005 : 13:23:04
|
I hadn't thought of technet. I need to find a good IIS guru to buddy up with.
<sidenote> Originally I was a dual major in Net. Admin. and Programming over at FTCC (a wonderful school for those in the area looking for a 2-yr degree). But it was getting too hard to do both and work 40hrs at my night job. I had to decide between 2 semesters and finish one or the other. I chose programming. No regrets so far. I'm now making 3x what I made while going through school, I've bought a house, and I'm working on my BS over at Methodist (expensive, but they're the only ones in the area that have the concentration in graphics and multimedia). </sidenote> |
 |
|
Podge
Support Moderator
    
Ireland
3776 Posts |
Posted - 14 December 2005 : 15:03:27
|
I don't think you can enable both at the same time.
Create two websites in IIS, one called "basic" with basic authentication and the other called "windowsAuth" with Windows Authentication. Both websites in IIS can point to the same folder or location. Every user should go to the "Basic" website first.
On the "Basic" website include code like this in an include file on every page.
if Request.ServerVariables("LOGON_USER") = "" then
'do nothing, display a login box or do cookie/db authentication
else
response.redirect("http://localhost/windowsAuth")
end if
The above code will not account for every eventuality but you should get the idea.
If an un-authenticated user goes to the WindowsAuth website they will be presented with a login box automatically (which will not allow them to enter). You may be able to change your 403 error page to redirect them to the Basic website.
|
Podge.
The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)
My Mods: CAPTCHA Mod | GateKeeper Mod Tutorial: Enable subscriptions on your board
Warning: The post above or below may contain nuts. |
Edited by - Podge on 14 December 2005 15:05:25 |
 |
|
makman9
Starting Member
Turkey
1 Posts |
Posted - 15 December 2005 : 10:09:24
|
Thanks for your answers.
|
Mehmet AKMAN Web Tasarýmý |
 |
|
AnonJr
Moderator
    
United States
5768 Posts |
Posted - 15 December 2005 : 10:19:15
|
Podge, I'll look into that. I've been kinda sidelined right now, and I've put that up in a new post. This issue has become contingent on the new one.  |
 |
|
HuwR
Forum Admin
    
United Kingdom
20600 Posts |
Posted - 15 December 2005 : 11:04:17
|
security is also set at directory level, so you can give anonymous access to the root of your website and protect individual directories using different authentication, however you wouldn't normally mix them, you would choose one or the other depending on your situation, generaly basic for web and ntauth for intranet |
 |
|
|
Topic  |
|