Error initializing module 'auth_cyrus'


I am trying to add ldap-auth to my conifig.

Did everything as described here HowTo, but I find the following message in my /var/log/prosody/prosody.err

Modulemanager error Error initializing module ‘auth_cyrus’ on ‘’: /usr/lib/prosody/util/startup.lua:144: module ‘cyrussasl’ not found:
no field package.preload[‘cyrussasl’]
no file ‘/usr/lib/prosody/cyrussasl.lua’
no file ‘/usr/local/share/lua/5.2/cyrussasl.lua’

I think I have installed the modules:

root@xxx:~# apt -y install prosody-modules lua-ldap
Reading package lists… Done
Building dependency tree
Reading state information… Done
lua-ldap is already the newest version (1.2.5-1).
prosody-modules is already the newest version (0.0~hg20190203.b54e98d5c4a1+dfsg-1+deb10u1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

apt search lua-cyrussasl
Sorting… Done
Full Text Search… Done
lua-cyrussasl/stable,now 1.0.0-6.1 amd64 [installed]
Cyrus SASL library for the Lua language

lua-cyrussasl-dev/stable,now 1.0.0-6.1 amd64 [installed]
Cyrus SASL development files for the Lua language

But it did not work out.

I use Debian10 with Prosody 0.11.2 and Lua 5.2.

:~# prosodyctl about
Prosody 0.11.2

Prosody directories

Data directory: /var/lib/prosody
Config directory: /etc/prosody
Source directory: /usr/lib/prosody
Plugin directories:

Lua environment

Lua version: Lua 5.2

Lua module search paths:

Lua C module search paths:

LuaRocks: Not installed

Lua module versions

lfs: LuaFileSystem 1.6.3
libevent: 2.1.8-stable
luaevent: 0.4.6
lxp: LuaExpat 1.3.0
socket: LuaSocket 3.0-rc1
ssl: 0.7

What was my mistake ?

Same problem here. It is a known issue Curious if it will get fixed some day. I cannot find any information about plans to fix.

So the alternative would be a downgrade ?
Any howto ?

Ok, i think I will switch to ldap2

I was facing this problem. Solution? downgrade prosody and prosody-modules:

apt install prosody=0.9.12-2+deb9u2
apt install prosody-modules=0.0~hg20170123.3ed504b944e5+dfsg-1+deb9u1

Now it is authenticating!

1 Like

Thats it! Thank you.
I needed to add the stretch repo to my debian buster distro with the intention to only install those two packages. I used the default repo for debian stretch. So I created a new apt list file for it. /etc/apt/sources.list.d/stretch.list with the following two lines
deb stretch main
deb-src stretch main
To those who are curious, I replaced the existing configuration file /etc/prosody/prosody.cfg.lua when downgrading. In my case prosody didn’t start with the configuration file from version 0.11.5-1.

Hope it will be fixed from prosody anytime soon to be able to use the newer version from debian buster repo.

Hi Christian,

Could you please mention the repo that you use?


Hi Jesus01
I just added that to my post

I did not want to change my package sources. Alternatively I simply downloaded the newer package from Debian 11 and installed it on my Debian 10 installation: