如何从Active Directory中获取用户名和密码 [英] How to take Username, Password from Active Directory
本文介绍了如何从Active Directory中获取用户名和密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的朋友,
正在使用Asp.net C#,SqlServer2005.
我的项目(Web应用程序)中有一个登录页面.我需要使用Active Directory中的用户名,密码和显示名来访问该应用程序.
所有用户名和密码都存储在Active Directory中.因此,我们需要使用该Active Directory用户名和密码登录.
请帮帮我,
谢谢.
Dear Friends,
Am working on Asp.net C#,SqlServer 2005.
I have a Login Page in My project(Web Application). I need to Access that application by using UserName, Password and Display Name from Active Directory.
All the UserNames, Passwords are Stored in Active Directory.So we need to Login by using that Active Directory Username and Passwords.
Please help me,
Thanks.
推荐答案
使用 ^ ]处理登录过程(如果要使用AD凭据);您无法从广告中读取密码,只能进行确认
使用一次登录即可访问SQL Server,其功能由 Page.User确定 [^ ]属性来确定谁的问题
use IIS Integrated Authentication[^] to handle the login process if you want to use AD credentials; you can''t read passwords from AD, only confirm them
Use a single login to address the SQL server, have functionality determined by the Page.User[^] property to work out who''s asking
我认为本文将为您提供帮助.
如何:(几乎)通过C#实现Active Directory中的所有内容 [ ^ ]
I think this article will help you.
Howto: (Almost) Everything In Active Directory via C#[^]
这篇关于如何从Active Directory中获取用户名和密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文