|
Doug G -> RE: Windows Authentication (6/6/2003 19:21:50)
|
You need to access the Windows filesystem to change these permissions. If you are on a hosted site, your host may need to make the changes for you, chmod doesn' t work on windows servers. If you have admin access to your server, open windows explorer and navigate to the folder where you want to force a windows login. This could be the root folder of your web, or a subfolder with the remainder of the web open for anonymous users. Open the properties page of Windows Explorer, click the security tab, and remove the IUSR_computername user account from the allowed user list. This assumes your web server is configured to use the IUSR_computername account for anonymous web surfers. This is the default mode for IIS, if you use a different user account for IIS anonymous use then remove the appropriate account from the security list. Here' s how it works. IIS needs to operate in some Windows user account context. If anonymous browsing is allowed, the special " Internet Guest Account (IUSR_computername)" account is used by IIS. If the web user browses to a folder or file that doesn' t allow the IUSER_nnn account in, IIS will present a network login prompt to your web user. The user can then enter their windows credentials. If they log on successfully, from that time until the browser is closed IIS will " impersonate" the login user account for all subsequent operations. This of course means that the login user must have permission to whatever files or folders they are trying to access, or there will be an error. Once the user is logged in, the request.servervariables(" LOGON_USER" ) will (usually) be populated with the windows username. I don' t use this often, but I' ve heard there can be circumstances where the logon username still isn' t reliable. Not 100% on this. One last note, if you have non-IE users you probably need to allow plain-text passwords in the IIS settings. Netscape et al doesn' t do Windows challenge-response authentication (or if they do it' s a recent addition).
|
|
|
|