使用交换服务器帐户

发布于 2024-09-01 23:22:17 字数 255 浏览 5 评论 0原文

我正在公司开发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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

野却迷人 2024-09-08 23:22:17

除非您的交换设置出现异常情况,并且假设 Web 服务器是同一 AD 域的成员,那么您所要做的就是将 Web 应用程序设置为使用 Windows 身份验证。

这通常非常简单,只需要您在 web.config 中设置正确的模式。

<system.web>
...
    <authentication mode="Windows"/>

这将使您的用户获得 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.

<system.web>
...
    <authentication mode="Windows"/>

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文