ldap4net
ldap4net copied to clipboard
Unable to load shared library 'ldap.so.2' on Amazon Linux 2/2.3.2 stack
Describe the bug This appears to be related to the change made for Issue #140.
Unable to load shared library 'ldap.so.2' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libldap.so.2: cannot open shared object file: No such file or directory
To Reproduce All connect calls fail. We make an LDAPS connection for our purpose.
Expected behavior Except to see no errors.
Desktop (please complete the following information):
- OS: Amazon Linux 2.3.2
- .NET 6
- LDAP server Active Directory
Additional context Reverting to version 2.7.13 seems to work ok.
@mharrisn I have a similar problem. Have you found a solution to this?
I had the same problem on vanilla on-prem RHEL7 VMs and had to create a bunch of symlinks with the exact name, but I suspect that's not how SOs should work.
I found a fix for this on Ubuntu 22.04 (Not sure which specific version Amazon is running, however Oracle / Google had 22.04 which had the identical issue)
1.) Download https://packages.ubuntu.com/focal-updates/amd64/libldap-2.4-2/download 2.) dpkg -i (The above you downloaded)
Note: Given the source of the download, this fix should ONLY be attempted on x64 versions of Ubuntu 22.04