cvs 删除用户_将CVS用户映射到真实用户(从SSPI到PSERVER)

cvs 删除用户

cvs 删除用户

I recently moved a machine from our MAIN domain to a LAB domain (another domain with a hardened filewall for R&D and crazy stuff.)

最近,我将一台机器从我们的MAIN域移到了LAB域(另一个具有加固的文件墙的域,用于研发和疯狂的东西。)

We use Subversion for most of our Source Control, but a lot of legacy stuff is still in CVS and uses SSPI (Security Service Provider Interface enabling NTLM for CVS). So, when I do an update from Tortoise it automatically sends my Windows User details over there and authenticates me against the domain.

我们在大多数源代码管理中使用Subversion,但是CVS中仍然有很多旧的东西,并使用SSPI(启用CVS NTLM的安全服务提供程序接口)。 因此,当我从Tortoise进行更新时,它会自动将Windows用户详细信息发送到那儿,并根据域对我进行身份验证。

However, now I'd moved the machine and it was in another domain. The LAB domain is fairly harded and doesn't have a way for a MAIN domain user to login. Consequently updating CVS via SSPI is/was a problem.

但是,现在我搬走了机器,它在另一个域中。 LAB域相当困难,并且无法让MAIN域用户登录。 因此,通过SSPI更新CVS是一个问题。

I wrote a lame little batch file that's used like this:

我写了一个la脚的小批处理文件,其用法如下:

addcvsuser.bat MYREPO labcvsuserIt looks like this:

addcvsuser.bat MYREPO labcvsuser看起来像这样:

IF "%1"=="" GOTO USAGEIF "%2"=="" GOTO USAGESET CVSROOT=:sspi:MYCVSSERVERNAME:/%1cvs passwd -a -r MAIN\somewindowsuser %2SET CVSROOT=GOTO EXIT:USAGEECHO Usage: addcvsuser REPOSITORY NEWUSERNAME:EXIT

如果“%1” ==“”转到用法如果“%2” ==“”转到用法SET CVSROOT =:sspi:MYCVSSERVERNAME:/%1 cvs passwd -a -r MAIN \ somewindowsuser%2 设置CVSROOT = 转到出口:用法回声用法:addcvsuser仓库NEWUSERNAME :出口

Assuming the admin is logged in as a legit user, this file temporarily sets the CVSROOT Environment Variable with the name of the Repository you want to add a user to. The user will be added to the passwd file in that repository and won't be a real Windows User. It might be a user named labcvsuser that doesn't exist on the domain. That user is mapped to MYCVSSERVERNAME\somewindowsuser that IS a real Windows User, on the real MAIN domain.

假设管理员以合法用户身份登录,则此文件将CVSROOT环境变量临时设置为要向其添加用户的存储库的名称。 该用户将被添加到该存储库中的passwd文件中,并且不是真正的Windows用户。 该用户可能是域上不存在的名为labcvsuser的用户。 该用户被映射到真实MAIN域上的真实Windows用户MYCVSSERVERNAME \ somewindowsuser

Then, in Tortoise I change the CVSROOT used by Tortoise to :pserver: instead of :sspi: and open up ports 2401 and 2402. Now the LAB TortoiseCVS can use a username/password combo that's not on the domain and get mapped to a domain (or local) user and crisis averted.

然后,在Tortoise中,将Tortoise使用的CVSROOT更改为:pserver:而不是:sspi:并打开端口2401和2402。现在LAB TortoiseCVS可以使用不在域中的用户名/密码组合并映射到域(或本地)用户,避免了危机。

翻译自: https://www.hanselman.com/blog/mapping-a-cvs-user-to-a-real-user-sspi-to-pserver

cvs 删除用户

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值