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
id
auth
Commits
c1632ea0
Commit
c1632ea0
authored
Jan 10, 2018
by
ale
Browse files
Fix compile error
parent
01a58c48
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/ldap.go
View file @
c1632ea0
...
...
@@ -205,8 +205,11 @@ func newLDAPBackend(config *Config) (*ldapBackend, error) {
}
// Read the bind password.
bindPw
:=
config
.
LDAPConfig
.
BindPw
if
bindPw
==
""
{
var
bindPw
[]
byte
if
config
.
LDAPConfig
.
BindPw
!=
""
{
bindPw
=
[]
byte
(
config
.
LDAPConfig
.
BindPw
)
}
else
{
var
err
error
bindPw
,
err
=
ioutil
.
ReadFile
(
config
.
LDAPConfig
.
BindPwFile
)
if
err
!=
nil
{
return
nil
,
err
...
...
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