Open BlueRaccoonTech opened 3 years ago
Thanks for this report. This is the first image with OpenLDAP 2.6 - I held off on moving out of the 2.4.x branch until this was released. Would you mind if we try a couple tests together?
I've made a new version of tiredofit/openldap:develop
that uses your suggestion of creating an additional empty directory. Are you able to try this and see if you get better results?
I may end up pulling 7.2.0 and latest is this persists.
That makes it no longer crash on that converting schemas step anymore, and goes further in initialization, but it does still fail unfortunately:
2021-11-13-01:21:35 [DEBUG] /etc/cont-init.d/10-openldap ** [openldap] Adding ppolicy Schema
+ /usr/bin/schema2ldif /etc/openldap/schema/ppolicy.schema
Error: /etc/openldap/schema/ppolicy.schema is not a file
[cont-init.d] 10-openldap: exited 2.
The ppolicy.schema file doesn't appear to exist at all, looking in the directory.
Looks like here they moved the schema into the module itself. https://github.com/openldap/openldap/commit/44191183be6a1e323eec6708fc8acfb9160d8188#diff-5b7ab737465d821532527e6e4cad597e98039d005012934cb900256562481d5d
I've pushed a new tiredofit/openldap:develop to support this.
Seems like the initialization completed just fine after that last change.
are you getting this by chance?
2021-11-13-01:38:24 [NOTICE] ** [openldap] Using NIS schema type
ldap_sasl_interactive_bind: Can't contact LDAP server (-1)
That's not happening to me during that part of the script, no. The only time I see the "Can't contact LDAP server" error is while it's waiting for OpenLDAP to be ready, which is of course expected.
Many thanks for your patience. Pushing 7.2.1 with these changes in it, and will also rebuild tiredofit/openldap-fusiondirectory for those who are dependent on this image for that one to work :)
...Oh, something happened and I need to correct myself - I wasn't getting that error in debug mode. I just switched off debug mode and re-initialized my server and now I am getting that error. It doesn't seem to have caused the initialization to fail, however.
And of course! Thank you for your prompt response to my bug report!
are you getting this by chance?
2021-11-13-01:38:24 [NOTICE] ** [openldap] Using NIS schema type ldap_sasl_interactive_bind: Can't contact LDAP server (-1)
Hello, I'm getting this error on the latest image.... ldap does not start anymore.
Best, Jerome
HI Jerome, Tell me a bit about your install. Using NIS or RFC2307. Can you share me any other logs as to what happens?
You can also privately send logs to me dave@ (mygithubname).ca
Indeed, perhaps not the same .... I just sent you the logs by email.
Best, Jerome
What's the status? I get the same error for the master and 2.4 branches. Also tiredofit/openldap:develop. Building the image gets also stuck at https://github.com/tiredofit/docker-openldap/blob/0e7d3ef7f1043e1d610998f952abe83e3635e977/Dockerfile#L147
Summary
When launching the container for the first time, the 10-openldap initialization script appears to fail at the "converting schemas to LDIF" part and stop running at that point. The server still seems to launch and function (which actually seems to contradict the message it says where "all services are now halted"?), but looking into the server shows there are things missing that would otherwise be there.
This issue disappears when using the 7.1.22 image.
Steps to reproduce
What is the expected correct behavior?
The openldap initialization script completes its tasks and exits normally.
Relevant logs and/or screenshots
Environment
Any logs | docker-compose.yml
Possible fixes
It seems like there was a change to slaptest where it requires the destination config directory to be empty, but that directory is also where the file with the schemas to be converted are located. I haven't tested it myself, but I wonder if making a new directory within the temp directory and using that for the destination config directory would resolve the issue.