Any oauth2 cyrus-sasl plugin that works with 16k pagesize?

I use mbysnc to fetch emails. It uses cyrus-sasl for authentication. I am trying to configure my new work email which uses Office 365 and can only use oauth2. There are at least a couple of different oauth2 plugins:

  1. The first one is packaged by fedora: GitHub - tarickb/sasl-xoauth2: SASL plugin for XOAUTH2
  2. There is also this: GitHub - moriyoshi/cyrus-sasl-xoauth2: XOAUTH2 mechanism plugin for cyrus-sasl

however both fail with a segmentation fault. I think this is due to a page size issue. I have determined this using,

readelf -l /usr/lib64/sasl2/libsasl-xoauth2.so
readelf -l /usr/lib64/sasl2/libxoauth2.so

both of these commands contain 0x10000 under the Align heading.

I have opened issues on both: Segmentation fault on systems with 16k page size · Issue #91 · tarickb/sasl-xoauth2 · GitHub and Segmentation fault on systems with 16k page size · Issue #14 · moriyoshi/cyrus-sasl-xoauth2 · GitHub

Does anyone know of a plugin that works on Asahi?

Thanks

I didn’t realize there was an zero in the output I posted above compared to the example on the Asahi docs. So there is no page-size issue. However mbsync still crashes with both of the plugins. I would still like to know of a working xoauth plugin.

This was an mbsync issue and had to do with an initial sync. Building the latest version of isync (1.5 which is not in fedora repos) from source fixed the issue. After the successful initial sync the version in fedora repos also works.

1 Like