开发者

Error using ColdFusion cfexchangeconnection to connect to Exchange server

I am getting an error when trying to connect to an Exchange server using the cfexchangeconnection tag. First some code:

<cfexchangeconnection action="open" 
    server="****"   
    username="****" 
    password="****"
    connection="myEX" 
 开发者_运维技巧   protocol="https"
    port="443">

I know its the right server because it fails when not processing via https. I have tried:

  • Following all the instructions here http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec14f31-7fed.html
  • Prefixing username with a domain name, adding @domain name, etc and no luck.

The error I get is:

**Access to the Exchange server denied.**

Ensure that the user name and password are correct.

Any ideas


Here's an idea - this is what I needed to do to make my cfexchange connection work. Not entirely sure if it's the same problem. I think I had a 440 error, rather than your 401 error.

I'm using:

  • https
  • webdav
  • forms based auth
  • Exchange 2007
  • Coldfusion 8
  • Windows 2003 servers

Here's the connection string that worked for me. What was keeping my connection from working was the need for the formBasedAuthenticationURL. This is a poorly documented attribute by both Adobe and Microsoft.

<cfexchangeconnection action="open"
 username="first.last"
 password="mypassword"
 mailboxname="myAcctName"
 server="my.mail.server"
 protocol="https"
 connection="sample"
 formBasedAuthentication="true"
 formBasedAuthenticationURL="https://my.mail.server/owa/auth/owaauth.dll">

    <cfexchangecalendar action="get" name="mycal" connection="sample">
        <cfexchangefilter name="startTime" from="#theDate#" to="#theEndDate#">
    </cfexchangecalendar>

<cfexchangeConnection action="close" connection="sample">

Additional notes:

  • IIS and WebDAV are enabled on the target Exchange server.
  • The username and password you're using has the appropriate permissions for a WebDAV connection. (I'm not the Exchange admin, so I'm not sure what they are, but I think the account needs to be allowed to connect to OWA. - Please correct me if I am wrong.)

Optional: (don't use if you don't have to)

  • IF HTTPS is required, use the appropriate argument.
  • IF Forms Based Authentication is on in Exchange 2007 (as was my case), you'll have to work around it using the formBasedAuthenticationURL argument.

Not sure if that's it, but I hope it is!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜