-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
failed to load plugin [ldap-auth] err: error loading module 'lualdap' from file '/usr/local/apisix/deps/lib/lua/5.1/lualdap.so':"failed to load plugin [ldap-auth] #218
Comments
maybe you need to install
|
|
apisix-build-tools/package-apisix.sh Line 10 in 0d46617
|
The EVP_KDF_ctrl is from libk5crypto which is Red Hat specific, not the libcrypto we finally use. Maybe using the libcrypto from openresty-openssl111 when installing lua-ldap can fix this problem. |
as @spacewander says, maybe the root of this issue is caused from:
|
ldd /usr/local/apisix/deps/lib/lua/5.1/lualdap.so | grep libldap
ibldap-2.4.so.2 => /usr/lib64/libldap-2.4.so.2 (0x00007fe82934a000) The apisix-base specifies the search path of the dynamic library through Therefore, the solutions are as follows:
|
Problem
When trying to test the existing plugin with apisix RPM package, it fails with loading module failure.
(Just to clarify packaged version of apisix works well with it)
Steps to reproduce
Expected
TEST_NGINX_BINARY=/usr/bin/openresty prove -I. -I./t -r t/plugin/example.t succeeds.
Additional Information
t/servroot/logs/error.log indicates a loading error like this:
Then, disabled ldap-auth from conf/config-default.yaml plugins: section, it succeeds, so it can be a temporary workaround to test it.
NOTE: I expected that /usr/lib64/* is used, but it seems that it is not true in this case (undefined symbol).
It seems that there is a mismatch between build time dependency and runtime dependency or something else.
The text was updated successfully, but these errors were encountered: