Skip to main content
Participating Frequently
September 3, 2009
Question

CFExchangeConnection and 440 error

  • September 3, 2009
  • 7 replies
  • 6024 views

I have been getting this error when trying to connect to Exchange 2007 using <cfexchangeconnection>:

Unable to connect to the Exchange server using HTTP/HTTPS protocol. HTTP response code : 440

I have seen the other discussions on this topic and even tried calling Adobe Support but haven't had any luck in getting a fix. I was hopeful after the recent cumlative hot fix which addressed the bug I am encountering there would be a fix...

http://kb2.adobe.com/cps/511/cpsid_51180.html

See item 74297, "Fix for error 440 status thrown when connecting to Exchange server 2007 using cfexchangeconnection with attribute formbasedauthentication enabled."

Unfortunately I am still getting the same error. Here is the code I am using, I took out the sensitive bits:

<cfexchangeconnection

action="open"

connection="cfex"

server="owa"

protocol="https"

userName="DOMAIN\user"

password="mypassword"

formbasedauthentication="no" />

also tried

<cfexchangeconnection

action="open"

connection="cfex"

server="owa"

protocol="https"

userName="DOMAIN\user"

password="mypassword"

formbasedauthentication="yes"

formBasedAuthenticationURL="https://owa/owa/auth/logon.aspx"

/>

This topic has been closed for replies.

7 replies

March 17, 2010

Hi,

Can you confirm which authentication is chosen at Exchange server?

Regards,

Shilpi

pkh80Author
Participating Frequently
March 18, 2010

I tried connecting directly to the exchange server but that didn't seem to work. I was hopeful this was the problem because our Exchange servers are clustered.

Shilpi - I don't know what you mean which authentication is chosen on the Exchange server? I am trying to use the formBasedAuthentication method for the CFExchange tag.

I guess the most frustrating part of this is seemingly no matter what I do, I always get the same 440 error... it would be so much more useful to see a dump or stacktrace of what's actually happening internal to CF. But it seems if everything doesn't go just right, you get this generic error message.

March 20, 2010

Hi,

On the exchange server there are few properties. One of those is authentication mechanism. In formbasedAuthentication at Exchange server there are following authentications -

1. basic authentication

2. NTLM authentication

3. Integrated Windows authentication (IWA)

From above 3, we support only "basic Authentication". Please confirm which authentication method is chosen at exchange server to which you are trying to connect.

Thanks & Regards,

Shilpi

itisdesign
Inspiring
March 17, 2010

Hi pkh80,

I found a difference between CF8 & CF9 wrt cfexchangeconnection's "server" attribute and an Exchange setup that spans multiple servers.

Basically, CF8 wasn't authenticating via the webmail address (ex: server="webmail.domain.com"), but CF9 handled this fine.

So, in CF8, it required connecting directly to the specific mailbox server.

HTH!,

-Aaron Neff

pkh80Author
Participating Frequently
March 15, 2010

Still no solution on this

Inspiring
March 15, 2010

It might be an idea to raise it as an issue, if it's still bung in CF9.

http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html#

If you raise an issue, it will get onto Adobe's radar.

--

Adam

fergnab
Participating Frequently
December 31, 2009

Same problem here. Its too bad. has anyone ever got this to work?

pkh80Author
Participating Frequently
November 12, 2009

Sadly this doesn't appear to be any better in CF9... anyone have clues to me as to some troubleshooting that can be done with the 440 error? is it just a generic error?

Inspiring
September 17, 2009

Is https://owa/owa/auth/logon.aspx definitely reachable from the CF server?  What do you get if you CFHTTP that URL?

I suspect to make an HTTPS connection, you will need a certificate installed on the client (in this case, the client being the CF server).

Google "cfhttp https" for discussion on this. HTTPS and certificates is not really my area of expertise, so I'm guessing a bit here.

--

Adam

pkh80Author
Participating Frequently
September 18, 2009

Works if I use cfhttp... I imported the certificate, its not that =o)

pkh80Author
Participating Frequently
September 11, 2009

Bump... I have seen similar threads go unanswered, can I assume this is still a bug in CF8?

Inspiring
September 11, 2009

Not sure if this will help you but I've discovered by a series of trials and errors that the 4 leading causes of failure are:

1. Misnaming the Server URL.

2. Misnaming the Userid.

3. Not naming the mailbox. This one has fixed more than one situation for me at least.

4. Not naming the protocol.

For what its worth I have successfully connected to both Exchange 2003 and 2007 using CFExchangeConnection.

Let us know how it works out for you.

pkh80Author
Participating Frequently
September 17, 2009

Tried everything but still getting same error message.

Does cfexchangeconnection require the authentication form match a particular format?