• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Connecting to Exchange

Guest
Nov 09, 2007 Nov 09, 2007

Copy link to clipboard

Copied

I am trying to test out the new cfexchange tags in Colldfusion 8 so that I can integrate in with our intranet at some point but am having some difficulty.

I am just testing by using the tag:

<cfexchangeconnection action="open" connection="myConn" server="192.168.0.20" username="myUsername" password="myPassword" formbasedauthentication="true">

I keep getting the error, Unable to connect to the Exchange server using HTTP/HTTPS protocol.
HTTP response code : 302

Here is what I have currently checked.

1) I can ping the exchange server from the server that is running Colfusion 8
2) The Exchange server has "allow" for MS Exchange Server in the "Web service Extension" of IIS
3) Outlook Web Access is working and is enabled for my user account
4) Rechecked the ip address of the Exchange Server
5) tried username/passsword combo that I use for Exchange and OWA and even tried appending username@domainname.local

Anyone have any ideas to test further

Thanks,

Brian



TOPICS
Advanced techniques

Views

4.8K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 09, 2007 Nov 09, 2007

Copy link to clipboard

Copied

Brain, you'll need to add "protocol" property. I had same problem.

Syed

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 12, 2007 Nov 12, 2007

Copy link to clipboard

Copied

I added the protocol="http" but still received the error:

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

I tried adding protocol="https" and received:

SSLHandshakeException when connecting to the Exchange server at 192.168.0.20 using HTTPS protocol.
The SSL certificate installed on the Exchange server is not found on the ColdFusion server. Ensure that the required certificates are installed in the certificate store of the JVM.

Any possible ideas for further testing? Am I not able to connect for testing purposes using http protocol? Do I need to connect using https?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 12, 2007 Nov 12, 2007

Copy link to clipboard

Copied

hi Brian,

To use HTTPS to access the exchange server, you must Enabling HTTPS access on your ColdFusion server.
1. Open Outlook Web Access in Internet Explorer and go to File->Properties.
2. Click the certificates button.
3. Click the Details tab and the 'Copy To File' button on the tab. Then follow the wizard options to save the certificate.

To install the certificate, run the following command using keytool.exe, which is in the jre\bin folder:

keytool.exe -importcert -file <path_to_certificate_file> -keystore ..\lib\security\cacerts

for more details you can see at

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=cfexchange_3.html

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 13, 2007 Nov 13, 2007

Copy link to clipboard

Copied

I have it working now.

I had to copy the cacerts file to the Coldfusion8/runtime/jre/lib/security directory. It seems when I was using the keytool it was creating the cacerts file in the wrong dirtectory.

Thanks to all that replied!

- Brian

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 19, 2010 Nov 19, 2010

Copy link to clipboard

Copied

I was trying to follow these instructions, and have 3 .cer files that we use for our

Exchange server.

I'm trying to install the certificates, I got 1 installed, but when I try the others, I'm getting:

Certificate not imported, (mkey) already exists.........

But I'm still not able to access the Exchange server.....getting a error that says:

Could not login to the Exchange server.

Verify the server name, username, and password. Ensure that proper client certificates are installed.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 20, 2010 Nov 20, 2010

Copy link to clipboard

Copied

You might have to merge these certificates in a single file. They're just text files, you should be able to do this in Notepad. If I recall correctly, you may need to specify them in the same order as their hierarchy: root, intermediate, specific.

Dave Watts, CTO, Fig Leaf Software

http://www.figleaf.com/

http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on

GSA Schedule, and provides the highest caliber vendor-authorized

instruction at our training centers, online, or onsite.

Read this before you post:

http://forums.adobe.com/thread/607238

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 27, 2014 Aug 27, 2014

Copy link to clipboard

Copied

LATEST

This is a 'me too' post.

I'm having the same kind of problem described in the original post.

I got cfexchangeconnection working between ColdFusion 10 on my PC and the exchange 2010 server.  This involved importing the server's certificate & etc.

When the working code was transferred to a server running ColdFusion 9, (and yes I did remember to also import the certificate to the server )

I find that the connection no longer works.  I get:

Unable to connect to the Exchange server using HTTP/HTTPS protocol.

HTTP response code : 302

Just to get that far, I had to remove the serverversion attribute which was added with CF10 and not supported in CF9

I also tried changing the parameters thusly:(changes in Bold)

<cfexchangeconnection

    action="open"

    username="#config.username#"

    password="#config.pwd#"

    connection="mailpickupconn"

    server="mail.mydomain.com"

   mailboxname="My Account"

    protocol="https"

   formBasedAuthentication="true"

     formBasedAuthenticationURL="https://mail.mydomain.com/owa/auth/owaauth.dll" />

The attributes in BOLD were added from a recommendation I found on another forum, but to no avail....

Is there a cfexchangeconnection solution for the combination of CF9 / Exchange 2010 (&& 2013) / HTTPS ?

TIA and Cheers,

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation