#!/bin/bash # (C)DatuX - Released under GPL # This script creates a ldap include file for all the schemas found in the schema.d directory. # Normally automaticly called from /service/slapd echo "# Automaticly created by syn3-ldapconf with all files from /etc/openldap/schemas.d/*.schema" > /etc/openldap/schemas.conf for SCHEMA in /etc/openldap/schemas.d/*.schema; do echo "include $SCHEMA" >> /etc/openldap/schemas.conf || exit 1 done exit 0