Ericsson / exchangecalendar

Exchange 2007/2010/2013 Calendar, Tasks, Contacts and GAL Provider.
GNU General Public License v3.0
925 stars 112 forks source link

Office365 Login Failure #604

Open h0ckeysk8er opened 7 years ago

h0ckeysk8er commented 7 years ago

1st-setup:2017-5-2 10:30:0.663:af1de78b-0764-449a-9e13-f7fb859553bb: : ExchangeRequest.loadend 1st-setup:2017-5-2 10:30:0.664:af1de78b-0764-449a-9e13-f7fb859553bb: : ExchangeRequest.loadend :loadend, readyState:4, status:401 1st-setup:2017-5-2 10:30:0.665:af1de78b-0764-449a-9e13-f7fb859553bb: : ExchangeRequest.loadend : 1st-setup:2017-5-2 10:31:24.314:mivExchangeAuthPrompt2: getPassword: A realm was specified:Exchange Web Service (_getPassword in mivExchangeAuthPrompt2.js:122) 1st-setup:2017-5-2 10:31:24.315:mivExchangeAuthPrompt2: getPassword: There is no password in the passwordCache[xxx@xxxx.xxxxxx.net|https://outlook.office365.com/ews/exchange.asmx|Exchange Web Service] (_getPassword in mivExchangeAuthPrompt2.js:140) 1st-setup:2017-5-2 10:31:24.317:mivExchangeAuthPrompt2: getPassword: password(1)=undefined (_getPassword in mivExchangeAuthPrompt2.js:143) 1st-setup:2017-5-2 10:31:24.331:mivExchangeAuthPrompt2: getPassword: There is no password in the cache. Going to see if there is one in the passwordManager. (_getPassword in mivExchangeAuthPrompt2.js:151) 1st-setup:2017-5-2 10:31:24.333:mivExchangeAuthPrompt2: passwordManagerGet: username=xxx@xxxx.xxxxxx.net, aURL=https://outlook.office365.com/ews/exchange.asmx, aRealm=Exchange Web Service (_passwordManagerGet in mivExchangeAuthPrompt2.js:621) 1st-setup:2017-5-2 10:31:24.336:mivExchangeAuthPrompt2: getPassword: There is no password stored in the passwordManager. (_getPassword in mivExchangeAuthPrompt2.js:159) 1st-setup:2017-5-2 10:31:24.337:mivExchangeAuthPrompt2: getPassword: password(2)=undefined (_getPassword in mivExchangeAuthPrompt2.js:163) 1st-setup:2017-5-2 10:31:24.339:mivExchangeAuthPrompt2: getPassword: First request for a password. Not going to ask user for it because we want to see if we need a password. For Kerberos for example we do not need a password. (_getPassword in mivExchangeAuthPrompt2.js:205) 1st-setup:2017-5-2 10:31:24.341:c55ac8a6-6ce2-419f-bdaa-0716cd670328: : 1 ExchangeRequest.sendRequest : user=xxx@xxxx.xxxxxx.net, url=https://outlook.office365.com/ews/exchange.asmx 1st-setup:2017-5-2 10:31:24.343:c7dfe223-ef68-4ff0-aed6-1694f170b464: ecnsIAuthPrompt2.getInterface: Ci.nsILoadContext 1st-setup:2017-5-2 10:31:24.345:c7dfe223-ef68-4ff0-aed6-1694f170b464: ecnsIAuthPrompt2.getInterface: Ci.nsILoadContext 1st-setup:2017-5-2 10:31:24.346:c7dfe223-ef68-4ff0-aed6-1694f170b464: ecnsIAuthPrompt2.getInterface: Ci.nsILoadContext 1st-setup:2017-5-2 10:31:24.347:c55ac8a6-6ce2-419f-bdaa-0716cd670328: : sendRequest Sending: <?xml version="1.0" encoding="utf-8"?>

AllPropertiesTextxxx@xxxx.xxxxxx.net512 1st-setup:2017-5-2 10:31:24.348:c7dfe223-ef68-4ff0-aed6-1694f170b464: ecnsIAuthPrompt2.getInterface: Ci.nsILoadContext 1st-setup:2017-5-2 10:31:24.348:c7dfe223-ef68-4ff0-aed6-1694f170b464: ecnsIAuthPrompt2.getInterface: Ci.nsILoadContext 1st-setup:2017-5-2 10:31:24.349:c7dfe223-ef68-4ff0-aed6-1694f170b464: ecnsIAuthPrompt2.getInterface: Ci.nsILoadContext 1st-setup:2017-5-2 10:31:24.350: >>>>>>>>>>> SUBMIT THIS LINE TO https://github.com/Ericsson/exchangecalendar/issues: ecnsIAuthPrompt2.getInterface({70d2b4fe-a552-48cd-8d93-1d8437a56b53}) 1st-setup:2017-5-2 10:31:24.350:c7dfe223-ef68-4ff0-aed6-1694f170b464: ecnsIAuthPrompt2.getInterface: Ci.nsILoadContext 1st-setup:2017-5-2 10:31:24.351:c55ac8a6-6ce2-419f-bdaa-0716cd670328: : ExchangeRequest.loadstart 1st-setup:2017-5-2 10:31:24.367:c7dfe223-ef68-4ff0-aed6-1694f170b464: ecnsIAuthPrompt2.getInterface: Ci.nsILoadContext 1st-setup:2017-5-2 10:31:24.369:c7dfe223-ef68-4ff0-aed6-1694f170b464: ecnsIAuthPrompt2.getInterface: Ci.nsILoadContext 1st-setup:2017-5-2 10:31:24.370: >>>>>>>>>>> SUBMIT THIS LINE TO https://github.com/Ericsson/exchangecalendar/issues: ecnsIAuthPrompt2.getInterface({1040ebe3-6ed1-45a6-8587-995e082518d7}) 1st-setup:2017-5-2 10:31:24.373:c7dfe223-ef68-4ff0-aed6-1694f170b464: ecnsIAuthPrompt2.getInterface: Ci.nsIApplicationCacheContainer 1st-setup:2017-5-2 10:31:24.374: >>>>>>>>>>> SUBMIT THIS LINE TO https://github.com/Ericsson/exchangecalendar/issues: ecnsIAuthPrompt2.getInterface({0d6ce59c-ad5d-4520-b4d3-09664868f279}) 1st-setup:2017-5-2 10:31:24.377:c7dfe223-ef68-4ff0-aed6-1694f170b464: ecnsIAuthPrompt2.getInterface: Ci.nsILoadContext 1st-setup:2017-5-2 10:31:24.379:c7dfe223-ef68-4ff0-aed6-1694f170b464: ecnsIAuthPrompt2.getInterface: Ci.nsIProgressEventSink 1st-setup:2017-5-2 10:31:24.380:c7dfe223-ef68-4ff0-aed6-1694f170b464: --- ecnsIAuthPrompt2.onStatus: STATUS_SENDING_TO of outlook.office365.com 1st-setup:2017-5-2 10:31:24.380:c7dfe223-ef68-4ff0-aed6-1694f170b464: --- ecnsIAuthPrompt2.onProgress: this is a nsIChannel 1st-setup:2017-5-2 10:31:24.381:c7dfe223-ef68-4ff0-aed6-1694f170b464: --- ecnsIAuthPrompt2.onProgress:2794 of 2794 1st-setup:2017-5-2 10:31:24.382:c7dfe223-ef68-4ff0-aed6-1694f170b464: --- ecnsIAuthPrompt2.onStatus: STATUS_WAITING_FOR of outlook.office365.com 1st-setup:2017-5-2 10:31:24.434:c7dfe223-ef68-4ff0-aed6-1694f170b464: ecnsIAuthPrompt2.getInterface: Ci.nsILoadContext 1st-setup:2017-5-2 10:31:24.436: >>>>>>>>>>> SUBMIT THIS LINE TO https://github.com/Ericsson/exchangecalendar/issues: ecnsIAuthPrompt2.getInterface({0d6ce59c-ad5d-4520-b4d3-09664868f279}) 1st-setup:2017-5-2 10:31:24.443:c7dfe223-ef68-4ff0-aed6-1694f170b464: --- ecnsIAuthPrompt2.onStatus: STATUS_SENDING_TO of outlook.office365.com 1st-setup:2017-5-2 10:31:24.444:c7dfe223-ef68-4ff0-aed6-1694f170b464: --- ecnsIAuthPrompt2.onProgress: this is a nsIChannel 1st-setup:2017-5-2 10:31:24.445:c7dfe223-ef68-4ff0-aed6-1694f170b464: --- ecnsIAuthPrompt2.onProgress:2845 of 2845 1st-setup:2017-5-2 10:31:24.445:c7dfe223-ef68-4ff0-aed6-1694f170b464: --- ecnsIAuthPrompt2.onStatus: STATUS_WAITING_FOR of outlook.office365.com 1st-setup:2017-5-2 10:31:29.534:c7dfe223-ef68-4ff0-aed6-1694f170b464: ecnsIAuthPrompt2.getInterface: Ci.nsILoadContext 1st-setup:2017-5-2 10:31:29.537:c55ac8a6-6ce2-419f-bdaa-0716cd670328: : ExchangeRequest.progress. loaded:0, total:0 1st-setup:2017-5-2 10:31:29.538:c55ac8a6-6ce2-419f-bdaa-0716cd670328: : ExchangeRequest.onLoad :load, readyState:4, status:401 1st-setup:2017-5-2 10:31:29.539:c55ac8a6-6ce2-419f-bdaa-0716cd670328: : ExchangeRequest.onLoad :Content-Length: 0 Server: Microsoft-IIS/8.5 request-id: eac7dc77-4ba5-4a6d-86f4-470def2cad96 X-CalculatedFETarget: CY1PR0801CU001.internal.outlook.com Set-Cookie: exchangecookie=b91f9d557dd34989a76005a7165227f2; path=/ X-FEProxyInfo: CY1PR0801CA0038.NAMPRD08.PROD.OUTLOOK.COM X-CalculatedBETarget: CY1PR0201MB0682.namprd02.prod.outlook.com X-BackEndHttpStatus: 401, 401 X-DiagInfo: CY1PR0201MB0682 X-BEServer: CY1PR0201MB0682 X-Powered-By: ASP.NET X-FEServer: CY1PR0801CA0038, CY4PR02CA0017 WWW-Authenticate: Basic Realm="",Basic Realm="",Basic Realm="" Date: Tue, 13 Jun 2017 17:31:28 GMT 1st-setup:2017-5-2 10:31:29.540:c55ac8a6-6ce2-419f-bdaa-0716cd670328: : ExchangeRequest.onLoad : 1st-setup:2017-5-2 10:31:29.541:c55ac8a6-6ce2-419f-bdaa-0716cd670328: exchangeRequest.isHTTPRedirect.xmlReq. xmlReq.readyState:4, xmlReq.status:401 1st-setup:2017-5-2 10:31:29.541:c55ac8a6-6ce2-419f-bdaa-0716cd670328: : isConnError req.status=401: Unauthorized URL:https://outlook.office365.com/ews/exchange.asmx 1st-setup:2017-5-2 10:31:29.542:c55ac8a6-6ce2-419f-bdaa-0716cd670328: ecExchangeRequest.fail: aCode:-19, aMsg:HTTP Client error 401: Unauthorized URL:https://outlook.office365.com/ews/exchange.asmx 1st-setup:2017-5-2 10:31:29.545:c55ac8a6-6ce2-419f-bdaa-0716cd670328: : ExchangeRequest.loadend 1st-setup:2017-5-2 10:31:29.546:c55ac8a6-6ce2-419f-bdaa-0716cd670328: : ExchangeRequest.loadend :loadend, readyState:4, status:401 1st-setup:2017-5-2 10:31:29.548:c55ac8a6-6ce2-419f-bdaa-0716cd670328: : ExchangeRequest.loadend :
cvoltz commented 7 years ago

Try installing 4.0.0-beta2. That fixed it for me. See related issues #580 and #599.

kwagner001 commented 7 years ago

Yes, installing the 4.0.0-beta2 fixed it for me too. I was seeing multiple 401 unauthorized errors and my calendars were going into R/O mode. The characteristics of the problem seemed to be some sort of processing issue with the password manager in Thunderbird, checking for Kerberos and saving passwords. I have four different Office 365 e-mail addresses I need to setup, each with a calendar so I can see the integrated schedule.

When ewscalendar would connect for 1st time, it would try the EWS URL without a password in case it was using Kerberos, it would get a 401 HTTP error, but never fetch a password from password manager nor prompt the user for a password. After that everything else failed to authenticate and you couldn't create the calendar. You can see this problem by looking at your stored passwords in thunderbird, options, security and you will see no passwords for EWS or sometimes cross set passwords for different accounts. If you have two Office 365 accounts, you might only find one EWS entry for the Office 365 EWS URL instead of the two your should find or you might see the passwords mixed up.

enozkan commented 7 years ago

kwagner001 -- while you are at it, I suggest you move to the latest version, 4.0.0-beta4, from a fork of this project that is actually maintained: https://github.com/ExchangeCalendar/exchangecalendar/releases/tag/v4.0.0-beta4

If you come across any problems, that fork actually has people actively working to fix them.