[ASP. NET]: An Alternative authentication source (LDAP verification, Windows verification ...)

Source: Internet
Author: User

 

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.