My knowledge of claims is weak so please forgive me if something doesn't make sense.
When I try to log in to the SharePoint site using claims, I get the error:
Unknown SPRequest error occurred. More information. 0x80070005
Which is an Access Denied error to my understanding.
Fiddler loses all sight of my connection during the SSL tunnel to the TIP, so I get no clues from Fiddler.
The commands I used to set up the TIP are as follows:
$cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2
("C:\myCert.pem")
New-SPTrustedRootAuthority -Name "Vordel Gateway Token Signing Root Authority"
-Certificate $cert
$map1 = New-SPClaimTypeMapping
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"
-IncomingClaimTypeDisplayName "EmailAddress" -SameAsIncoming
$realm = "urn:myRealm.com"
$signinurl = "https://mySigninURL/sharepointSSO"
$ap = New-SPTrustedIdentityTokenIssuer -Name "Vordel" -Description
"Vordel Gateway Issuing SAML Token" -Realm $realm -ImportTrustCertificate
$cert -ClaimsMappings $map1 -SignInUrl $signinurl
-IdentifierClaim $map1.InputClaimType
After setting up the cert I checked in Central Admin | Security | Manage Trusts and the certificate is there.
I ensured that the Portal Super Reader and Super user accounts had the proper web application user policies applied. Then I ran the following Powershell:
$wa = Get-SPWebApplication -Identity "http://serverName"
$wa.Properties["portalsuperuseraccount"] = "i:0#.w|MyDomain\mySU"
$wa.Properties["portalsuperreaderaccount"] = "i:0#.w|MyDomain\mySR"
$wa.Update()
When I assign permissions to the site, I can search for users available through the TIP so I know I can hit the provider.
I know that I can see the XML returned by the TIP with all the claim info. The error occurs once the claim is redirected back to SharePoint.
http://SITE_URL/_trust/. Anything in the ULS logs? – Per Jakobsen Nov 1 '12 at 20:39http://myServer/SharePoint prompts me to select Windows authenication or my custom provider here:http://myServer/_login/default.aspx?ReturnUrl=%2f_layouts%2fAuthenticate.aspx%3fSource%3d%252F&Source=%2FI am redirected to this address (I can see the XML claim [SAML?])https://mySigninURL/sharepointSSO?wa=wsignin1.0&wtrealm=urn%3amyRealm.com&wctx=http%3a%2f%2fmyServer3%2f_layouts%2fAuthenticate.aspx%3fSource%3d%252FFinally, I am redirected here but I get a 500 error.http://myServer/_layouts/Authenticate.aspx?Source=%2F– James Grizzle Nov 1 '12 at 20:58Unknown SPRequest error occurred. More information. 0x80070005error – James Grizzle Nov 1 '12 at 21:01PermissionMask check failed. Asking for 0x00010000, have 0x00000000. So I turned on anonymous access just to check. Now I get absolutely no hint of an error in ULS but I still get a 500 error if I try to authenticate via the Vordel provider. – James Grizzle Nov 2 '12 at 15:00