-
Notifications
You must be signed in to change notification settings - Fork 4
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
Use (L)MDB backend instead of HDB #8
base: master
Are you sure you want to change the base?
Use (L)MDB backend instead of HDB #8
Conversation
OpenLDAP 2.5.x has deprecated and removed support for the HDB backend, which makes the tests fail. This commit changes the backend to MDB, which is the recommended one now. Closes rbarrois#7 Signed-off-by: Sergio Durigan Junior <[email protected]>
09a9754
to
42baf3b
Compare
Closes #7 |
This seems to fail on a local setup with openldap-2.4; have you been able to run the tests on your end? Output:
|
Hm, indeed, I can confirm the failure if I run the test with OpenLDAP It's not immediately clear to me why this is failing and how to fix |
Thanks for the quick feedback! I'll try to setup some automated CI on the package to detect that sooner — and I'll look into the lack of meaningful details here, likely related to not properly propagating the |
Ah, awesome, thank you very much! I'll keep you posted if/when I find |
Hi. The root cause appears to be ITS#9531. It's already fixed in the current OpenLDAP releases (2.4.59 and 2.5.5). The tests succeed for me with the 2.5.5 package from Debian experimental and @sergiodj's patch. A local build based on current Debian unstable (2.4.57) with the ITS#9531 patch applied also works for me. Do you need me to backport the fix to Debian testing (bullseye) and/or stable (buster)? The patch applies cleanly, but I would have to justify the need for it to the release managers. |
@@ -144,8 +144,8 @@ def quote(base, *args): | |||
yield quote('TLSCertificateFile %s', self._tls_certificate_path) | |||
yield quote('TLSCertificateKeyFile %s', self._tls_key_path) | |||
|
|||
yield quote('moduleload back_hdb') | |||
yield quote('database hdb') | |||
yield quote('moduleload back_mdb') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just wondering whether mapsize
should also be set when using this backend. The default is capacity is 10 MiB (source).
Ah, thanks a lot for checking this, Ryan!
I don't know if you will be able to justify backporting this patch to |
Oh, thanks for the analysis, that's quite helpful! I'll look into this on two sides:
|
Hello, I am having the same issue, using volatildap with OpenLdap 2.5. As of now, this PR solves issues I am facing. Is there any additional check to be made concerning this PR ? Thanks, |
hi all, a friendly bump :) is there anything we can do to help? cheers |
OpenLDAP 2.5.x has deprecated and removed support for the HDB backend,
which makes the tests fail. This commit changes the backend to MDB,
which is the recommended one now.