ldap4net icon indicating copy to clipboard operation
ldap4net copied to clipboard

Unable to load shared library 'ldap.so.2' on Amazon Linux 2/2.3.2 stack

Open mharrisn opened this issue 2 years ago • 3 comments

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 avatar Jun 20 '22 20:06 mharrisn

@mharrisn I have a similar problem. Have you found a solution to this?

tomlewandowski avatar Nov 17 '22 08:11 tomlewandowski

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.

BalassaMarton avatar Dec 07 '22 10:12 BalassaMarton

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

Reelix avatar Dec 07 '22 14:12 Reelix