Thread safety in custom claims providers

Hello, I’m the author of open source claims provider LDAPCP (http://ldapcp.codeplex.com/) and I recently discovered a very important design constraint that causes serious issues if ignored: Claims providers are mostly called by static class SPClaimProviderOperations (actually I think it’s the only class that can call them). This class and its methods are static, which implies…


How to implement Active Directory resolution with SAML authentication in SharePoint 2010?

If you configured SharePoint web application in claims mode with federated authentication (with an external STS such as ADFS), you certainly remarked that OOB SharePoint does not offer any search or resolution against Active Directory. And you certainly thought it would be really nice to have it. Well, there are good reasons to explain this:…

2

Supply XML parameters in a SOAP Service Connection with SharePoint Designer 2010

SharePoint Designers allows to create a data source based on a web service, and then use this data source in a page. Let’s say you want to display search results in a page. To do so you can use the QueryEx method of the search.asmx web service. This method takes 1 parameter, queryXml, which is…

2

You get a System.Security.SecurityException when you try to start the User Profile Synchronization Service

Symptom Under certain condition, you may see this error message when you try to start the FIM Synchronization Service: UserProfileApplication.SynchronizeMIIS: Failed to configure ILM, will attempt during next rerun. Exception: System.Security.SecurityException: There are currently no logon servers available to service the logon request. at System.Security.Principal.WindowsIdentity.KerbS4ULogon(String upn) at System.Security.Principal.WindowsIdentity..ctor(String sUserPrincipalName, String type) at System.Security.Principal.WindowsIdentity..ctor(String sUserPrincipalName) at…

3

How to bypass MySite redirection introduced with the SP2 when you display user details?

SharePoint SP2 has introduced the systematic redirection to the MySite when you display the details of a user. In most scenarios this does not have any impact, but some companies don’t use the MySite and in such a case redirection needs to be deactivated. Fortunately, it’s very easy to deactivate the redirection by writing a…


Workflow locks because of OnWorkflowItemChanged event handler

Version française. SharePoint workflow functionality comes with a set of specific activities and events to leverage SharePoint specific actions. One of them is OnWorkflowItemChanged, designed to fire when item which started the workflow was modified.   The Problem However, this event causes an unexpected behavior that locks the workflow instance in the content database for…

5

How to easily justify the text in SharePoint 2007 RichHtmlField control and content editor webpart?

Version française. Both RichHtmlField control and content editor webpart allow you to write content in SharePoint 2007 more or less with the same experience than you would have with Word. One good feature is the ability for administrators to create predefined styles that contributors can directly select and apply to their content: These styles are…

1

Cannot get latest SPListItem attributes such as ForwardLinks in a page that was propagated using variations

Consider the following scenario: As a site collection administrator, you use object model to get SPListItem.ForwardLinks in a page that has been propagated in a target site with variations sytem. The page version is at least 1.1. As a result, you are not able to retrieve SPListItem.ForwardLinks attribute from the current minor version, it returns…


AJAX Postbacks not working with any masterpage other than default.master

Consider the following scenario: You develop a webpart using AJAX that works fine with SharePoint default masterpage (default.master), but as soon as you use a different masterpage, for example blueband.master, asynchronous postbacks do not work anymore. The reason is because in those masterpages, SPWebPartManager server tag is outside of <form></form> tags. To workaround this, you…

3

Unable to activate a form template even as a site collection administrator

Administrator approved InfoPath forms templates are managed in central administration website and can be activated on each site collections. To do this, SharePoint requires that administrator has full permissions on the site collection. This is often the case when we are site collection administrators, but some permission can be removed at web application level, which…