[Webinar] Streamline your web hosting managementRegister Today

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1363
  • Last Modified:

Exchange 2010 OWA Forms Based Login via Exchange Web Services Managed API

How do I/Is it possible, to authenticate to OWA 2010 using FBA, and receive the sessionid and cadata cookies back?

All I can find on the matter is articles related to owa 2003 and 2007, most suggesting to perform a POST directly to owaauth.dll. I have tried to adjust the code to work with 2010, by pointing to /owa/auth.owa, but the closest I get is a 440 Login Timeout error. Logging in through the client works fine.

Using EWS Managed API, I can authenticate and get data, but the CookieContainer object is empty unless I run a query first. The cookie it returns after doing so is named "exchangecookie" and does not help me so much.

Am I missing something? or is this just not done in 2010 now?

  • 2
1 Solution
You only had to do that with WebDAV when FBA was enabled on the Exchange VDir.  EWS POSTs to the EWS VDir, and I don't think it's possible to enable FBA on it.  Or, at least, there is no good reason to ever do so.
hrappapoAuthor Commented:
The reason to do so, is to create a single sign on from our external web app to Outlook Web App. I can do this via SharePoint Web Services to create an FBA ticket via the cookies in the response, and I am attempting something similar with exchange.
Oh, right.  It's really nothing to do with EWS Managed API, then, unless you are writing your own Exchange application, rather that actually trying to log in to OWA.  Or are you doing what they call 'scraping' the OWA HTML source that is returned to the client?

If you just want to log in to OWA using existing credentials, then any examples you found for OWA 2007 should have worked with OWA 2010 - they are /extremely/ similar below the surface.

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now