diff --git a/glicid/services/openldap.scm b/glicid/services/openldap.scm index 60bb92f..38b46b8 100644 --- a/glicid/services/openldap.scm +++ b/glicid/services/openldap.scm @@ -35,9 +35,11 @@ (config-file openldap-configuration-config-file ; string (default %default-slapd.conf) ) + (schema-dir openldap-configuration-schema-dir ; string + (default '()) + ) ) - (define %default-slapd.conf (plain-file "slapd.conf" " # Empty file for test @@ -45,7 +47,7 @@ (define openldap-shepherd-service (match-lambda - (($ openldap arguments logflags log-file pid-file config-file) + (($ openldap arguments logflags log-file pid-file config-file schema-dir) (list (shepherd-service (provision '(slapd) ) @@ -54,12 +56,9 @@ (respawn? #f) (start #~(make-forkexec-constructor (list - ; We do not set the uri in the service definition because if we do, we need a way to - ; escape double quotes. You should use slapd.conf to set the uri #$(file-append openldap "/libexec/slapd") "-d" #$logflags "-f" #$config-file - #$arguments ) #:pid-file #$pid-file ))