For the life of me, I can't get this to work:
<cfset username = "domain\username">
<cfset password = "password">
<cfset server = "exchangeserver">
<cfset mailboxname = "firstname.lastname">
<cfexchangeconnection action="OPEN" connection="conn1" server="#variables.server#" username="#variables.username#" mailboxname="#variables.mailboxname#" password="#variables.password#" protocol="https" serverversion="2010" formbasedauthentication="True" formBasedAuthenticationURL="https://#variables.server#/owa/auth/owaauth.dll">
I know the URL is correct, because if I go to https://exchangeserver/owa/auth/logon.aspx, I get to the web login page.
My error:
Could not connect to the exchange server with the credentials. | |
The remote server returned an error: (401)Unauthorized |
What the heck am I doing wrong? The earlier error I got was a certificate error, which I resolved using keytool and cert. We are using Exchange 2010. I did find this:
ColdFusion Connecting to Exchange 2010
So is this a bug? If so, does it still exist in CF11? Thank you.