-
Notifications
You must be signed in to change notification settings - Fork 126
How to force linking to non-system OpenLDAP on macOS? #412
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
Comments
All current python-ldap maintainer are Linux engineers and AFAIK do not have access to macOS systems. There is very little we can do to assist. You probably need to override the dynamic linker lookup path, too. ELF binaries have rpath and Linux's ld.so has |
@intgr any update on this? Our django project uses python-ldap, and we have some devs running MacOS. They are running in the same issue that you mention here. |
Unfortunately not. I switched to using the system trust store on macOS and added an |
I ran into the same issue. My environment: macOS: 11.6 |
You could check if adding |
I am using python-ldap along with the
OPT_X_TLS_CACERTFILE
option.macOS provides some crappy version of
libldap.so
out of the box, which does not support this option (see #301).Many years back I discovered that I could install Homebrew's OpenLDAP (
brew install openldap
) and link to it by changingsetup.cfg
to:However, this no longer works; python-ldap successfully uses include files from Homebrew's OpenLDAP, but it now links to the system libldap. 😖
Using
otool -l
to inspect the_ldap.cpython-39-darwin.so
binary, previously it contained:Now it has:
Any help would be much appreciated.
Operating system: macOS 11.2.3
Python version: 3.9.5
python-ldap version: 3.1.1
The text was updated successfully, but these errors were encountered: