Preface
In the previous blog, we learned how to configure forms authentication for SharePoint 2013. But joining the user is a hassle; in fact, we are also able to use the ASP. NET Configuration tool to add form users to SharePoint 2013, let's take a brief introduction below. How to operate.
Open Visual Studio. New project, select the ASP. NET Web Application type. For example, with:
Click OK to go to the Select Template page. For example, with:
Create complete, double-click Open Web. config, for example:
Join the database connection string, the connection is our form authentication database, do not write wrong, for example:
Join membership and rolemanager, which are basically consistent with previous configurations, such as:
Open a command-line tool and run the iisexpress command, for example:
Iisexpress/path:c:\windows\microsoft.net\framework\v4. 0.30319\asp. Netwebadminfiles/vpath:"/asp. Netwebadminfiles" /port:8002 /clr:4.0 /NTLM
Run complete. Effects such as:
Open in the browser for example the following address:
Http://localhost:8002/asp.netwebadminfiles/default.aspx?applicationphysicalpath=[project postion]& applicationurl=/
[Project Postion] is the path inside the location bar. Copy it down and you can;
Be able to discover access to the NET Configuration tool, for example by:
Go to provider and select one of our providers, for example by:
Choose the configuration we can, remember to save. For example, with:
Click Security and select the authentication type, for example:
Choose what we have labeled. For example, with:
Then we are able to create the user, for example by:
Fill in username, password, email address, click Create, for example:
Create a complete, for example:
Go to the database to find out if you have inserted into the database, for example:
Login with the form users we created and find the login successful!
Summary
Such a net way to create a form user, said the simple fact that the configuration is also very troublesome, their own toss a half-day to configure the pass, special attention to the command line in the space; Of course, if the user, we still develop a set of users to manage the page bar.
SharePoint 2013 Forms authentication uses the ASP. NET Configuration tool to join users