Article ID: 254787 - Last Review: January 9, 2007 - Revision: 3.2 How to dynamically choose authentication scheme using ISAPI filter in IISThis article was previously published under Q254787 On This PageSUMMARY This step-by-step article describes how to write an
Internet Server API (ISAPI) filter that permits you to specify the
authentication method for a user based on the user Internet Protocol (IP)
address. For example, in Internet Information Server (IIS), you can use the Windows NT Challenge/Response authentication for clients who come from an internal corporate network and, at the same time, allow clients from the Internet to be authenticated through Basic authentication. Note This article assumes that you are familiar with the following topics:
Authentication schemesThis article describes the authentication method in the context of IIS, which supports Windows NT Challenge/Response (NTLM) and Basic authentication. IIS 5.0 and 5.1 also allow Digest authentication and then replaces Windows NT Challenge/Response authentication with Integrated Windows authentication. The corresponding HTTP WWW-Authenticate header authentication schemes follow.Collapse this table
Write an ISAPI filterTo write an ISAPI filter that permits you to specify the authentication method for a user based on the user IP address, perform the following steps:
Note You cannot specifically remove or change built-in IIS authentication protocols on the SF_NOTIFY_ACCESS_DENIED event. As a result, you cannot dynamically select the authentication scheme with an access denied notification handler. REFERENCES
For more information on ISAPI filter DLLs, click the following article numbers to view the articles in the Microsoft Knowledge Base:
150312
(http://support.microsoft.com/kb/150312/
)
How to install an ISAPI filter dynamic-link library
183480
(http://support.microsoft.com/kb/183480/
)
How to debug ISAPI DLLs in IIS 4.0, IIS 5.0, IIS 5.1, and IIS 6.0
For more information about how to develop ISAPI
extensions and filters, visit the following Microsoft Developer Network (MSDN)
Web site: http://msdn2.microsoft.com/en-us/library/ms525321.aspx
(http://msdn2.microsoft.com/en-us/library/ms525321.aspx)
| Article Translations
|

Back to the top
