Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I've created a custom STS and have setup trust with SharePoint via New-SPTrustedIdentityTokenIssuer. I can use Central Admin to configure a Web Application to use both NTLM and the STS, however I can't do that via PowerShell.

Is there a PowerShell command to do that? Set-SPWebApplication has the AuthenticationMethod and AuthenticationProvider parameters, but if I specify both, only AuthenticationProvider is applied, i.e. Windows Authentication is unticked.

Any help greatly appreciated!

Thanks

share|improve this question
    
This similar question might be of some help to you: sharepoint.stackexchange.com/questions/34938/… –  Thomas Vochten Feb 20 '13 at 9:59
    
Thank you! I was missing the fact you can comma separate authentication providers. –  SPDuFeu Feb 25 '13 at 9:57
add comment

1 Answer 1

up vote 3 down vote accepted

In case this helps anyone else (or me in the future) you can do this with:

$winAp = new-SPAuthenticationProvider -UseWindowsIntegratedAuthentication
$stsAp = Get-SPTrustedIdentityTokenIssuer "YourSTS"
Set-SPWebApplication -Identity $webApp -AuthenticationProvider $stsAp, $winAp -Zone "Default"
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.