To test out the migration of a site from SharePoint 2010 to 2013, I needed to convert a test environment web application to claims authentication to prepare for the move. However, to prove out my methodology and make sure I had the process down, I converted the web app back to classic authentication in order to repeat my steps. I’ve found a number of sites that explain how to do this, but have yet to find it all consolidated into one post. So here’s what I’ve found.
- First of all, using PowerShell, logged in as the farm account (with admin access on the server and the farm of course) on a server in the farm, run the following commands:
$setcba = Get-SPWebApplication "http://testapp.contoso.com/" $setcba.UseClaimsAuthentication = 0; $setcba.Update()
- In the web.config of the web application, change the authentication section to reflect the following:
- From:<authentication mode=”Forms” />
<forms loginUrl=”/_login/default.aspx” />
<authentication> - To:<authentication mode=”Windows” />
- From:<authentication mode=”Forms” />
- In IIS Manager, open the configuration page for the site of the web app and change the authentication config for anonymous to disabled.
- Republish any workflows or SSRS reports that may be necessary to the functionality of the site.
Now if you can’t access the site after performing these steps, that means you need to convert or migrate users back to the DOMAIN\username format from the claims-based i:0#.w|DOMAIN\username format. Not an easy task, but doable. If you alone need access to the site, as an admin, just go into CA and add the farm account back with access to the web app. The quick way around this if other users need into the site is to just take a copy of your production site (presuming it is still using classic auth) and backup/restore it to this newly converted web app.
rohit
Thank you very much!
Akansha Singh
I need to display Active Directory Users group name in SharePoint 2013 as was displayed in classic authentication mode in SharePoint 2010 , currently i am getting Active Directory Users group name displayed like this:
c:0+.w|s-1-2-34-1234567890-1234567890-1234567890-1234 in SharePoint 2013.
Is there a way to display Active Directory Users group name in SharePoint 2013 in the same way as it was in SharePoint 2010 using C# code.
David Westerfield
I’ve found that to mean in the past that the site collection user list needs to be synced with the User Profile Service (UPA). Not always the case, but can be. Could be this too: https://social.msdn.microsoft.com/Forums/en-US/c71a7ce9-dfb1-4877-b7f7-0ff969bd822b/sharepoint-2013-active-directory-groups-represented-as-c0wsid-in-userinformation-list-instead?forum=sharepointdevelopment