Implement ad-based Moss form Authentication

Source: Internet
Author: User
Tags ldap connectionstrings

The previous article reviewedMossForm AuthenticationThis section describes howAdAuthenticated Users also adopt the form logon mode. Believe that you have just playedMossPeople will thinkMossThe system login is so disgusting.WindowsThe login pop-up box shows no vitality at all. So over time, the login box mode was changed. Before that, the information in this area was also released on the Internet. I will use details to guide my friends who have just been in touch with this part to better complete the work.

First open the application to be configuredProgramWebconfig is the same as webconfig in the management center.

At the top of <system. Web>, Add. (In "LDAP: // mosingserver", replace the mosingserver name with your own name ..)

1 < Connectionstrings >
2 < Add name = " Adconnectionstring " Connectionstring = " LDAP: // mosingserver "   />
3 </ Connectionstrings >

Add the connectionname and connectionpassword in <system. Web> ...)

 

1 < Membership defaultprovider = " Admembership " >
2 < Providers >
3 < Clear />
4 < Add name = " Admembership " Type = " System. Web. Security. activedirectorymembershipprovider, system. Web, version = 2.0.0.0, culture = neutral, publickeytoken = b03f5f7f11d50a3a " Connectionstringname = " Adconnectionstring " Connectionusername = " Mosing \ Administrator " Connectionpassword = " Pass @ word1 " Attributemapusername = " Samaccountname "   />
5 </ Providers >
6 </ Membership >

Save the modified configuration file.

Next, open Moss Management Center -> Application Management -> Verify the provider 80 Application ).

The default value isWindowsAuthentication mode. Click [Default]

Select a form and enter the name of the member identity Provider (note that this name must be consistent with yourWebconfigSame .)

Click Save. The provider name is the one you just entered.

Enter80The port site is changed to the form verification login mode.

However, users cannot log in now. Then go to the Management Center-> WebApplication Policy->Add a user (selectWebApplication)

Click User search (Book-shaped icon) to searchAdministrator. The account name is changedAdmembership: Administrator .(The prefix is the name of the membership provider we entered above.)

Click OK

Complete. You can see the newly added user.

Go to Management Center->Application Management->Website set owner. You can see beforeWindowsAuthentication SettingsMosing "AdministratorNo matching is found. Click the search icon again and enterAdministratorFindAdmembership: Administrator.Click OK.

Open the website and enter the user name directly. Administrator Just now ( Remember not to enter the previous domain user Mosing \ Administrator Or enter Admembership: Administrator In both cases, an error is reported. Prompt username and password Error !)

Careful netizens may find that the previous system user login directly displays "Welcome system user", and now it becomes "welcome ".Administrator].You can also use this administrator to add new users with different permissions. This section is now complete.

 

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.