因此,我正在ColdFusion 8中嘗試從同一頁面上的多個不同用戶獲取Exchange服務器的日曆/日程表。由於您似乎只能在打開連接時指定郵箱,所以看起來不幸的是,我必須爲每個希望訪問的郵箱打開一個新連接。問題是,似乎只有我打開的第一個連接工作...任何後續連接失敗。ColdFusion cfexchange連接和多個郵箱
我有以下幾點:
<cfloop list="mailbox1,mailbox2,mailbox3" index="mailboxname">
<cfexchangeconnection action="open" connection="conExchangeSchedules"
server="****"
username="****"
password="****"
mailboxname="#mailboxname#"
protocol="https"
formbasedauthentication="false">
<cfexchangecalendar
action = "get"
name = "qrySchedule"
connection = "conExchangeSchedules">
<cfexchangefilter name="StartTime" from="{ts '2013-01-06 00:00:00'}" to="{ts '2013-01-12 23:59:59'}">
</cfexchangecalendar>
<cfexchangeconnection action="close" connection="conExchangeSchedules">
<cfdump var="#qrySchedule#">
</cfloop>
只有第一個郵箱是成功的。我知道所有的郵箱都是有效的,因爲我已經單獨嘗試了每個郵箱,並將其作爲列表中的第一個值。
但所有其他連接返回錯誤
Could not login to the Exchange server.
Verify the server name, username, and password. Ensure that proper client certificates are installed.
顯然不是一個有用的錯誤,因爲第一連接工作正常(因此「檢驗」所有必要的設置)。
我甚至試圖用不同的名字創建每個連續的連接。同樣的問題。
有沒有人有任何指示或想法?
在此先感謝! -Carl
您是否正在更改每個郵箱的用戶憑據,因爲它循環?或者使用一個擁有所有權利的人? –