Closed jonnoss1 closed 1 year ago
I have the same problem. Config admin user is not created automatically on fresh startup
Hi @radokristof @jonnoss1,
Thanks for reporting this issue.
I have been able to reproduce the error. To make sure that these entries are being created correctly. Can you run this as follows?
ldapwhoami -vvv -x -H ldap://localhost:1389 -D "cn=adminConfig,cn=config" -w adminConfigPass
ldapsearch -x -H ldap://localhost:1389 -D "cn=adminConfig,cn=config" -b "cn=config" -w adminConfigPass
Env eg:
environment:
- BITNAMI_DEBUG=yes
- LDAP_ADMIN_USERNAME=admin
- LDAP_ADMIN_PASSWORD=adminpassword
- LDAP_ROOT=dc=localhost,dc=com
- LDAP_USERS=user01,user02
- LDAP_PASSWORDS=password1,password2
- LDAP_CONFIG_ADMIN_ENABLED=yes
- LDAP_CONFIG_ADMIN_USERNAME=adminConfig
- LDAP_CONFIG_ADMIN_PASSWORD=adminConfigPass
Hi @CeliaGMqrz,
I have attached the outputs. ldapsearch.txt ldapwhoami.txt
I had a look in libopenldap.sh and saw that the ldap_load_module() function was only called when env LDAP_CONFIGURE_PPOLICY=true.
Based on this I tested extending libopenldap.sh with support for the Sync Provider overlay which I wanted to use. This worked successfully so I'm actually happy to close as libopenldap.sh appears to be working as intended; only creating a cn=module entry when a supported module is enabled.
J
Hi @jonnoss1,
Thanks for your feedback!
It's great to hear that you were able to use libopenldap.sh
to support the Sync Provider overlay successfully. Indeed, according to the logic, when the ppolicy
module is activated, it calls the function ldap_load_module which activates this. Just as we added this module you could add any other module as a new feature request. Would you like to contribute by creating a PR to solve the issue? The Bitnami team will be happy to review it and provide feedback. Here you can find the contributing guidelines.
Also, you can add custom configuration through ldif files, in this comment my colleague explains an example for it. I hope you find it helpful. If you have other questions do not hesitate to let us know.
Hi @CeliaGMqrz,
Thanks for the confirmation. I would be happy to contribute the changes I have made. I will reference the PR here once created.
Hi @CeliaGMqrz,
PR created.
Support for the accesslog
overlay is included as I had already implemented it for my requirement.
Hi @jonnoss1,
Thanks for creating this issue and the associated PR. The team will review it and provide feedback. Once merged the PR, this issue will be automatically closed.
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.
Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.
Name and Version
bitnami/openldap:2.6
What architecture are you using?
None
What steps will reproduce the bug?
What is the expected behavior?
I expect to be able to find a valid directory entry for cn=module,cn=config.
What do you see instead?
I do not see an entry for cn=module,cn=config, or similar.
Additional information
No response