Hello!
I'm new to this forum and FreeBSD, so I hope I'm addressing my problem at the right location.
First of all I want to say thanks for this great community/ forum and that I already have learned much by reading through some of the threads here.
My problem:
I'm currently migrating my server from Linux (Debian) to FreeBSD (11.1).
I had Prosody running on my Linux server, using LDAP for user authentication. So I (should) have a working configuration for this.
When I now try to set this up the same way in FreeBSD, it seems like there is a problem with the 'auth_ldap' module in Prosody. I see the following error in Prosody's log:
I've installed prosody (v 0.10.0) as package via pkg. It automatically installed some lua5.1 packages as well. Since I've read that prosody 0.10.0 can also run with lua5.2, I tried to change to that version of lua, but without success. (When I install lua5.2, pkg removes some of the related lua5.1 packages, which results in prosody gets removed as well.)
Does anyone have an idea what could be my problem? Is this maybe a bug in the latest prosody port? Should I report an issue for that?
Any help is welcome!
Thanks,
Fool
I'm new to this forum and FreeBSD, so I hope I'm addressing my problem at the right location.
First of all I want to say thanks for this great community/ forum and that I already have learned much by reading through some of the threads here.

My problem:
I'm currently migrating my server from Linux (Debian) to FreeBSD (11.1).
I had Prosody running on my Linux server, using LDAP for user authentication. So I (should) have a working configuration for this.
When I now try to set this up the same way in FreeBSD, it seems like there is a problem with the 'auth_ldap' module in Prosody. I see the following error in Prosody's log:
Code:
Jan 08 20:36:11 general info Hello and welcome to Prosody version 0.10.0
Jan 08 20:36:11 general info Prosody is using the select backend for connection handling
Jan 08 20:36:11 modulemanager error Error initializing module 'auth_ldap' on '<myserver>': error loading module 'lualdap' from file '/usr/local/lib/lua/5.1/lualdap.so':
/usr/local/lib/lua/5.1/lualdap.so: Undefined symbol "lua_setglobal"
stack traceback:
/usr/local/lib/prosody/core/modulemanager.lua:31: in function </usr/local/lib/prosody/core/modulemanager.lua:31>
[C]: at 0x00461710
[C]: in function '_real_require'
/usr/local/lib/prosody/../../bin/prosody:185: in function 'require'
/usr/local/lib/prosody/modules/mod_auth_ldap.lua:5: in main chunk
[C]: in function 'pcall'
/usr/local/lib/prosody/core/modulemanager.lua:177: in function 'do_load_module'
/usr/local/lib/prosody/core/modulemanager.lua:255: in function 'load'
/usr/local/lib/prosody/core/usermanager.lua:66: in function </usr/local/lib/prosody/core/usermanager.lua:38>
/usr/local/lib/prosody/util/events.lua:78: in function 'fire_event'
/usr/local/lib/prosody/core/hostmanager.lua:113: in function 'activate'
/usr/local/lib/prosody/core/hostmanager.lua:59: in function </usr/local/lib/prosody/core/hostmanager.lua:50>
/usr/local/lib/prosody/util/events.lua:78: in function 'fire_event'
/usr/local/lib/prosody/../../bin/prosody:358: in function 'prepare_to_start'
/usr/local/lib/prosody/../../bin/prosody:427: in main chunk
[C]: at 0x00404020
I've installed prosody (v 0.10.0) as package via pkg. It automatically installed some lua5.1 packages as well. Since I've read that prosody 0.10.0 can also run with lua5.2, I tried to change to that version of lua, but without success. (When I install lua5.2, pkg removes some of the related lua5.1 packages, which results in prosody gets removed as well.)
Does anyone have an idea what could be my problem? Is this maybe a bug in the latest prosody port? Should I report an issue for that?
Any help is welcome!
Thanks,
Fool