lsexample: make restore_lsexample compatible with OpenLDAP 2.5 (and Debian Bookworm)

This commit is contained in:
Benjamin Renard 2023-07-19 12:45:24 +02:00
parent 6ff53b412e
commit fea76e7af2
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC

View file

@ -68,11 +68,14 @@ $SYS_SCHEMA_DIR/core.ldif
$SYS_SCHEMA_DIR/cosine.ldif
$SYS_SCHEMA_DIR/nis.ldif
$SYS_SCHEMA_DIR/inetorgperson.ldif
$SYS_SCHEMA_DIR/ppolicy.ldif
$SYS_SCHEMA_DIR/dyngroup.ldif
$SAMBA_SCHEMA_LDIF
$LS_SCHEMA_LDIF
"
# Extranet ppolicy schema removed in OpenLDAP 2.5, make its installation optional
[ -f "$SYS_SCHEMA_DIR/ppolicy.ldif" ] && SCHEMA_FILES="$SCHEMA_FILES $SYS_SCHEMA_DIR/ppolicy.ldif"
for file in $SCHEMA_FILES
do
[ $VERBOSE -eq 1 ] && echo "Install $( basename $file) schema..."