-
Notifications
You must be signed in to change notification settings - Fork 126
Unable to start slapdtest on MacOS #422
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
Any ideas how to best continue with this? As a workaround I've tried execution the unit tests in a debian-docker container with
This seems to work - insofar as I'm now able to start the I would like to run the test suite natively too if possible as it helps me bring additional debugging-tools to play that are harder to use inside the docker container. Any pointers? |
Regarding the first error:
Build of OpenLDAP that comes with macOS doesn't have mdb backend (you can verify it with running Looking at your last error:
It's a result of the fix for ITS#9016 python-ldap/Lib/slapdtest/_slapdtest.py Lines 419 to 422 in dae0c51
Since In #382 the configuration was changed from using slapd.conf to use slapd.d. Unfortunately, it doesn't work with the version of OpenLDAP that comes from homebrew, because it is built without modules support, and the test fails with:
So, you can either patch python-ldap-3.3.1 that comes from pypi with something like this:
or add |
Thanks for the detailed reply, will try asap. |
For reference:
|
I’ve encountered the same problem on Alpine Linux. We do provide MDB backend, but it’s built as a dynamic module. |
I’m trying vashirov’s patch from the comment above (#422 (comment)). It fixed most of the test failures, but not all. There are still I ended up removing |
This is also a problem on Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1008355 |
@vashirov could you post your patch as a PR? Thanks |
@mistotebe, my patch was for 3.3.x. It is not required for 3.4.x that has changes from #382. python-ldap/Lib/slapdtest/_slapdtest.py Line 184 in 7f30c47
So I'm not sure if anything else should be done here. |
Oh, I see I missed that because superficially, your patch seemed it should still apply and definitely looked much cleaner than the current version... Thanks for the response @vashirov! At least that's one less thing to worry about and we can unblock 3.4.1. Still, not sure what to do about defaults on Mac OS except everyone passing |
Issue description:
Cannot start slapdtest.SlapObject() on MacOS 11.5.1
Steps to reproduce:
Both the native version provided by apple, as well as the current version from homebrew fail to start - albeit with different reasons.
The Apple provided
dies with this error
That a would be this line
database mdb
.The Homebrew version gets slightly further:
this dies with the error
I'm not quite sure what to make of this - is there documentation on the supported versions of openldap somewhere? Am I missing a setting I should have applied?
Operating system: Darwin nathan.fritz.box 20.6.0 Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:31 PDT 2021; root:xnu-7195.141.2~5/RELEASE_X86_64 x86_64
Python version: Python 3.9.6
python-ldap version: 3.3.1
The text was updated successfully, but these errors were encountered: