Skip to content

Commit

Permalink
Update openldap libopenldap.sh (#53960)
Browse files Browse the repository at this point in the history
during openldap init, do the tls configuration before adding custom ldif

Signed-off-by: jpgouin <[email protected]>
  • Loading branch information
jp-gouin authored Dec 21, 2023
1 parent 7e5b373 commit 9f6278e
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -646,20 +646,20 @@ ldap_initialize() {
if is_boolean_yes "$LDAP_ENABLE_SYNCPROV"; then
ldap_enable_syncprov
fi
if ! is_dir_empty "$LDAP_CUSTOM_LDIF_DIR"; then
ldap_add_custom_ldifs
elif ! is_boolean_yes "$LDAP_SKIP_DEFAULT_TREE"; then
ldap_create_tree
else
info "Skipping default schemas/tree structure"
fi
# enable tls
if is_boolean_yes "$LDAP_ENABLE_TLS"; then
ldap_configure_tls
if is_boolean_yes "$LDAP_REQUIRE_TLS"; then
ldap_configure_tls_required
fi
fi
if ! is_dir_empty "$LDAP_CUSTOM_LDIF_DIR"; then
ldap_add_custom_ldifs
elif ! is_boolean_yes "$LDAP_SKIP_DEFAULT_TREE"; then
ldap_create_tree
else
info "Skipping default schemas/tree structure"
fi
ldap_stop
fi
}
Expand Down

0 comments on commit 9f6278e

Please sign in to comment.