Other Posts in SharePoint

  1. Creating a SharePoint Site Programmatically
  2. Fix Access Denied Errors in SharePoint Search
  3. Web Page to Get Basic Information from SharePoint

Fix Access Denied Errors in SharePoint Search

5/20/2009

As of late, I haven't been doing much in the way of programming. Instead I've been working with our SharePoint install at work (setting up InfoPath, Excel Services, etc.). One of the issues that I had to tackle was the fact that the crawler stopped working. The account it was using had the proper rights, the service itself was set up correctly, etc. In fact it was working at one point and there hadn't been any changes to the settings. So why the sudden issue?

Well we have one server that acts as the search service and the site itself. As such the search service is basically doing a crawl on the local host (and we're using a fully qualified domain name). This apparently doesn't work due to a loop back check that windows does in order to protect itself from reflection attacks (you can read about it here). In otherwords, it's by design and shouldn't be messed with on public facing servers. However in my case, this server is completely behind the firewall. So how do we disable the loopback check and get our search working? Simple, follow these steps (which are described in the link above):

  1. Click Start, then Run (or if you're on 2008, just click on the search box), and type regedit, and then click OK.
  2. In Registry Editor, locate and click the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa
  3. Right-click Lsa->New->DWORD Value.
  4. Change the name of the new key to DisableLoopbackCheck.
  5. Right-click DisableLoopbackCheck, and click Modify.
  6. In the Value data box, type 1, and click OK.
  7. Quit Registry Editor and restart your computer.
That's it. Once the computer restarts you should be able to start the crawl and have it work. Hopefully this helps you out. So try it out, leave feedback, and happy coding.


Comments