|
|
|
@ -23,7 +23,8 @@
|
|
|
|
|
(backup-date (date (current-date))
|
|
|
|
|
"date that backup(seed) is from, to not use the same/older seed")
|
|
|
|
|
(uris (string "ldap:// ldapi://")
|
|
|
|
|
"slapd uris to accept connections to"))
|
|
|
|
|
"slapd uris to accept connections to")
|
|
|
|
|
(log-level (integer 1) "log level to start slapd with"))
|
|
|
|
|
|
|
|
|
|
(define (slapd-accounts config)
|
|
|
|
|
(list (user-group
|
|
|
|
@ -128,20 +129,18 @@
|
|
|
|
|
(slapd-configuration-openldap
|
|
|
|
|
config)
|
|
|
|
|
"/libexec/slapd")
|
|
|
|
|
"-d" ;To run in foreground
|
|
|
|
|
#$(number->string (slapd-configuration-log-level
|
|
|
|
|
config))
|
|
|
|
|
"-F"
|
|
|
|
|
"/var/lib/slapd/slapd.d"
|
|
|
|
|
"-h"
|
|
|
|
|
#$(slapd-configuration-uris config)
|
|
|
|
|
#$(slapd-configuration-uris
|
|
|
|
|
config)
|
|
|
|
|
"-u"
|
|
|
|
|
"slapd"
|
|
|
|
|
"-g"
|
|
|
|
|
"slapd")
|
|
|
|
|
#:environment-variables
|
|
|
|
|
(list (string-append
|
|
|
|
|
"LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:"
|
|
|
|
|
#$(slapd-configuration-home
|
|
|
|
|
config)
|
|
|
|
|
"/modules"))
|
|
|
|
|
#:user "root"
|
|
|
|
|
#:group "root"))
|
|
|
|
|
(stop #~(make-kill-destructor)))))
|
|
|
|
|