openldap service

This commit is contained in:
Jean-François GUILLAUME 2021-12-02 22:09:56 +01:00
parent 3249213c9e
commit 2008c7c2d5

View file

@ -35,8 +35,10 @@
(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" "
@ -45,7 +47,7 @@
(define openldap-shepherd-service
(match-lambda
(($ <openldap-configuration> openldap arguments logflags log-file pid-file config-file)
(($ <openldap-configuration> 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
))