Skip to content
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

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

Open
mharrisn opened this issue Jun 20, 2022 · 3 comments
Open

Comments

@mharrisn
Copy link
Contributor

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.

@tomlewandowski
Copy link

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

@BalassaMarton
Copy link
Contributor

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.

@Reelix
Copy link

Reelix commented Dec 7, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants