Authentication ldap fails after Upgrade prosody 0.11

Hi,
after update prosody 0.11.7 , my authentication ldap no longer works.
After several days of research, i need help please.

Error in the prosody logs: auth_ldap2 error Failed to load the LuaLDAP library for accessing LDAP: /usr/lib/prosody/util/startup.lua:201: module ‘lualdap’ not found

Nov 14 18:26:51 localhost:auth_ldap2    error   Failed to load the LuaLDAP library for accessing LDAP: /usr/lib/prosody/util/startup.lua:201: module 'lualdap' not found:
            no field package.preload['lualdap']
            no file '/usr/lib/prosody/lualdap.lua'
            no file '/usr/local/share/lua/5.2/lualdap.lua'
            no file '/usr/local/share/lua/5.2/lualdap/init.lua'
            no file '/usr/local/lib/lua/5.2/lualdap.lua'
            no file '/usr/local/lib/lua/5.2/lualdap/init.lua'
            no file '/usr/share/lua/5.2/lualdap.lua'
            no file '/usr/share/lua/5.2/lualdap/init.lua'
            no file '/usr/lib/prosody/lualdap.so'
            no file '/usr/local/lib/lua/5.2/lualdap.so'
            no file '/usr/lib/x86_64-linux-gnu/lua/5.2/lualdap.so'
            no file '/usr/lib/lua/5.2/lualdap.so'
            no file '/usr/local/lib/lua/5.2/loadall.so'
    Nov 14 18:26:51 localhost:auth_ldap2    error   More information on install LuaLDAP can be found at http://www.keplerproject.org/lualdap

Ubuntu 18.04.3 LTS
jitsi-meet:all/stable 2.0.5142-1
prosody:amd64/bionic 0.11.7-1~bionic4

Thank you,

luarocks-5.2 install lualdap?

Thank you for your reply.

luarocks-5.2 install lualdap --> luarocks-5.2: command not found. Even after apt-get install luarocks
Did I miss a step?
apt-get install luarocks

I think Ubuntu 20.04 is a better option for the Ubuntu users. Some issues are related on the older packages.

Try with luarocks install lualdap

Hi,
Thanks Damencho.
it’work after install luarocks and remove lua5.1
luarocks install lualdap

I also installed libldap2-dev otherwise ‘luarocks install lualdap’ produced a new error.

Hi @ajj75012 . i have the same errors . Is it possible to have a detailed steps on the procedure of removing lua5.1 and subsequent steps ? . Sorry but i’m not a developer. It would be a great help 'cause I’m stuck. I understand that Luarocks is package manager for Lua but i don’t have the expertise.
thank you

done it. missed the link with the instruction on github

can you help me please, what instruction on github?

Hi. I was referring to this link : LDAP Authentication · jitsi/jitsi-meet Wiki · GitHub .

Regards,

1 Like

Thank you, I ended up solving my problem which is that I didn’t have lua5.2-dev installed. So luarocks could not build the lualdap package. Once installed, all was good and ldap was working again.