在不同的凭据下运行Cruise Control.net [英] Running cruise control.net under different credentials

查看:55
本文介绍了在不同的凭据下运行Cruise Control.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我的构建的一部分需要域名权限并进行文件复制。



构建的另一部分运行某些程序,该程序需要用户与之交互



解决这两个问题的最佳方法是什么?目前看来我只能做一个或另一个...

解决方案

一种方法是做 net use s:\\<共享路径> <密码> / user:<域用户> / savecred ,这将允许您的系统帐户模拟域用户进行共享连接。



另一种方法是使用 runas.exe / user:<您的域用户> / savecred< program> 。请注意,这将需要运行 runas 的用户从CC.Net用户的上下文中输入域用户密码。您可以通过以系统帐户身份打开控制台(由于CC.Net SVN集成而在该主题上有很多文章)并手动运行 runas / savecred 并提供



另一种方法是创建一个单独的COM服务,该服务作为域帐户运行,并具有CC.Net调用该服务的命令行工具。 / p>

另一种方法是让CC.Net安排一个立即任务以域用户身份运行。您可以使用 schtasks.exe 来完成。您需要一个带有任务定义的xml文件,其中需要包含域用户名和密码。


So I have one part of my build that requires domain rights and does file copying.

Another part of my build runs some program that requires the user to interact with the desktop which seem to be only accomplish able by the system account.

What is the best way to work around these two items? At the moment it seems like I can only do one or the other...

解决方案

One way is to do net use s: \\<share path> <password> /user:<domain user> /savecred, which will allow your system account to impersonate the domain user for the share connection.

Another way is to use the runas.exe /user:<your domain user> /savecred <program>. Note that this would require someone running runas to enter the domain user password form the context of your CC.Net user. You can do this by opening a console as the system account (there are numerous articles on this topic, because of CC.Net SVN integration) and manually running runas /savecred and providing the password.

An alternative is to create a separate COM service that runs as the domain account and have a command line tool that CC.Net invokes that call that service.

Yet another alternative would be to have the CC.Net schedule an immediate task running as the domain user. You can use schtasks.exe to do that. You'll need an xml file with the task definition, which will need to contain the domain user name and password.

这篇关于在不同的凭据下运行Cruise Control.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆