Click here to Skip to main content
12,512,068 members (54,183 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

9.2K views
Posted

Search Server 2010 and Claims Based Authentication

, 23 Jul 2010 CPOL
Rate this:
Please Sign up or sign in to vote.
How to get around access denied error with Search Server 2010 and claims based authenticated web application

Problem


If you install Search Server Express 2010 on a SharePoint farm that has a web application using claims based authentication, you will get access denied in Central Administration when trying to manage the search service application.

Solution


To work around this issue, the user logged in to Central Administration must be added with permissions directly on the claims based authenticated web application. This cannot be done in the central administration UI even if ntlm authentication is enabled on the web application. The claims based user is not perceived by SharePoint as the user logged on to the windows authenticated Central Administration, i.e. 'i: 0#.w|domain\user' is not the same as 'domain\user'.

Use the following powershell script to add the windows authenticated user to the web application:
[void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
$site = new-Object Microsoft.SharePoint.SPSite("http://SitesCBA.domain.no")
$wa = $site.WebApplication
$user = "domain\user"
$policy = $wa.Policies.Add($user, $user)
$policy.PolicyRoleBindings.Add($wa.PolicyRoles.GetSpecialRole(
[Microsoft.SharePoint.Administration.SPPolicyRoleType]::FullControl))
$wa.Update() 
$site.Dispose() 

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Tore Olav Kristiansen
Technical Lead Collabora AS
Norway Norway
My name is Tore Olav Kristiansen and I am a developer. I am passionate about making coherent people-friendly solutions.

I have worked as a software engineer for 16 years, the last 10 mostly on the SharePoint platform. I am the founder of Collabora and Collabora Apps.

I have a masters in computer science from the University of Stavanger, Norway.

You may also be interested in...

Pro
Pro

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160929.1 | Last Updated 23 Jul 2010
Article Copyright 2010 by Tore Olav Kristiansen
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid