The moss site also supports configuration methods for Windows integration verification and form verification (3)

Source: Internet
Author: User
Tags custom name connectionstrings

 

In the previous article, we set a new form verification provider for the Web application on port 81 of the site's image. Below we also need to modify its web. config file, so that the provider set by it can be used.

1. Go to the home directory of port 81 web application on the disk.

2. Copy a copy as a backup before modifying web. config.
  

3. Then, we will use visual studio2005 to modify its web. config file.
  

4. In the <system. Web> section of the web. config file, add the following configuration section:
  

<Connectionstrings>
<Add name = "spiritcustomservice" connectionstring = "LDAP: // moss"/>
</Connectionstrings>

"Spiritcustomservice" is a custom name and will be used in subsequent configuration sections. "Moss" is the name of the server.
  

5. Then, add the following configuration section in the <system. Web> section:
  

<Membership defaultprovider = "aspnetactivedirectorymembershipprovider">
<Providers>
<Add name = "aspnetactivedirectorymembershipprovider" type = "system. Web. Security. activedirectorymembershipprovider,
System. Web, version = 2.0.0.0, culture = neutral,
Publickeytoken = b03f5f7f11d50a3a"
Connectionstringname = "spiritcustomservice"
Connectionprotection = "secure"
Applicationname = "/_ layouts/login. aspx"
Connectionusername = "contoso \ wssadmin"
Connectionpassword = "ilovespirit"
Attributemapusername = "samaccountname"
Minrequiredpasswordlength = "7"
Minrequirednonalphanumericcharacters = "1"
Attributemapemail = "mail"
Requiresquestionandanswer = "false"
/>
</Providers>
</Membership>

Note: 1) do not write an error in the value of the name attribute, which must be the same as the name when setting the provider in the previous article.
2) The connectionstringname value must be the same as the name set in the connectionstrings section in the previous step.
3) The attributemapusername and attributemapemail values are all corresponding attribute names in AD.
4) The connectionusername and connectionpassword values are the account and password used for connection.
5) both minrequirepasswordlength and minrequirednonalphanumericcharacters are set group policies. Set them according to the actual settings.
  
Save the changes.
   

6. Finally, use IE and type http: // MOSS: 81 in the address box to enter the image site. Click "Log on" in the upper right corner To Go To The following logon page.
  
   
In this way, the client that is added to the domain can access the Web application on port 80 and enjoy the convenience of Windows integration verification. For various reasons, clients that are not added to the domain can also access port 81 through form verification. Here, I set the access in the Intranet region to form verification. In the same principle, we can also configure Form Verification for access in the Internet region of Internet users.

After you log on to the image site using the management account, you will find that the user does not have any management permissions.


In the next article, we will reset his permissions.

   

Related Article

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.