SharePoint dual-Authentication

Source: Internet
Author: User

1. Change SQL to sa for access

Alter login SA enable
Alter login SA with Password = 'China _ Sa'

----------------------------------------------

 

 

1. Expand Web Applications
Choose "Management Center> application" from the management center.ProgramManagement> create or expand web applications> extend existing Web Applications"
In "extend web applications to other IIS websites", select create an IIS website and select a new port number: 81;
Enable Anonymous Access, and set the Server Load balancer URL to Moss: 81. Select "Internet" for the region (or others, mainly for later verification programs)
Web Application Extensions are different access methods for the same database, but the locations of website physical files are independent. If some custom functions are implemented on the original website, re-deployment after expansion.
Does not automatically extend the user-defined functions ".

2. Configuration verification provider
Choose "Management Center"> "Application Management"> "verify the provider ".
Select the moss application, and you will see two lines of providers. One is "default", the other is "Internet", and the provider is windows;
Select Internet for modification;
In "Management Center> Application Management> Verification provider> edit Verification", change the verification type to "form" and check "enable Anonymous access ", enter"
Aspnetsqlmembershipprovider ", enter" aspnetsqlroleprovider "in the role manager name"
Currently, website 80 and 81 are both ad user authentication and form identity authentication;

3. Modify the Web. config file
Open the Web. config file on websites 81 and 80, which can be found in IIS;
Join the connectionstrings, membership, and rolemanager sections,
Connectionstrings is written in <configuration>,
Membership and rolemanager are written in <system. Web> as follows:

<Connectionstrings>
<Remove name = "aspnetsqlprovider"/>
<Add name = "aspnetsqlprovider" connectionstring = "Server =.; database = user; trusted_connection = true"/>
</Connectionstrings>
The connectionstrings section is used to create a database connection string;
Membership, rolemanager defines the provider Information. Note that in. NET 2.0, the provider type is sqlprovider, and in Moss, it is changed to system. Web. Security. sqlmembershipprovider.

<Membership defaultprovider = "aspnetsqlmembershipprovider">
<Providers>
<Remove name = "aspnetsqlmembershipprovider"/>
<Add connectionstringname = "aspnetsqlprovider" passwordattemptwindow = "10" temperature = "false" enablepasswordreset = "true" temperature = "true" applicationname = "/" requiresuniqueemail = "false" passwordformat =" hashed "Description =" stores and retrieves membership data from the Microsoft SQL Server database "name =" aspnetsqlmembershipprovider "type =" system. web. security. sqlmembershipprovider, system. web, version = 2.0.3600.0, culture = neutral, publickeytoken = b03f5f7f11d50a3a "/>
</Providers>
</Membership>
<Rolemanager enabled = "true" defaultprovider = "aspnetsqlroleprovider">
<Providers>
<Remove name = "aspnetsqlroleprovider"/>
<Add connectionstringname = "aspnetsqlprovider" applicationname = "/" Description = "stores and retrieves roles data from the local Microsoft SQL Server database" name = "aspnetsqlroleprovider" type = "system. web. security. sqlroleprovider, system. web, version = 2.0.3600.0, culture = neutral, publickeytoken = b03f5f7f11d50a3a "/>
</Providers>
</Rolemanager>
After modifying the Web. config file, you can achieve two-way authentication access;

4.formverification: stores user information in a data database. In this case, you must create a data database and use aspnet_regsql.exe with sql2005to create an aspnetdb database.
Aspnet_regsql.exe is in the c: \ windows \ Microsoft. NET \ framework \ v2.0.50727 directory.

Use the following program to add several users

Http://files.cnblogs.com/kasafuma/CreateUser.rar

5. Authorize form Authentication Users
In "Management Center> Application Management> Web application policy", add a user, select "Internet", add a user for form authentication, and select "full control ";
6. enable Anonymous Access;
Use the form to authenticate the user name to log on to the 81 website. In "website Settings> permissions> Anonymous Access", select "entire website ";

 

Bytes ---------------------------------------------------------------------------------------------

 

 

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.