Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ai3
accountserver
Commits
1ef2b30d
Commit
1ef2b30d
authored
Jun 30, 2018
by
ale
Browse files
Use /bin/sh to start ldap server
parent
1e65a623
Changes
1
Hide whitespace changes
Inline
Side-by-side
ldaptest/ldap_server.go
View file @
1ef2b30d
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment