Tuesday, June 21, 2011

Organizational Web Part

I found this interesting link regarding organizational webpart in SharePoint using Google API https://www.nothingbutsharepoint.com/sites/eusp/pages/create-an-organization-chart-in-moss-2007-using-a-contacts-list.aspx.

I have applied this concept and followed blog http://suehernandez.wordpress.com/2009/05/22/3/. The blog explained how to use the Google API and generate an organizational chart from SharePoint Profile.

The whole project is downloadable from this link https://docs.google.com/uc?id=0B2wl3Z7li_qxZGY4ZTQwYTctZDJlMy00Yjc5LWIyMmQtNjBjMGVkZjEyYzQw&export=download&hl=en

Adding ASCX file with SharePoint WSPBuilder Project

You can't add a new ASCX file in a WSPBuilder project. To enable it you should modify your CSPROJ and modify the ProjectTypeGuids.

<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>

Tuesday, January 11, 2011

Disable Form Pages for Anonymous Users

If you're running an anonymously accessible MOSS website, especially an internet-facing one, you may have noticed that your SharePoint Forms pages are also accessible to anonymous users. For example, if you're using the publishing features, anonymous users might be able to get to http://SERVER/Pages/Forms/AllItems.aspx. Typically you don't want this, so how do you prevent anonymous users from accessing these pages?
In order to help with this, we provide a Feature out of the box called the ViewFormsPagesLockdown Feature, which we usually just call the Lockdown feature for simplicity. If you're experiencing this problem and want to lock anonymous users out of your Forms pages, then you can execute the following stsadm command on your farm:
 
stsadm.exe –o activatefeature –url <site collection url> -filename ViewFormPagesLockdown\feature.xml

For more details visit technet:
http://technet.microsoft.com/en-us/library/cc263468(office.12).aspx

Friday, November 5, 2010

DisableLoopbackCheck


Having issue logging-in to SharePoint (MOSS) with Windows Authentication but it works when setting it to Basic Authentication mode?

This issue was also discussed in October 12, 2010 Security Update http://support.microsoft.com/kb/2345212/

“Users are prompted for authentication when they try to browse a SharePoint site. Windows Server 2003 SP1 and Windows Server 2008 include a loopback check security feature that helps prevent reflection attacks on your computer. Therefore, authentication fails if the fully qualified domain (FQDN) or the custom host header that you use does not match the local computer name.”

Resolution
To resolve this issue, disable the authentication loopback check. To do this, follow these steps:

  1. Click Start, click Run, type regedit, and then click OK.
  2. Locate and then click the following registry subkey:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa

  3. Right-click Lsa, point to New, and then click DWORD Value.
  4. Type DisableLoopbackCheck, and then press Enter.
  5. Right-click DisableLoopbackCheck, and then click Modify.
  6. In the Value data box, type 1, and then click OK.
  7. Exit Registry Editor.
  8. Restart the computer.

image

Friday, August 20, 2010

Sharepoint 2010 User Profile Service Application

 

During Installation of Sharepoint 2010 I encountered an issue when I was creating a connection from Central Administration > Manage Profile Service > User Profile Service Application.

image

I received the error message below:

”Cannot navigate to the requested page because User Profile Synchronization service is not running. Please start the User Profile Synchronization service before creating a connection.”

Solution

  • Check that the status of User Profile Service and User Profile Synchronization Service is started. To start the service navigate to Central Administration > System Settings > Manage services on server.

    image
  • Check running job status “ProfileSynchronizationSetupJob” from Central Administration > Monitoring. Wait for the job to finish. Once the job successfully executed you can proceed to add a new Synchronization Connections.

Additional reading http://gj80blogtech.blogspot.com/2010/02/sharepoint-2010-installation_22.html.

Thursday, August 19, 2010

Sharepoint 2010 Publishing and Consuming Cross-Farm Services

In my previous post I discussed about how to set trust relationship between Sharepoint farms and in relation with that article I will discuss on this article about how to publish and consume cross-farm services. Cross-farm services in Sharepoint 2010 is the ability to publish and consume services that is running from different Sharepoint farms for example you can publish a search service or profile service and let other Sharepoint farm to subscribe to this service.

Setup Publishing Search Service

  • Log on to Central Administration and under Application Management click Manage services application.
  • On Service Applications page click on Search Service Application then click on Publish button located on the top of the page.

    image
  • Input the necessary information from the popup window when Publish button was clicked. Copy Published URL and save it somewhere else this will be useful when configuring consumer farm. Click OK button to continue. You need to set the trust relationship with another farm follow steps on my previous post.

    image
  • Add Search permission, by searching the consuming farm id. To get the consuming farm id log in to consuming farm and open Sharepoint 2010 Management Shell from Start > All Programs > Microsoft Sharepoint 2010 Products. Execute Get-SPFarm | Select Id as shown below.

    image
  • Add the consuming farm id to have full control access permission. Click OK to continue.

    image

Setup Consuming Farm

  • Log on to Consuming Farm, go to Central Administration > Application Management > Manage services applications
  • Click Connect > Search Service Proxy and type the Publishing URL and click OK and wait while it connects to proxy service.

    image
  • Click Search Service Application and click OK. Enter the Connection Name of the service and click OK. Wait while it finalize the connection and click OK once its done.
    image
  • Set the new search service proxy as a default search to a web application to do this go to Central AdministrationApplication Management > Web Applications and select the appropriate web application and click Service Connections on the ribbon. Click OK when done.

    image
  • Create Enterprise Search and then try to search something that should exists in the other farm and If everything was configured as expected you should get a search result.

Additional reading http://www.kowalski.ms/2010/07/16/sharepoint-server-2010-enterprise-service-application-publishing-and-consuming-farms/.