如何使用自定义凭据运行应用程序? [英] How do I run an application using custom credentials?

查看:72
本文介绍了如何使用自定义凭据运行应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有域网络设置,我需要使用管理员privelages运行应用程序,必须通过域检查凭据。我记得曾经有一个片段做这个完美但不能再找到它。这就是我想要的。



accpet 用户名密码域名地址 <如果凭证为真,则
,如果不引发错误,app可能会运行。

We have a domain network setup, and I need to run an application with admin privelages, the credentials have to be checked over the domain. I remeber once had a snippet doing this perfect but cant find it again. Here's what I want.

accpet Username, Password and domain address
if the credentials were true, than app may run if not raise error.

推荐答案

也许这个 [ ^ ]主题会对你有帮助吗?
Perhaps this[^] thread will help you?


谢谢你,你推荐的帖子让我去了这只适用于本地系统,我只是在一个真实的域上进行测试。



http://www.codeproject.com/Articles/4051/Windows-Impersonation-using-C [ ^ ]
Thankyou, the post you recommended led me to this that just worked on the local system, I've just to test it over a real domain.

http://www.codeproject.com/Articles/4051/Windows-Impersonation-using-C[^]


这篇关于如何使用自定义凭据运行应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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