only add schemas if LDAP_ADD_SCHEMAS is set to yes

Signed-off-by: Johannes Kastl <kastl@b1-systems.de>
This commit is contained in:
Johannes Kastl 2022-03-28 13:42:57 +02:00
parent ddc2f8884a
commit d3df878c99
2 changed files with 6 additions and 2 deletions

View File

@ -465,7 +465,9 @@ ldap_initialize() {
ldap_configure_tls
fi
# Initialize OpenLDAP with schemas/tree structure
ldap_add_schemas
if is_boolean_yes "$LDAP_ADD_SCHEMAS"; then
ldap_add_schemas
fi
if [[ -f "$LDAP_CUSTOM_SCHEMA_FILE" ]]; then
ldap_add_custom_schema
fi

View File

@ -465,7 +465,9 @@ ldap_initialize() {
ldap_configure_tls
fi
# Initialize OpenLDAP with schemas/tree structure
ldap_add_schemas
if is_boolean_yes "$LDAP_ADD_SCHEMAS"; then
ldap_add_schemas
fi
if [[ -f "$LDAP_CUSTOM_SCHEMA_FILE" ]]; then
ldap_add_custom_schema
fi