#1516 Error initializing module 'auth_ldap'

Reporter meka
Owner Nobody
Created
Updated
Stars ★ (1)
Tags
  • Priority-Medium
  • Status-NeedInfo
  • Type-Defect
  1. meka on

    What steps will reproduce the problem? 1. Configure prosody with auth_ldap: authentication = "ldap" ldap_server = "ldap2" ldap_filter = "(&(uid=$user)(userClass=jabber))" ldap_tls = true What is the expected output? Connected to LDAP server. What do you see instead? Mar 25 10:50:19 modulemanager error Error initializing module 'auth_ldap' on 'FQDN': Attempt to set a global: lualdap = table: 0x801a36600 stack traceback: [C]: in function 'error' /usr/local/lib/prosody/util/startup.lua:346: in function </usr/local/lib/prosody/util/startup.lua:346> [C]: in ? [C]: in function '_real_require' /usr/local/lib/prosody/util/startup.lua:145: in function 'require' /usr/local/lib/prosody-modules/mod_auth_ldap.lua:5: in main chunk [C]: in function 'xpcall' /usr/local/lib/prosody/core/modulemanager.lua:183: in function 'do_load_module' /usr/local/lib/prosody/core/modulemanager.lua:261: in function 'load' /usr/local/lib/prosody/core/usermanager.lua:67: in function '?' /usr/local/lib/prosody/util/events.lua:79: in function </usr/local/lib/prosody/util/events.lua:75> (...tail calls...) /usr/local/lib/prosody/core/hostmanager.lua:108: in function 'activate' /usr/local/lib/prosody/core/hostmanager.lua:58: in function '?' /usr/local/lib/prosody/util/events.lua:79: in function </usr/local/lib/prosody/util/events.lua:75> (...tail calls...) /usr/local/lib/prosody/util/startup.lua:337: in function 'prepare_to_start' /usr/local/lib/prosody/util/startup.lua:558: in function 'f' /usr/local/lib/prosody/util/async.lua:139: in function 'func' /usr/local/lib/prosody/util/async.lua:127: in function </usr/local/lib/prosody/util/async.lua:125> What version of the product are you using? On what operating system? version: 0.11.4 OS: FreeBSD 12.1 Lua: 5.2.4 Lua LDAP: 1.1.0 It might not be Prosody fault, but as I didn't fiddle with lua much, I'd appreciate the help in debugging this error.

  2. Zash on

    Your version of Lua-LDAP is bumping into Prosodys environment protection. This is fixed by https://github.com/lualdap/lualdap/commit/5d2a85903ffc2f970311329a6ae5888cdc6caffe If you can update Lua-LDAP or apply this patch the error should go way. If you can't do either of those, as a last resort it is possible to disable the protection, but try updating/patching first and report back.

    Changes
    • tags Status-NeedInfo
  3. meka on

    It took me a while to install newer Lua-LDAP, but it works now. It will take a while for me to create a FreeBSD port/package, but at least I know what I need to do. Thank you!

New comment

Not published. Used for spam prevention and optional update notifications.