cfexchangeconnection does not work with Exchange Online
Hi,
we have an older internal application that is still running on coldfusion 2016 (not so easy to update because of using Coldbox and other frameworks). And we need to move the connection from our OnPrem Exchange (which is working fine) to the 365 cloud. But it doesn’t work and I read that cfexchangeconnection doesn’t work at all with Exchange Cloud, is this true? Is there another solution for Coldfusion 2016?
I am grateful for any information and help
Karsten
Microsoft has disabled basic Auth making the tag not work. Check out this post, Adobe is working on a fix. It is moving to beta, hoping for a release in the next couple months. https://tracker.adobe.com/#/view/CF-4212511
More on Microsoft’s announcement: https://techcommunity.microsoft.com/t5/exchange-team-blog/basic-authentication-and-exchange-online-september-2021-update/ba-p/2772210
I have same issue.
We have just migrated from local exchange server to Office 365 and cfexchangeconnection doesn’t work anymore.
The error message I get is : Could not connect to the exchange server with the credentials. The remote server returned an error: (401)Unauthorized
We are using Coldfusion 11 and Java jdk1.8.0_66
As the others have said, it would help to hear what error you got. What they offer may solve the problem, or another issue to consider is that you may have your old CF2016 still running also on an old update of whatever Java version it’s using (whether Java 8 or 11). Both those (whichever you may be using) have had updates as recently as July of this year (Java 8 update 301 and Java 11 update 12).
If you look at the CF Admin and its “settings summary” page, you will see it showing the “java version”. Let us know what it reports. If it’s something quite older than these, you may find that your problem can be solved simply by updating the JVM that CF uses. I have a blog post with more on that, Solving problems calling out of CF via https, by updating JVM.
Otherwise, hope you get somewhere with the other suggestions.
What error are you seeing and what are your current CFExchange params? We are able to connect to our O365 services no problem (for now) with these connection settings:
<cfexchangeconnection action=”open”
username=”#Username#”
password=”#userpswd#”
server=”outlook.office365.com”
protocol=”https”
serverversion=”2010″
connection=”testconn1″
formBasedAuthentication=”true”
formBasedAuthenticationURL=”https://outlook.office365.com/owa/auth/owaauth.dll”>
You must be logged in to post a comment.