如何从Active Directory用户通过C#代码获取密码 [英] How to Get Password from Active directory User through C# code

查看:208
本文介绍了如何从Active Directory用户通过C#代码获取密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想从Active Directory用户通过C#代码获取用户的密码。在我的应用程序中

i我在登录时使用Active Directory身份验证。如果有任何用户忘记密码我需要恢复该密码。



请帮助任何想法或任何示例代码

Hi all,
i want to get Password of a user from Active directory User through C# code. In my application
i am using Active Directory authentication while logging in. if any user forget they password i need to recover that Password.

Please help any ideas or any sample code

推荐答案

在任何非废话安全的基于密码的系统中,没有人能够检索密码。密码不会存储在任何地方;这绝对不是验证所必需的,但不安全。除了创建密码的人之外,没有人应该知道密码。要了解它是如何可能的,请查看我过去的答案:

我已经加密了我的密码但是当我登录它给我一个错误。如何解密 [ ^ ] ,

解密加密密码 [ ^ ],

存储密码值int sql server with secure方式 [ ^ ]。



-SA
In any non-nonsense secured password-based system, no one can ever retrieve a password. Passwords are not stored anywhere; this is absolutely not needed for authentication but unsafe. No one is supposed to know a password, except a person who created it. To understand how it's possible, please see my past answers:
i already encrypt my password but when i log in it gives me an error. how can decrypte it[^],
Decryption of Encrypted Password[^],
storing password value int sql server with secure way[^].

—SA


只需检查以下网址。可能会有所帮助。



在VB .NET中使用Active Directory
Just check the below URL. May be helpful.

Working with Active Directory in VB .NET


这篇关于如何从Active Directory用户通过C#代码获取密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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