如何从域\用户名和密码获取WindowsIdentity [英] How to get WindowsIdentity from domain\ username and password
本文介绍了如何从域\用户名和密码获取WindowsIdentity的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在从域\用户名和密码实施WindowsIdentity,我获得了域和用户名,但密码没有人知道帮助我
Hi,
i am Implementing WindowsIdentity from domain\ username and password,i got domain and username but password not coming any body know help me
推荐答案
您无法从中获取密码WindowsIdentity
这完全取决于您要实现的目标,为什么需要密码?也许假冒 [ http://stackoverflow.com/questions/125341/impersonation-in-net [ ^ ]
用于模拟用户的小型C#类 [
You can''t get password from WindowsIdentity
It totally depends what you''re trying to achieve, why would you need the password? Maybe Impersonation[^] is something you need to look at?
Some further info + links
http://stackoverflow.com/questions/125341/impersonation-in-net[^]
A small C# Class for impersonating a User[^]
下面的链接将帮助您了解用户, ASP.NET应用程序正在运行.
http://webnetrevolution.blogspot.com/2011/04/windowsidentitygetcurrentname-in-aspnet.html [ ^ ]
Below link will help you know the user under which your ASP.NET application is running.
http://webnetrevolution.blogspot.com/2011/04/windowsidentitygetcurrentname-in-aspnet.html[^]
这篇关于如何从域\用户名和密码获取WindowsIdentity的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文