20

I am trying to setup an online account that connects to my companies office365 but i'm getting the error: "Cannot fins WebDAV endpoint". I can normally connect and login to the account via browser. Do i need to install an additional connector to do this?

Jorge Castro
  • 70,934
  • 124
  • 466
  • 653
user2269847
  • 301
  • 1
  • 2
  • 5

2 Answers2

33

Am I right in assuming that you are using gnome online accounts? I had a similar problem in other distros, and I was able to replicate it on an Ubuntu 17.10 virtual machine.

After clicking the new exchange account button in gnome online accounts, I typed in my email and password and submitted. The following screen came up. (I switched out my normal email address.) See photo below.

Before
Before

After changing the custom username field to be my entire email address and the server field to be "outlook.office365.com" (this server name may not apply to you; to find yours, look in the settings of your webmail page), the configuration succeeded, and ubuntu asked for my password again to add it to a keychain. See photo below.

After After

Also, if you are using gnome evolution for your email, you may need to run the following command to install support for the exchange web server:

sudo apt install evolution-ews
karel
  • 110,292
  • 102
  • 269
  • 299
pcoppock1
  • 431
  • 4
  • 4
  • This is not installed with LUbuntu... have you a solution to connect as showed her over with lubuntu? – MUY Belgium May 06 '20 at 08:37
  • 3
    This is what I've been doing, and this is what has not been working. Would love to see other answers! – sh37211 Nov 09 '20 at 17:46
  • This did the trick for my work account! Just had to make sure Custom > Username was an exact match of "Email" (including the org's domain) and that the server was set as described (it resets on each failure! IME). – Verax Mar 31 '21 at 18:12
  • Took me months of passive troubleshooting to do so until i stumbled upon this post, thanks! – AkIonSight Oct 25 '21 at 11:33
  • don't forget to `sudo apt-get update -y` before trying to install evolution-ews. – Kamafeather Sep 21 '22 at 16:11
8

I cannot comment so here's my answer!

Follow instructions of pcoppock1's answer, if it does not work:

  • Try using outlook.com instead of outlook.office365.com.
  • Use an app password instead of your main account password, expecially if you have 2fa activated.
    If you dont know how to create an app password, check this ms guide

Hope it helps!

Riccardo Manzan
  • 231
  • 2
  • 5
  • This helped me get past the `Code: 456 - Unexpected response from server` error. Unfortunately, there's another error after that: `Failed to find ASUrl and OABUrl in autodiscover response`. This is on Ubuntu 20.10. – tjalling May 30 '21 at 18:27
  • 2
    Ah, this is a known bug. See [this answer](https://askubuntu.com/a/1315203), which links to [this bug](https://gitlab.gnome.org/GNOME/gnome-online-accounts/-/issues/68) – tjalling May 30 '21 at 18:37
  • What if your administrator has disabled app passwords? – Raffi Khatchadourian Feb 23 '23 at 23:27
  • 1
    @RaffiKhatchadourian , unfortunately i didn't found a way to skip this. The trick is actually an app password as this allows you to skip 2fa. BTW app passwords are something which purpose is security though I guess that if you ask your IT admin to allow you to create app passwords, he could actually consider that unless you are working in a big corporate with strict security policies. – Riccardo Manzan Feb 26 '23 at 23:05
  • Thanks, @Tx_monster. I'm unsure why the UI doesn't have app passwords as an available option, but, I can see how they can be less secure than true 2FA. – Raffi Khatchadourian Feb 28 '23 at 00:03