Preface:
This document describes how to use a self-made CLK. Web library to implement ASP. NET convertible source verification.
The so-called alternative verification means different requirements can be met. Use ad to authenticate users, dB to authenticate users, or other authentication sources.
In the archive provided below, Windows verification and LDAP verification have been completed.
If you are interested, you can perform DB verification and other operations on your own.
(ArticleWindows verification is used)
Example:
Download file: clk.web.security.rar
1. Create an ASP. NET Project
2. Add CLK and CLK. Web reference
3. Add global. asax and modify
4. Add and modify web. config.
Use Windows Authentication and reject anonymous users. If you want to use LDAP to verify the Active Directory, modify the. config settings.
5. Add login. aspx and modify it.
6. Add default. aspx and modify it.
7. Create a local account
Account: Clark-PC \ Clark
Password 1234
8. Failed Login
9. Log in correctly
ProgramCodeAuthorization:
The program code is authorized by MIT license.