mirror of
https://github.com/bitnami/containers.git
synced 2026-10-18 09:46:02 +02:00
#49157 move adding custom ldifs or create tree to the end of the initial configuration section (#49271)
Signed-off-by: Philipp Lomosits <p.lomosits@gmail.com>
This commit is contained in:
@@ -609,13 +609,6 @@ ldap_initialize() {
|
||||
if ! is_dir_empty "$LDAP_CUSTOM_SCHEMA_DIR"; then
|
||||
ldap_add_custom_schemas
|
||||
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
|
||||
# additional configuration
|
||||
if [[ ! "$LDAP_PASSWORD_HASH" == "{SSHA}" ]]; then
|
||||
ldap_configure_password_hash
|
||||
@@ -630,6 +623,13 @@ ldap_initialize() {
|
||||
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
|
||||
}
|
||||
|
||||
@@ -609,13 +609,6 @@ ldap_initialize() {
|
||||
if ! is_dir_empty "$LDAP_CUSTOM_SCHEMA_DIR"; then
|
||||
ldap_add_custom_schemas
|
||||
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
|
||||
# additional configuration
|
||||
if [[ ! "$LDAP_PASSWORD_HASH" == "{SSHA}" ]]; then
|
||||
ldap_configure_password_hash
|
||||
@@ -630,6 +623,13 @@ ldap_initialize() {
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user