mirror of
https://gitlab.univ-nantes.fr/glicid-public/guix-glicid.git
synced 2025-04-30 14:18:38 +02:00
openldap service
This commit is contained in:
parent
3249213c9e
commit
2008c7c2d5
1 changed files with 4 additions and 5 deletions
|
@ -35,8 +35,10 @@
|
||||||
(config-file openldap-configuration-config-file ; string
|
(config-file openldap-configuration-config-file ; string
|
||||||
(default %default-slapd.conf)
|
(default %default-slapd.conf)
|
||||||
)
|
)
|
||||||
|
(schema-dir openldap-configuration-schema-dir ; string
|
||||||
|
(default '())
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
(define %default-slapd.conf
|
(define %default-slapd.conf
|
||||||
(plain-file "slapd.conf" "
|
(plain-file "slapd.conf" "
|
||||||
|
@ -45,7 +47,7 @@
|
||||||
|
|
||||||
(define openldap-shepherd-service
|
(define openldap-shepherd-service
|
||||||
(match-lambda
|
(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
|
(list
|
||||||
(shepherd-service
|
(shepherd-service
|
||||||
(provision '(slapd) )
|
(provision '(slapd) )
|
||||||
|
@ -54,12 +56,9 @@
|
||||||
(respawn? #f)
|
(respawn? #f)
|
||||||
(start #~(make-forkexec-constructor
|
(start #~(make-forkexec-constructor
|
||||||
(list
|
(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")
|
#$(file-append openldap "/libexec/slapd")
|
||||||
"-d" #$logflags
|
"-d" #$logflags
|
||||||
"-f" #$config-file
|
"-f" #$config-file
|
||||||
#$arguments
|
|
||||||
)
|
)
|
||||||
#:pid-file #$pid-file
|
#:pid-file #$pid-file
|
||||||
))
|
))
|
||||||
|
|
Loading…
Add table
Reference in a new issue