exchangecalendar icon indicating copy to clipboard operation
exchangecalendar copied to clipboard

401 Unauthorized when creating a new calendar

Open wbloos opened this issue 7 years ago • 10 comments

After a routine Lightning upgrade, my Exchange calendar changed to read-only. I read about issues with "suspend", and followed the suggested solution of removing and re-adding the calendar. But it seems impossible to re-add the calendar. When choosing to add a new calendar, I keep getting a "401 Unauthorized" upon clicking the button "check server and mailbox". The server URL is in the form https:///ews/exchange.asmx I went to the same address in a browser and successfully logged in with my credentials, I am then redirected to the Services.wsdl . Thunderbird does not ask for credentials. The problem is the same whether I fill in the Active Directory domain or not.

New versions:

  • Thundebird 52.1.1 (64-bit)
  • Lightning 5.4
  • Exchange EWS provider 3.9.0

wbloos avatar May 26 '17 12:05 wbloos

Not sure if related to #254

wbloos avatar May 26 '17 12:05 wbloos

Duplicate of #595, #580 and many others. #580 contains a link to a modifed version 4.0.1003, try that and see if it works - it does for me.

martok avatar May 26 '17 13:05 martok

try Username: @yourdomain.tld this worked for me with 4.0.0 Beta 1

https://github.com/ExchangeCalendar/exchangecalendar/releases/tag/v4.0.0-beta1

ds2k5 avatar Jun 01 '17 06:06 ds2k5

using username@domain did not work for me, with or without the tld. the modifed version 4.0.1003 from #580 does work. thank you for the replies, you made my planing baerable again ;) However it would be much nicer if there would be an officially supported solution. Is there a way that we can contribute to that?

wbloos avatar Jun 01 '17 08:06 wbloos

I can verify that versions =< 3.9.0 don't work but the 4.0.0-beta1 version works.

rexberg avatar Jun 08 '17 09:06 rexberg

@HeadlessChild

Hi, yes in my case this is ture.

ds2k5 avatar Jun 08 '17 18:06 ds2k5

I was able to get around this by leaving Primary email address blank and using [email protected] as Username. This successfully prompted me for password

a1xndr avatar Jun 13 '17 20:06 a1xndr

I tried latest master and got the same issue. commit 6116d9c73e24e341f8e58b8535e6738a5ede2a24 Merge: e316be3 f53948f Author: Babu Vincent(bavincen) [email protected] Date: Wed Aug 3 13:38:48 2016 +0530

After pressing "Check mailbox" button it didn't ask me for the password and in console I see that it is trying to reach my server with domain credentials but without a password.

mpashka avatar Jun 20 '17 18:06 mpashka

I am still having issues related to 401 Unauthorized Access: URL, when trying to create a new calender. I am on the latest TB60 + 5.0.0-alpha3 version.

If I fill the domain, I cannot get any access at all (401). If I leave it out, I can get temporary access. After a while, the calender gets read-only. The error console tells me the following: `POST XHR https://xxx:xxx%@{exchange_server}/ews/exchange.asmx [HTTP/1.1 401 Unauthorized 20ms]

XML Parsing Error: no root element found Location: https://xxx:xxx@{exchange_server}/ews/exchange.asmx Line Number 1, Column 1: exchange.asmx:1:1`

Anybody else is having the same problem with these versions?

floschl avatar Mar 27 '19 12:03 floschl

I had the same problem and i have just solve it . The only thing you have to do is enable the setting on you domain (mine is gmail) that is about allow less secure site to have access on your account .

AntriaPan avatar Aug 07 '19 08:08 AntriaPan