-
Notifications
You must be signed in to change notification settings - Fork 978
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
LDIF bootstraping fails when LDAP_TLS_ENFORCE=true #402
Comments
olia-dev
added a commit
to olia-dev/docker-openldap
that referenced
this issue
Apr 19, 2020
ldapmodify with ldapi:/// fails otherwise
I'm trying out your container, and I'm still seeing the problem when updating the password:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've been trying to use the bootstraping using a custom ldif file but without success. I would always get the following error:
I dug into what the failing script does and it seems the culprit is the
ldap_add_or_modify
function:Basically it tries to process the .LDIF file in two ways.
The first one (
ldapmodify -Y EXTERNAL -Q -H ldapi:/// -f $LDIF_FILE 2>&1
) fails by throwing:The second (
ldapmodify -h localhost -p 389 -D cn=admin,$LDAP_BASE_DN -w "$LDAP_ADMIN_PASSWORD" -f $LDIF_FILE 2>&1
) fails with:This is because I've enforced TLS on the server which is not taken into account by this script.
I confirmed that running the query over TLS works:
A fix could be to add this command after the others to take into account this case as well.
The text was updated successfully, but these errors were encountered: