Hi Daniel, I don't know anything about Lua, but I forwarded your comment to the prosody MUC and the wise people there suggest to remove three lines from the lua-ldap sources:
--- a/src/lualdap.c +++ b/src/lualdap.c @@ -1090,9 +1090,6 @@ int luaopen_lualdap (lua_State *L) { }; lualdap_createmeta (L); - luaL_newlib(L, lualdap); - lua_pushvalue(L, -1); - lua_setglobal(L, LUALDAP_TABLENAME); set_info (L); return 1; Maybe you can try that? Cheers, Martin