using exchange server account
I m developing ASP.Net project in company. Every user has an unique exchange account.
Im trying to authentic开发者_如何转开发ate 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.
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
精彩评论