Commit 1ef2b30d authored by ale's avatar ale

Use /bin/sh to start ldap server

parent 1e65a623
Pipeline #1025 passed with stages
in 1 minute and 25 seconds
......@@ -49,9 +49,13 @@ ldap.port=%d
`, config.Base, config.Base, config.Port)
defer tmpf.Close()
args := []string{tmpf.Name()}
args := []string{
filepath.Join(config.Dir, "unboundid-ldap-server/bin/unboundid-ldap-server"),
tmpf.Name(),
}
args = append(args, config.LDIFs...)
proc := exec.Command(filepath.Join(config.Dir, "unboundid-ldap-server/bin/unboundid-ldap-server"), args...)
// Use /bin/sh so that the script doesn't have to be executable.
proc := exec.Command("/bin/sh", args...)
proc.Stdout = os.Stdout
proc.Stderr = os.Stderr
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment