Giter VIP home page Giter VIP logo

apply-permissions-for-sharepoint-configurations-in-alwayson's Introduction

CLEVER DATA GIT REPO

在AlwaysOn环境中如何配置Sharepoint权限

Apply Permissions For Sharepoint Configurations In AlwaysOn

发布-日期: 2016年7月27日 (评论)

Contents

中文

假设你有一个全新的SQL AlwaysOn环境用于SQL 2012或SQL 2014,现在Sharepoint管理员正在连接到监听器名称,进行安装和配置Sharepoint。每次尝试创建数据库时,Sharepoint配置过程可能会遇到一些权限错误。所以,你作为“DBA”应当确保为Sharepoint管理员帐户在群集中的每个Node上设置了所有可用权限,在此示例中为MyDomainMySharepointAccount。这时候它已被设置为OS和SQL Server的系统管理员,并且已添加到数据库所有者权限中。

(基本上它已被添加到Master dbo,以及它自己的服务器上的本地管理员组,并且它已经添加到每个SQL Server instance下的Sysadmin角色中。)

English

Lets say you have a brand new SQL AlwaysOn environment for SQL 2012 or SQL 2014 and now the Sharepoint Admins are connecting to the Listener name so they can install and configure Sharepoint. The Sharepoint configuration process may run into a few permissions errors whenever they try to create their databases. So you ‘the DBA’ will check to ensure that all the appropriate permissions are set on each Node in the Cluster for the Sharepoint Administrator account which in this example is MyDomainMySharepointAccount. You notice that it’s set as the Sysadmin for both the OS and SQL Server and has already been added to the database owner permissions.

(Basically it’s been added to Master dbo, and the local administrators group on the Server it’s self, and it’s already added to the Sysadmin role under each SQL Server instance.)

然而,你仍然会在Sharepoint配置过程的“指定配置数据库设置”下遇到问题。他们看到了这个错误: However; you still get issues under ‘Specify Configuration Database Settings’ for the Sharepoint configuraiton process. They see this error:

无法在MyAvailabilityGroupName处连接到SQL上的数据库主服务器。数据库可能不存在,或者当前用户没有连接权限。 Cannot connect to database master at SQL Server at MyAvailabilityGroupName. The database might not exist or the current user does not have permission to connect to it.

以微软的惯例来说,它仅仅被添加到OS和SQL服务器的适当角色中,并不意味着其他的微软应用程序会检查那些设置。在这种情况下,你需要在Securables中授予特定权限,以便Sharepoint安装程序将会进行验证是否已设置适当的权限。

Well… in usual Microsoft fashion just because it’s been added to the appropriate roles for the OS, and SQL Server it doesn’t mean the setup process from another Microsoft application will choose to check those to validate. In this case you’ll need to grant specific permissions in the Securables so the Sharepoint setup process will validate that the appropriate permissions have been set.

你可以通过2种方式执行此操作...通过SSMS客户端GUI添加安全性,或者运行以下逻辑。注意:这需要在群集配置中的所有节点上运行。 You can do this in 2 ways of course… Add the securables through the SSMS client GUI, or simply run the following logic. Note: This will need to be run on all Nodes in the Cluster configuration.

Logic

use [master]
GO
 
CREATE USER [MyDomain\MySharepointAccount] 
	FOR LOGIN [MyDomain\MySharepointAccount]
ALTER ROLE [db_owner] 
	ADD MEMBER [MyDomain\MySharepointAccount]

GRANT ALTER ANY AVAILABILITY GROUP TO 	[MyDomain\MySharepointAccount];
GRANT CONTROL SERVER TO 				[MyDomain\MySharepointAccount];
GRANT CREATE ANY DATABASE TO 			[MyDomain\MySharepointAccount];

Perform 3 Grants


WorksEveryTime

Build-Info

Build Quality Build History
Build-Status
Coverage
Nuget
Build history

Author

  • 李聪明的数据库 Lee's Clever Data
  • Mike的数据库宝典 Mikes Database Collection
  • 李聪明的数据库 "Lee Songming"

Gist Twitter Wordpress


License

LicenseCCSA

Lee Songming

apply-permissions-for-sharepoint-configurations-in-alwayson's People

Contributors

licongmingdeshujuku avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.