lua-ldap for EL8
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

34 lines
999 B

diff -up lualdap-1.1.0/src/lualdap.c.lua54 lualdap-1.1.0/src/lualdap.c
--- lualdap-1.1.0/src/lualdap.c.lua54 2020-06-30 12:11:15.121638941 -0400
+++ lualdap-1.1.0/src/lualdap.c 2020-06-30 12:10:53.802986642 -0400
@@ -31,6 +31,18 @@
#define luaL_getn(L,i) ((int)lua_objlen(L, i))
#endif
+#ifndef luaL_openlib
+#define luaL_openlib(L,n,l,nup) luaL_setfuncs((L),(l),(nup))
+#endif
+
+#ifndef lua_objlen
+#define lua_objlen lua_rawlen
+#endif
+
+#ifndef lua_strlen
+#define lua_strlen lua_rawlen
+#endif
+
#ifdef WINLDAPAPI
#define timeval l_timeval
typedef ULONG ldap_int_t;
diff -up lualdap-1.1.0/tests/test.lua.lua54 lualdap-1.1.0/tests/test.lua
--- lualdap-1.1.0/tests/test.lua.lua54 2020-06-30 12:32:41.719651337 -0400
+++ lualdap-1.1.0/tests/test.lua 2020-06-30 12:32:58.663374792 -0400
@@ -387,7 +387,7 @@ BASE = arg[2]
WHO = arg[3]
PASSWORD = arg[4]
-require"lualdap"
+lualdap = require "lualdap"
assert (type(lualdap)=="table", "couldn't load LDAP library")
for i = 1, #tests do