mirror of
https://gitlab.univ-nantes.fr/glicid-public/guix-glicid.git
synced 2025-04-30 06:08:37 +02:00
openldap service
This commit is contained in:
parent
3249213c9e
commit
2008c7c2d5
1 changed files with 4 additions and 5 deletions
|
@ -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-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
|
||||
))
|
||||
|
|
Loading…
Add table
Reference in a new issue