Error initializing module 'auth_cyrus'

Hello!

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 ‘xxx.com’: /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:
/usr/share/jitsi-meet/prosody-plugins/
/usr/lib/prosody/modules/

Lua environment

Lua version: Lua 5.2

Lua module search paths:
/usr/lib/prosody/?.lua
/usr/local/share/lua/5.2/?.lua
/usr/local/share/lua/5.2/?/init.lua
/usr/local/lib/lua/5.2/?.lua
/usr/local/lib/lua/5.2/?/init.lua
/usr/share/lua/5.2/?.lua
/usr/share/lua/5.2/?/init.lua

Lua C module search paths:
/usr/lib/prosody/?.so
/usr/local/lib/lua/5.2/?.so
/usr/lib/x86_64-linux-gnu/lua/5.2/?.so
/usr/lib/lua/5.2/?.so
/usr/local/lib/lua/5.2/loadall.so

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 https://prosody.im/doc/release/0.11.0#lua-5.2. 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 http://deb.debian.org/debian stretch main
deb-src http://deb.debian.org/debian 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?

Thanks

Hi Jesus01
I just added that to my post