【问题标题】:Adding Active Directory Group to visual SVN repo and granting read,write permissions将 Active Directory 组添加到可视 SVN 存储库并授予读取、写入权限
【发布时间】:2015-05-29 15:01:45
【问题描述】:

我是 VisualSVN 命令的新手。我正在尝试将 Active directory Group(Entire group) 添加到 SVN 存储库的 1 中,并使用 powershell 命令授予他们对该存储库的读取、写入访问权限。 我已经参考了链接SVN Rights Management Tool using Windows Authentication method

这是关于“用户”的权限。如何使用 powershell 命令授予整个“组”权限(以后可以添加用户)

【问题讨论】:

  • 您是否尝试过简单地使用组 SID 而不是用户 SID?
  • @Ansgar Wiechers 是的,我尝试过使用 SID of group 。当我使用 Invoke-WmiMethod 和 InvokeMethodOnNull 异常时,它给 InvokeWMI 管理异常,当我使用 setSecurity。

标签: powershell active-directory wmi visualsvn-server visualsvn


【解决方案1】:

升级到 VisualSVN Server 3.4 并使用 Add-SvnAccessRule PowerShell cmdlet 为 Active Directory 组帐户添加新的访问规则。

例如,如果您需要将 ReadOnly 访问规则添加到 /trunk 或存储库中的项目,请运行以下 PowerShell 命令:

Add-SvnAccessRule MyRepository -Path /trunk -AccountName DOMAIN\MyGroup -Access ReadOnly

阅读文章VisualSVN Server PowerShell Cmdlet Reference了解更多信息。

【讨论】:

    猜你喜欢
    • 2021-04-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-04-07
    • 1970-01-01
    • 2022-06-30
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多