Powershell SharePoint Kerberos New-SPWebApplication

时间:2012-05-24 10:04:45

标签: sharepoint powershell sharepoint-2010 kerberos

不工作 - 创建新网站时,是集成安全性 - NTLM:

$ap = (New-SPAuthenticationProvider)
$ap | fl
$ap.DisableKerberos = $false
$ap | fl *
Start-Sleep -s 10

New-SPWebApplication -Name $WebAppName -Port $WebAppPort -HostHeader $WebAppHostHeader -URL ("http://" + $WebAppHostHeader) -ApplicationPool $WebAppAppPool -ApplicationPoolAccount (Get-SPManagedAccount $WebAppAppPoolAccount) -DatabaseName $WebAppDatabaseName -DatabaseServer $WebAppDatabaseServer –AuthenticationProvider $ap -AuthenticationMethod Kerberos

2 个答案:

答案 0 :(得分:2)

$AP = New-SPAuthenticationProvider -UserWindowsIntegratedAuthentication
$AP | ft
$AP.DisableKerberos - $false
$AP.update
$AP | ft
$AppPoolAccount - Get-SPManagedAccount | where {$_.UserName -eq "domain\apppoolaccount"} 
$AppPoolAccount | ft -AutoSize
New-SPWebApplication -Name "MySPWebApp" -ApplicationPool "SPWebAppPool" -    ApplicationPoolAccount $AppPoolAccount -HostHeader "myspwebapp.domain.com" -Url http://myspwebapp.domain.com" -Port 80 -AuthenticationMethod Kerberos -AuthenticationProvider $AP

答案 1 :(得分:0)

这对我有用

$ap = New-SPAuthenticationProvider -UseWindowsIntegratedAuthentication
$ap.DisableKerberos = $false
New-SPWebApplication -Url http://localhost -Port 80  -ApplicationPool "Sharepoint 80" -AuthenticationMethod Kerberos -ApplicationPoolAccount "qatc\spadmin" -Name test -AuthenticationPovider $ap -AuthenticationMethod "Kerberos"