|
|
## Mapping configuration
|
|
|
|
|
|
|
|
|
In the SharePoint 2010 Management Console
|
|
|
|
|
|
|
|
|
First load the custom Powershell snapin
|
|
|
* Add-PSSnapin ClaimsSignInAdmin
|
|
|
|
|
|
Create a configuration object. Note: the url is the url of your web application
|
|
|
* $config = Get-SPSignInConfiguration -webapplication "http://www.website.com"
|
|
|
|
|
|
### Managing the mappings
|
|
|
|
|
|
#### View all mappings
|
|
|
* $config.ProviderMappings
|
|
|
|
|
|
#### Add a mapping
|
|
|
* $config.ProviderMappings.Add("192.168.20.*","Windows Authentication")
|
|
|
* $config.Update()
|
|
|
|
|
|
#### Remove a mapping
|
|
|
* $config.ProviderMappings.Remove("192.168.20.*")
|
|
|
* $config.Update()
|
|
|
|
|
|
#### Clear all mappings
|
|
|
* $config.ProviderMappings.Clear()
|
|
|
* $config.Update()
|
|
|
|
|
|
### Example: configure 192.168.0.* to use Windows authentication for the web application https://intranet.litwareinc.com
|
|
|
|
|
|
* Add-PSSnapin ClaimsSignInAdmin
|
|
|
* $config = Get-SPSignInConfiguration -webapplication "https://intranet.litwareinc.com"
|
|
|
* $config.ProviderMappings.Add("192.168.20.*","Windows Authentication")
|
|
|
* $config.Update()
|
|
|
|
|
|
## Configure the sign in page
|
|
|
|
|
|
In the SharePoint 2010 Central Administration<br />>
|
|
|
Manage Web Applications -> Select web application -> Authentication Providers -> Select zone (Default)<br />
|
|
|
Scroll down to **Sign In Page URL** <br />
|
|
|
Select Custom Sign In Page <br />
|
|
|
Enter _login/autosignin.aspx
|
|
|
|
|
|
|
|
|
![Configure sign in page](Configuration_signinpage.png)
|
|
|
|
|
|
|