Tuesday, June 19, 2012

Tricks and tips for NextLabs entitlement integration with SharePoint search trimming

When you implemented NextLabs entitlement for SharePoint, you are able to restrict groups or users to access SharePoint content using security policy even they are granted the permissions through SharePoint. However, it took us a long time to restrict the search result displayed to the same groups of users.  We have identified the key to integrate search security is to implement NextLabs security trimming.

Search Result Trimming allows you to limit the display of search results to only those web parts or documents (i.e., list items) which the search user is authorized to view based on NextLabs entitlement policy. For example, suppose a user searches a site collection for the string “Cyberdyne Corp.” If some policy blocks that user from viewing, opening or using documents belonging to or associated with Cyberdyne Corp, then all search results involving Cyberdyne documents that appear in the search results will be trimmed—that is, not displayed to that specific user. The search result trimming administration and configuration procedure is not included in NextLabs administration guild but in entitlement manager user guide. This is one of the reasons we were not be able to set up quickly. Another reason is the instruction is not clear and we were missing the steps. Here are detailed procedures you could refer to implement Search Result Trimming.

1. Define craw rules - Define one crawl rule for EACH webapp inside the farm by clicking Crawl Rules link. You need to set up one for each webapp. As a result, you will have five rules if you have five webapps. Please select the following configurations and see screenshot for details.

Path: The URL must be root address for the site for the webapp
Crawl Configuration: Select “Include all items . . . ”
Specify Authentication: Select “Use the default . . . ”



2. Complete Full Crawl - No explaination needed here.

3. Enable search trimming feature - Enable the search result trimming feature through the CLI-based Entitlement Manager Administrator utility on farm or individual webapp.

C:\Program Files\NextLabs\SharePoint Enforcer\bin\ce_spadmin.exe -o searchresulttrimming -install  -ssa <"Search Service Application">

where "Search Service Application" refers to the application name for the farm. 


At this time, you might find many questions that might jeopardize Search Result Trimming. Here are some tricks and the tips to resolve them.

A. If you have multiple Search Service Applications and different webapps are associated with different Search Service Applications, how you enable the search result trimming feature using the CLI-based command as we described above?

Well, the command to enable on farm based scope will not work and you should enable the search result trimming feature on each webapp. Here are the commands to enable the search result trimming feature on two webapps with different Search Service Applications and also pass webapp root site collection URL.

C:\Program Files\NextLabs\SharePoint Enforcer\bin\ce_spadmin.exe -o searchresulttrimming -install -ssa <"Search Service Application1"> -rulepath http://xnetsbx-sp/*

C:\Program Files\NextLabs\SharePoint Enforcer\bin\ce_spadmin.exe -o searchresulttrimming -install -ssa <"Search Service Application2"> -rulepath <second webapp path>

B. If you have enabled the search result trimming feature for the farms and you created a new webapp, the search result trimming feature will not be automated enabled. You need to enable explicitly using the command listed above.

C. How to check and verify whether search result trimming feature enabled on webapp? 

Well, you can launch the “SharePoint 2010 Management Shell” and type the command to show which trimmer is installed on which rulepath.

Get-SPEnterpriseSearchSecurityTrimmer –SearchApplication “Search Service Application”

Off cause, you could uninstall search result trimming feature and the command is listed in user guide.

Now, you should have enough infomation to enjoy the NextLabs securioty trimming featrure in SharePoint.



 

Friday, June 15, 2012

NextLabs entitlement for SharePoint deny access POC summary

Our security department has identified some SharePoint 2010 site collections need to restrict to users of some security groups. The requirement is to restrict the users belong to some security groups to access selected site collections with sensitive information even these users have been granted the permission through individual account, any AD groups, or email list groups. There are some options and the NextLabs Entitlement Manager for SharePoint seems to be a good fit to resolve this security requirement as indicated in my previous blog.

After several weeks POC engagement with NextLabs consultants, we have completed all the test cases. The tool seems to accomplish our requirement. There are some limitations such as web service support for this product but those do not seem to be the showstoppers. Here is the summary of the key benefits, key features, key test cases with results, and key enhancements requested. 

1. Key Benefits - NextLabs’ Entitlement Manager for SharePoint is a content aware Entitlement Management solution that provides the capability to authorize, classify, enforce and audit enterprise resources across Microsoft SharePoint. This solution allows large enterprises to enjoy secure internal/external collaboration while helping them achieve obligatory compliance, protecting data both on and off the SharePoint Environment. The key benefit is listed below. You could refer the previous blogon the details.
  • Compliance for Obligatory Regulations 
  • Increases Enterprise-wide Adoption of SharePoint 
  • Extends and Enhances SharePoint Security 
  • Fast and Easy to Manage Solution 
  • Significantly Reduces Management Cost 
  • Improves Time to Value
2. Key Features - Entitlement Manager for SharePoint is the only complete solution in the industry that fulfills the four crucial processes (Authorization, Classification, Enforcement and Audit) needed for effective Entitlement Management, applying fine grained adaptive and intelligent authorization policies for a multitude of resources, accessed via any and all channels, supporting a broad range of functionality. You could refer the vendor site for the details on each feature.
  
  • Adaptive and Intelligent Authorization Policies 
  • Built-In Content Aware Data Classification 
  • Most Comprehensive SharePoint Enforcement 
  • Centralized Audit Persistent Protection of Data
 
3. Key Test Cases with Results - NextLabs’ solutions support our compony’s goals through policy based information access controls, information distribution controls and robust audit and compliance capabilities.  This Proof of Concept will focus NextLabs’ deep, rich set of tools and controls on a variety of business situations that reflect the everyday activities of compony’s users who access restricted data.  Key areas addressed by the POC include the following:
  • Robust policy construction through an easy-to-use graphical user interface based on XACML standards.
  • Ease of integration with user information repositories for use in policy construction, including Active Directory and SharePoint.
  • Ease of integration with SharePoint for rapid deployment of enforcement point with the need to develop custom code.
  • Allow only approved users to access restricted data.
  • Audit user activity to ensure compliance and protection of restrictive information.
 Here are all passed test cases through he POC.
   
A. NextLabs Deployment and Integration
B. NextLabs Policy Management 
This section demonstrates the role delegation, workflow, management, and policy auditing functionality of NextLabs’ Control Center solution.

  • Role based access control -  This activity demonstrates Nextlabs' ability to assign different Control Center roles based upon the user's function within compliance organization.
  • Policy Workflow - This activity demonstrates Nextlabs' policy workflow that is part of the Control Center solution.
  • Create restricted access policy using Policy Studio -  This activity demonstrates Nextlabs' ease of use to create robust policy using customer business use cases. NextLabs' Policy Studio management that is part of the Control Center Policy Studio.
  • Revision History Reporting - This activity demonstrates Nextlabs' policy revision management that is part of the Control Center solution.
  • Server and Enforcer Health Status and Monitoring - This activity demonstrates Nextlabs' ability to provide server and enforcer health status, configuration and policy deployment status through the Control Center Administrator GUI.

C. NextLabs Entitlement 
Only allow authorized users to access restricted information - This activity demonstrated NextLabs ability to deny access to restricted document libraries or list libraries to certain users even if they are authorized access to those libraries/lists by SharePoint. In this cases it is determined based on restricted AD group definition. We have tested the following scenarios.

  • Browser
  • Explore view
  • Microsoft Outlook
  • Microsoft SharePoint Designer
  • UNC
  • webDav
  • RSS feeds
  • Search security trimming
The following several test cases failed but there are not blockers at this point. You could refer to my previous blogs on the issues.
  • SOAP access
  • REST access
  • API access - Any server API does bot apply security policy
  • SharePoint calendar through Outlook security support - this does not seems to be protected 
  • Customized WCF web services not inside SharePoint not supported
D. NextLabs Compliance Reporting
Compliance Auditing and Reporting - This activity will demonstrate NextLabs’ robust reporting features for generating activity and audit reports for compliance.

4. Key Enhancements Requested and Roadmap - The enhancements we requested at this point are around features, performance, and maintainability. Here is the summary.
  • FAST search security trimming support - May be included in Q3 2013 depends whether Microsoft provides ISecurity API
  • SOAP web services security support - Planed in Q4 2012
  • REST web services security support - Planed in Q4 2012
  • SharePoint Calendar through Outlook security support - Need to esculate to vendor
  • Performance improvement to select users from policy controller - Planed in Q4 2012
In summary, although there are some issues on NextLabs SharePoint entitlement manager product, it does seem to satisfy our current SharePoint deny access security requirement. We are working with security team to see whether we should move forward implementing this in our environment.

We have more findings such as secure site collection and block users using properties.


Thursday, May 17, 2012

NextLabs’ Entitlement Manager Issue #5 - Users could workaround to display restricted lists through SharePoint 2010 RPC calls


We are evaluating NextLabs EntitlementManager to restrict the users belong to some security groups toaccess selected site collections with sensitive information even these users have been granted the permission through individual account, any AD groups, or email list groups. One of the test cases is to verify access permissions through SharePoint Foundation RPC Protocol (RPC) methods.

SharePoint Foundation RPC Protocol (RPC) methods that can be used in URL protocol to make HTTP GET requests. Although this may not be a very common method for end users, this is one of the security concerns. The test result is very promising since after we applied policy to deny acccess to the list or library, users will get error when he/she try to access the list or library through SharePoint RPD calls with only one cavity. Here is the set up and explination.

We have set up one site with one library named lib1 http://xnetsbx-sp/it/nextlab1/lib1 with two documents. The list GUID is E757FF25-7CE0-406C-991D-D078FB008B39.



We applied the deny access to both http://xnetsbx-sp/it/nextlab1/** and http://xnetsbx-sp/it/nextlab1/lib1/** from NextLabs.

We have set up several RPC cases based some references. We got deny access error when accesing following RPC calls with error message looks like this.


Here are some of the RPC test cases and the URL syntex embedded as link.
If you have the permission, you should have the following outputs.

1. Picture 1 - Exports the list as CAML

2. Picture 2 - Display list or library metadata

3. Picture 3 -  Open a view of the document library in a view


Everything seems perfect and contents are blocked after applying the deny access polcy from NextLabs until I accidently typied in one wrong URL to open a view of the document library in a view. Here is the issue.

If you type in the correct URL http://xnetsbx-sp/it/nextlab1/_vti_bin/owssvr.dll?dialogview=FileOpen&location=lib1, you will get error message. 

If you append some other parameters to the URL like this

The good thing is users still could not open the documents even they could view the library. I guess more testing need to be done.