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.