Article ID: 278836 - Last Review: July 7, 2008 - Revision: 6.1 ADSI GetObject queries may fail from ASP but work from VBScriptThis article was previously published under Q278836 We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 7.0 running on Microsoft Windows Server 2008. IIS 7.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site: http://www.microsoft.com/technet/security/prodtech/IIS.mspx
(http://www.microsoft.com/technet/security/prodtech/IIS.mspx)
For more information about IIS 7.0, visit the following Microsoft Web site: http://www.iis.net/default.aspx?tabid=1
(http://www.iis.net/default.aspx?tabid=1)
SYMPTOMS
If you attempt to use a GetObject query from an Active Server Pages (ASP) page to list the users in a particular group, the result set may be blank, although this same query returns data if it is run from Microsoft Visual Basic Scripting Edition (VBScript) code on the IIS server. Also, queries for groups or other objects that are run from an ASP page return data. For example, the following query returns an empty user list: CAUSE
This problem occurs if all of the following conditions are met:
WORKAROUND
Use the following methods to run the query. Use Basic or Clear Text as your authentication method. This allows IIS to pass the user's credentials to the domain controller. Note When you use Clear Text as your authentication method, you should also consider using Secure Sockets Layer (SSL) to secure the page. For more information about the RestrictAnonymous registry key, click the article number to view the article in the Microsoft Knowledge Base: 143474
(http://support.microsoft.com/kb/143474/
)
Restricting information available to anonymous logon users
| Article Translations
|
Back to the top
