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
Manage Web Applications -> Select web application -> Authentication Providers -> Select zone (Default)
Scroll down to Sign In Page URL
Select Custom Sign In Page
Enter _login/autosignin.aspx

Configure sign in page


Last edited Jun 30, 2010 at 4:46 PM by melg, version 5

Comments

yihaa5 Aug 27, 2015 at 4:03 AM 
"Configure the sign in page" can be done via PowerShell script as per below:
Set-SPWebApplication "<webappurl>" -Zone "e.g. Intranet" -SignInRedirectUrl "/_login/autosignin.aspx'

godind Dec 8, 2011 at 9:14 PM 
To set a custom login page for a specific provider:
$config.SingInPageMappings.Add("<provider name Display Name>","<path>")
$config.Update()

To set the default login page (the page that will be used if no IP match) use default as key value:
$config.SingInPageMappings.Add("default","<path>")
$config.Update()