使用交换服务器帐户
我正在公司开发ASP.Net项目。每个用户都有一个独特的兑换账户。
我正在尝试根据用户的 Web 项目 Exchange 凭据对用户进行身份验证。我想为每个用户使用交换服务器帐户。
我只是不想将用户添加到数据库中,因为他们已经在交换服务器中拥有用户名和密码。
例如;
用户 id:user_email
pass:用户电子邮件密码
如何在我的 c#.net 项目中使用此数据?
谢谢。
I m developing ASP.Net project in company. Every user has an unique exchange account.
Im trying to authenticate the user based on teh user's Exchange credentials for web project. I want to use exchange server account for each user.
I just dont want to add users to database, because they already have userid and password in exchange server.
For example;
User id: user_email
pass: users email password
How can I use this data in my c#.net project?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
除非您的交换设置出现异常情况,并且假设 Web 服务器是同一 AD 域的成员,那么您所要做的就是将 Web 应用程序设置为使用 Windows 身份验证。
这通常非常简单,只需要您在 web.config 中设置正确的模式。
这将使您的用户获得 AD 身份验证。
有关各种 Windows 身份验证配置的更高级和完整的说明,请参阅此 MSDN 文章
Unless you have an unusual situation with your exchange setup, and assuming the web server is a member of the same AD domain, then all you have to do is set the web application to use windows authentication.
This is usually pretty straight forward, and just requires that you set the right mode in web.config.
That will get your users get authenticated against AD.
For a more advanced and complete description of various windows authentication configurations see this MSDN article