-
Notifications
You must be signed in to change notification settings - Fork 122
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
LDAP object tree is only created if replication.enabled=false #137
Comments
Hi @ErikLundJensen , it works for me with the following configuration:
Make sure Connect to openldap instance and run
|
The tree is not created when |
The tree is created (should be at least 😁) regardless of the |
The issue here seems to be related to a change in the container image where the TLS initialization was done at the end of the openldap initialization and breaking the chart replication configuration. |
2.6.6 is buggy. Try with 2.6.5 |
it has same problem, i find it init stop at # Initialize OpenLDAP with schemas/tree structure
if is_boolean_yes "$LDAP_ADD_SCHEMAS"; then
ldap_add_schemas
fi it not run script behind that. |
i run this in pod, and wait for restart. . /opt/bitnami/scripts/liblog.sh
. /opt/bitnami/scripts/openldap/setup.sh
ldap_configure_ppolicy # if want to open ppolicy module
ldap_configure_tls
ldap_create_tree and restart phpLDAPAdmin, it seem is ok. |
If you want to use
|
Hi, i try it to use this values.yaml image:
repository: jpgouin/openldap
tag: 2.6.6-fix
pullPolicy: IfNotPresent
replicaCount: 1
replication:
enabled: true
initTLSSecret:
image:
tag: 3.1.4
ltb-passwd:
image:
tag: 5.2.3
pullPolicy: IfNotPresent
ingress:
enabled: false
phpldapadmin:
image:
tag: 0.9.0
pullPolicy: IfNotPresent
ingress:
enabled: false |
Sorry for not paying attention to this isse, however, my point is that when replication is enabled then the directory $LDAP_DATA_DIR is not empty. Therefore the code in following "else" statement is never executed. |
@ErikLundJensen no when replication is enabled all ldifs go to |
@zsq1234 you have set |
Thank you for your help. I understand now. |
Documentation could be improved, saying that setting replicaCount=1 requires also setting replication=false |
Describe the bug
The documentation explains how to use the fields users and usersPasswords to create users.
However, when replication is enables (which it is by default) then the users are not created.
To Reproduce
Values for Helm chart as in the documentation
Expected behavior
Users are created in the ldap tree and assigned to the group.
Desktop (please complete the following information):
Additional context
Work-a-round is to disable replication:
The call to
ldap_create_tree
is never reached when replication is enabled:https://github.com/bitnami/containers/blob/50c8e55a47598e50fd6392d6ff510f8472cb375a/bitnami/openldap/2.6/debian-11/rootfs/opt/bitnami/scripts/libopenldap.sh#L652
The text was updated successfully, but these errors were encountered: