询问者
Lync2013&exchange2013partner集成后Test-CsExStorageConnectivity失败

问题
-
在做Lync2013以及Exchange2013的集成测试过程中出现错误,返回下面内容。
Test-CsExStorageConnectivity -sipuri user01@quan.com -verbose
详细信息: 已使用绑定在 localhost 处成功地打开了与存储服务的连接: NetNamedPipe
详细信息: 创建消息。
详细信息: 执行 Exchange 存储命令。
详细信息: 正在处理 ExCreateItem 失败。 的 Web 存储响应,结果:
ErrorEwsAutodiscover,活动 ID: 780755cb-b991-43a0-a674-eadc6fd4ec77,原因:
ExchangeAutodiscoverException: code=ErrorEwsAutodiscover,
reason=GetUserSettings failed, smtpAddress=user01@quan.com, Autodiscover
Uri=https://autodiscover.quan.com/autodiscover/autodiscover.svc, Autodiscover
WebProxy=<NULL> --->
Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverResponseException:
RequestedServerVersion 标头已丢失或无效。
在
Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverRequest.InternalExecu
()
在
Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.InternalGetUs
Settings(List`1 smtpAddresses, List`1 settings, Nullable`1 requestedVersion,
Uri& autodiscoverUrl)
在
Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.GetSettings[T
tSettingsResponseCollection,TSettingName](List`1 identities, List`1 settings,
Nullable`1 requestedVersion, GetSettingsMethod`2 getSettingsMethod, Func`1
getDomainMethod)
在
Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.GetUserSettin
(List`1 smtpAddresses, List`1 settings)
在
Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.InternalGetSo
UserSettings(String smtpAddress, List`1 requestedSettings)
在
Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.GetUserSettin
(String userSmtpAddress, UserSettingName[] userSettingNames)
在
Microsoft.Rtc.Internal.Storage.Exchange.ExchangeContext.SendGetUserSettingsRe
est(StoreContext ctx, String smtpAddress)
--- End of inner exception stack trace ---
在
Microsoft.Rtc.Internal.Storage.Exchange.ExchangeContext.SendGetUserSettingsRe
est(StoreContext ctx, String smtpAddress)
在
Microsoft.Rtc.Internal.Storage.Exchange.ExchangeContext.GetUserEwsSettings(St
eContext ctx, String smtpAddress, CacheMode cacheMode)
在
Microsoft.Rtc.Internal.Storage.Exchange.ExchangeContext.GetExchangeClientProx
StoreContext ctx, CacheMode cacheMode)
在
Microsoft.Rtc.Internal.Storage.Store.StoreConnectionManager.GetExchangeClient
oxy(StoreContext ctx, String sipUri, CacheMode cacheMode)
在
Microsoft.Rtc.Internal.Storage.Adaptor.ExStoreAdaptor.InternalCreateItem(Stor
ontext ctx, String sipAddress, CreateItemType createItem, Boolean
autoCreateParentFolder, StoreAsyncResult`1 asyncResult, Boolean reAuthorize)
在
Microsoft.Rtc.Internal.Storage.Adaptor.ExStoreAdaptor.ExchangeCreateItem(Stor
ontext ctx, ExStoreRequest exStoreRequest, StoreAsyncResult`1 asyncResult)
在
Microsoft.Rtc.Internal.Storage.Adaptor.ExStoreAdaptor.BeginDispatchCommand(St
eContext ctx, StoreRequest request, AsyncCallback asyncCallback, Object state
在
Microsoft.Rtc.Internal.Storage.Api.StorageService.BeginExecuteCommandInternal
uid adapterId, StoreRequest request, AsyncCallback asyncCallback, Object stat
Boolean isAuthenticated)
。
详细信息: 活动跟踪:
2014/06/22 14:27:23.462 Autodiscover, send GetUserSettings request,
SMTP=user01@quan.com, Autodiscover
Uri=https://autodiscover.quan.com/autodiscover/autodiscover.svc, Web
Proxy=<NULL>
2014/06/22 14:27:23.463 Autodiscover.EWSMA trace,
type=AutodiscoverRequestHttpHeaders, message=<Trace
Tag="AutodiscoverRequestHttpHeaders" Tid="52" Time="2014-06-22 14:27:23Z">
POST /autodiscover/autodiscover.svc HTTP/1.1
Content-Type: text/xml; charset=utf-8
Accept: text/xml
User-Agent: ExchangeServicesClient/15.00.0516.004
</Trace>2014/06/22 14:27:23.471 Autodiscover.EWSMA trace, type=AutodiscoverRequest,
message=<Trace Tag="AutodiscoverRequest" Tid="52" Time="2014-06-22 14:27:23Z"
Version="15.00.0516.004">
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope
xmlns:a="http://schemas.microsoft.com/exchange/2010/Autodiscover"
xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<a:RequestedServerVersion>Exchange2013</a:RequestedServerVersion><wsa:Action>http://schemas.microsoft.com/exchange/2010/Autodiscover/Autodisco
r/GetUserSettings</wsa:Action><wsa:To>https://autodiscover.quan.com/autodiscover/autodiscover.svc</wsa:To>
</soap:Header>
<soap:Body>
<a:GetUserSettingsRequestMessage
xmlns:a="http://schemas.microsoft.com/exchange/2010/Autodiscover">
<a:Request>
<a:Users>
<a:User>
<a:Mailbox>user01@quan.com</a:Mailbox>
</a:User>
</a:Users>
<a:RequestedSettings>
<a:Setting>InternalEwsUrl</a:Setting>
<a:Setting>ExternalEwsUrl</a:Setting>
<a:Setting>ExternalEwsVersion</a:Setting>
</a:RequestedSettings>
</a:Request>
</a:GetUserSettingsRequestMessage>
</soap:Body>
</soap:Envelope>
</Trace>2014/06/22 14:27:23.519 Autodiscover.EWSMA trace,
type=AutodiscoverResponseHttpHeaders, message=<Trace
Tag="AutodiscoverResponseHttpHeaders" Tid="52" Time="2014-06-22 14:27:23Z">
HTTP/1.1 200 OK
Transfer-Encoding: chunked
request-id: 22eea09c-5136-4163-b35c-fbac60649071
X-TargetBEServer: exch.quan.com
X-FEServer: EXCH
Cache-Control: private
Content-Type: text/xml; charset=utf-8
Date: Sun, 22 Jun 2014 14:27:24 GMT
Set-Cookie:
X-BackEndCookie=CN=user01,CN=Users,DC=quan,DC=com=u56Lnp2ejJqBmsidnc7Nm8fSyc6
tLLm57M0p7JzczSmcnHzMrGy8fIxp7GgYHNz87L0MnQzc3fzsvFzMjFzcs=; expires=Sun,
22-Jun-2014 14:37:24 GMT; path=/Autodiscover; secure; HttpOnly
Server: Microsoft-IIS/8.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
</Trace>2014/06/22 14:27:23.519 Autodiscover.EWSMA trace, type=AutodiscoverResponse,
message=<Trace Tag="AutodiscoverResponse" Tid="52" Time="2014-06-22 14:27:23Z
Version="15.00.0516.004">
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:a="http://www.w3.org/2005/08/addressing">
<s:Header>
<a:Action
s:mustUnderstand="1">http://schemas.microsoft.com/exchange/2010/Autodiscover/
todiscover/GetUserSettingsResponse</a:Action>
<h:ServerVersionInfo
xmlns:h="http://schemas.microsoft.com/exchange/2010/Autodiscover"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<h:MajorVersion>15</h:MajorVersion>
<h:MinorVersion>0</h:MinorVersion>
<h:MajorBuildNumber>466</h:MajorBuildNumber>
<h:MinorBuildNumber>10</h:MinorBuildNumber>
<h:Version>Exchange2012</h:Version>
</h:ServerVersionInfo>
</s:Header>
<s:Body>
<GetUserSettingsResponseMessage
xmlns="http://schemas.microsoft.com/exchange/2010/Autodiscover">
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<ErrorCode>InvalidRequest</ErrorCode>
<ErrorMessage>RequestedServerVersion
标头已丢失或无效。</ErrorMessage>
<UserResponses />
</Response>
</GetUserSettingsResponseMessage>
</s:Body>
</s:Envelope>
</Trace>2014/06/22 14:27:23.519 Autodiscover, received GetUserSettings response,
duration Ms=57, response=<NULL>
详细信息: 未经处理的响应 Microsoft.Rtc.Internal.Storage.StoreResponse。
详细信息: 命令成功: False。
测试失败。配置过程如下:
1、Exchange服务器上使用configure-enterprisepartnerapplication.ps1成功配置AuthMetadaturl “https://lync.*.com/metadata/json/1”,反回The configuration has succeeded。
2、添加autodiscover.*.com A记录到Exchange服务器(前后端均集成在一台服务器上)。3、在Exchange服务器上配置了Clientaccessserver,autodiscoverserviceinternaluri=https://autodiscover.quan.com/autodiscover/autodiscover.xml。
4、在lync服务器(前后端集成在一台服务器上)上,通过Set-CsOAutbconfiguration配置了ExchangeautodiscoverUrl=“https://autodiscover.quan.com/autodiscover/autodiscover.svc”。
5、为Exchange申请了域证书,能够正常访问SSL OWA ECP以及autodiscover.*.com的xml、svc等页面。
6、lync服务器上,通过New-Cspartnerapplicatio成功从 Metadataurl=https://autodiscover.quan.com/autodiscover/metadata/json/1下载元数据文档,建立信任。
7、将管理员加入到了RTCUniversalUserAdmins,在lync上通过Test-CsExStorageConnectivity进行测试,测试账号均已经添加到Exchange 2013以及lync2013的用户中。