0

I use the Redemption library and I encountered a problem I can not solve by myself. In my project, I use a local XML file to login to the Exchange server (Autodiscover service is disabled on the server and can not be enabled). For this purpose, I create an Outlook Autodiscover "PreferLocalXml" registry key value and a domain name value defining the path to the local XML file. Redemption works correctly, but for some reason it does not use SSL when sending requests to the server. Is it possible to force SSL usage in this case? However, using Autodiscover (without local XML file) works fine (SSL is used). Thank you in advance for your help.

I tried setting RDOSession.ConnectEncryptData to true, but it did not work.

CarolineP
  • 1
  • 1

1 Answers1

0

But PreferLocalXml is supposed to point to a local file, not a web server, so SSL would not apply - the file is accesses using the file API.

Dmitry Streblechenko
  • 62,942
  • 4
  • 53
  • 78
  • This is clear to me. What I mean is that the LogonHostedExchangeMailbox method and the other methods do not use SSL if I specify a local xml file instead of using the Autodiscover service. – CarolineP Jan 10 '23 at 10:05
  • Redemption itself does not directly connect to the mailbox, MSEMS MAPI provider does. How do you know the connection is not using SSL? – Dmitry Streblechenko Jan 10 '23 at 16:15
  • 1
    You can see this using a traffic analyzer. The problem was solved by adding the mapiHttp protocol to the XML file: ` https://[SERVER_NAME]/mapi/emsmdb/?MailboxId=[MAILBOX_ID]@[DOMAIN_NAME] https://[SERVER_NAME]/mapi/nspi/?MailboxId=[MAILBOX_ID]@[DOMAIN_NAME] ` Thank you for your feedback. – CarolineP Jan 11 '23 at 14:38