Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ai3
accountserver
Commits
1ef2b30d
Commit
1ef2b30d
authored
Jun 30, 2018
by
ale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use /bin/sh to start ldap server
parent
1e65a623
Pipeline
#1025
passed with stages
in 1 minute and 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
ldaptest/ldap_server.go
ldaptest/ldap_server.go
+6
-2
No files found.
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
Markdown
is supported
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