将IIS凭据传递给EWS

编程入门 行业动态 更新时间:2024-10-25 08:23:05
本文介绍了将IIS凭据传递给EWS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

是否可以将凭据(我在命令提示符中输入)传递给交换网络服务?

Is it possible to pass the credentials (which I`m typing in the command prompt) to an exchange web Service?

我的网站托管在IIS上(Windows身份验证和身份impersonate = true)。现在我正在寻找一种方法将输入的Credentials传递给我的交换Web服务功能。看起来像这样:

My Website is hosted on IIS (Windows Authentication and Identity impersonate=true). Now I´m looking for a way to pass the typed in Credentials to my exchange Web Service Function. Which looks like that :

service = New ExchangeService() With { .Credentials = New WebCredentials(ConfigurationManager.AppSettings("ExchangeUser"), ConfigurationManager.AppSettings("ExchangePW")), .Url = New Uri(ConfigurationManager.ConnectionStrings("ExchangeUri").ConnectionString)}

可以使用代码中的类型信息吗?

Can is used the typed information in the code ?

推荐答案

您好

尝试

new NetworkCredential("username", "password", "domain");

更多推荐

将IIS凭据传递给EWS

本文发布于:2023-11-17 05:51:48,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1609055.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:凭据   IIS   EWS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!