To work around this problem, use either of the following methods.
Method 1: Configure IIS for Basic Authentication Only
When you use Basic/Clear Text Authentication, IIS can delegate your credentials to the remote server. For this to function correctly, configure the following security options in IIS:
- Disable Anonymous access.
- Enable Basic/Clear Text authentication.
- Disable Digest authentication.
- Disable NTLM or Windows Integrated authentication.
To configure IIS for Basic/Clear Text Authentication, refer to the documentation for your version of IIS.
For additional information about how to configure this on Windows 2000, click the article number below
to view the article in the Microsoft Knowledge Base:
262233�
IIS: How to Configure Basic/Clear Text Authentication for IIS 5.0 in Windows 2000
Method 2: Configure a Null Session Share
WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may
require you to reinstall your operating system. Microsoft cannot guarantee that you can solve
problems that result from using Registry Editor incorrectly. Use Registry Editor at your own
risk.
WARNING: The following procedure creates a file share that has no security settings and, therefore, allows anyone anonymous network access to your remote database. Microsoft does not recommend that you use this procedure if you have a production environment or an Internet-based Web server.
A Null Session Share allows anyone to anonymously connect to a database. Therefore, you should store the database in a
hidden share. To configure a Null Session Share to allow access to the database on the remote server, follow these steps:
- Create a hidden share to hide your database:
- On the remote server, log on locally as an administrator.
- Right-click the Start button and then click Explore. Create a folder to host your database. For example, create a folder called
C:\InetPub\WebData$
NOTE: A dollar sign ("$") at the end of the file name will help create a hidden share.
For increased security, use a unique name for the folder, such as C:\InetPub\Cv5Mq0Qa$. - Copy your database to the new folder.
- Right-click the new folder and click Sharing on the menu that appears.
- Choose the option to share the folder.
- Hide the share. To do this, give the share a name that ends with a dollar sign ("$"). For example, name the share WebData$.
Or, for increased security, name the share using a random name, such as, Cv5Mq0Qa$. - Click OK.
- Quit Windows Explorer.
- Configure the hidden share as a Null Session Share:
- Start Registry Editor (Regedt32.exe).
- Select the following registry subkey:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters
- Select the NullSessionShares Name value and then click Multi-string on the Edit menu.
- Type the hidden share name. For example, type WebData$.
- Click OK.
- Quit Registry Editor.
- Restart the server.
When you create a system DSN from the IIS web server to the database on the remote server, use the path to the hidden share name. For example, use \\servername\WebData$.