Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


September 2000

IIS Informant

RSS
Subscribe to Windows Web Solutions | See More Active Server Pages (ASP) Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

Download the Code Here

I have a Web server running on machine A. I want pages from this Web server to be able to write information to sections of the file system from machine B. I'm using NT 4.0 with SP5 and IIS 4.0, and I've turned off Anonymous access. Both machines are in the same domain. I create a virtual directory on A, point it at the proper location on B, and supply a name and password as prompted. Everything works, except that anyone who accesses this directory has the permissions of the name and password I specified during the creation of the virtual directory. Can I use the NT permissions I applied to the original resource to control user access?

Before I answer your question, I must warn you that my solution involves enabling pass-through authentication for IIS 4.0, which Microsoft doesn't recommend and therefore doesn't support. Enabling pass-through authentication lets you achieve your goal, but it's likely to have side effects (e.g., Microsoft Index Server won't be able to index the virtual directory). There is a sunny side here, however: Microsoft built this capability into IIS 5.0 and, as far as I can tell, supports the configuration in that version.

Before you make these adjustments, be sure to back up your metabase. You also need to determine the Web site number assigned to the site in the metabase, which you can easily do using MetaEdit. MetaEdit comes with the Microsoft Windows 2000 Resource Kit (IIS 5.0) or the Microsoft Internet Information Server Resource Kit (IIS 4.0). (Be sure to use the new version of MetaEdit—MetaEdit 2.1. The Microsoft article "FILE: How to Download, Install, and Uninstall the IIS MetaEdit 2.1 Utility" (http://support.microsoft .com/support/kb/articles/q232/0/68 .asp) provides both information and the tool for download.

In IIS 5.0, the code in Listing 1 enables pass-through authentication on a virtual directory called Protected in the default Web site. You need to substitute the correct Web site number for 1 and the name of the virtual directory for Protected.

Next, you must enable an authentication mode that supports remote access to resources, which means you must use one of these modes:

  • Anonymous with IIS control password disabled
  • Basic
  • Integrated Windows (only if your users all use IE 5.0 on Win2K systems; otherwise, this won't work)
  • Certificate Mapping (IIS 5.0 version, not Windows Mapper)

In IIS 4.0, here's how you enable pass-through authentication:

  1. Enable an authentication mode that supports remote access to resources, which means you must use either
    • Basic
    • Anonymous with Automatic Password Synchronization turned off
  2. Locate the adsutil.vbs utility script, which is usually in the \winnt\sys
    tem32\inetsrv\adminsamples directory.
  3. At a command prompt, type adsutil set w3svc/#/root/*vdir*/UNCUserName#=<the Web site number in the metabase>. (You can use MetaEdit to identify this number. Vdir is the name of the virtual directory you're trying to affect.)
  4. Repeat Step 3, but type adsutil set w3svc/#/root/*vdir*/UNCPassword.
  5. Repeat Step 3, but type adsutil set w3svc/#/root/*vdir*/UNCAuthenticationPassThrough TRUE.
  6. Type net stop iisadmin /y.
  7. Type net stop start w3svc.

As a result of this procedure, you'll see an error in the Microsoft Management Console (MMC) associated with this virtual directory. However, the procedure will work. Note that any changes you make to the virtual directory through the MMC overwrite your modifications. Please remember—Microsoft neither supports nor recommends this configuration in IIS 4.0.

End of Article

   Previous  1  2  [3]  Next  


Reader Comments
I am running iis 4.0 and am experiencing connection problems to one of my websites on it. The website is www.snowboard.com (ip 64.114.6.30), it is running in it own memory space and we have set the number of connections to be unlimited. The errors seem to appear randomly and really hurt our website because it becomes unusable. An example of what happens is:

1)I am surfing snowboard.com, our website that is having problems and the pages seem to be serving quickly.
2)When I click on a link to get a new page, I receive microsofts dns error page.
3)I ping the www.snowboard.com and it works fine. So this must mean that the dns request is resolving correctly. I try to connect to snowboard.com through port 80 using telnet and get connection refused.
4)I try connecting to other sites that we host and they are fine.
5)Eventually after refreshing the page a bunch of times, sometimes I have to wait up to 5 minutes, the website will serve the page I requested. No Sesseions are lost during this time but it seems like no additional connections can be made.

It almost seems like port 80 is being closed for some reason and then opens again.

Have you ever seen a problem like this before? Is it a problem with iis or a networking problem? Please help as we have been stumped on this for months.

Adam Arsenault December 04, 2001


You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
The Memory-Optimization Hoax

Don't believe the hype. At best, RAM optimizers have no effect. At worst, they seriously degrade performance. ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

WinInfo Short Takes: Week of November 24, 2008

An often irreverent look at some of the week's other news, including a Vista Capable dismissal request, Zune price reductions, Morrow musings, Novell and Microsoft sitting in a tree ... two years later, Yahoo!, IE 6 on Windows Mobile, and so much more ...


Related Events Virtualization Management

Virtualization for Mission-Critical BI with SQL Server

Securely Extend SharePoint to the Extranet

Check out our list of Free Email Newsletters!

IIS and Web Administration eBooks Keeping Your Business Safe from Attack: Monitoring and Managing Your Network Security

Related IIS and Web Administration Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing