您的位置:首页 > 其它

Useful info about sharepoint security and web part creation

2004-11-30 01:45 477 查看
A useful actical for web part development basic
http://www.devx.com/dotnet/Article/17518/0/page/1
sharepoint security
http://www.15seconds.com/issue/040511.htm
object model security

In a comment to my post here, Jim asked why he can't access the WSS object model in his code, even though it's running under the Sharepoint context. Since a month has passed and I can't re-enable comments on that post, I'll just answer here:

By default, the security settings for a Sharepoint site is set to WS_Minimal - a predefined set of security policies that can be found in C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\CONFIG\wss_minimaltrust.config. You can change this to WSS_Medium to get a slightly higher security policy (that allows Object Model access, for one thing) or create your own set of security policies for exact customization. Check out the web.config settings in the SPS root directory to see how to define another ruleset, and use the existing .config files as a base

* if want to use object model in managed path (Excluded path).
have to add a web.config with line <trust level="Full" originUrl="" /> or other levels.

SPS customization
http://weblogs.asp.net/bsimser/articles/spscustomization.aspx http://www.skillart.com/blog/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: