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
e0d2b845
Commit
e0d2b845
authored
Jan 11, 2018
by
ale
Browse files
Log LDAP errors
parent
e259b416
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/ldap.go
View file @
e0d2b845
...
...
@@ -4,6 +4,7 @@ import (
"context"
"errors"
"io/ioutil"
"log"
"strings"
ldaputil
"git.autistici.org/ai3/go-common/ldap"
...
...
@@ -240,6 +241,7 @@ func (b *ldapBackend) GetUser(ctx context.Context, spec *BackendSpec, name strin
result
,
err
:=
b
.
pool
.
Search
(
ctx
,
serviceConfig
.
searchRequest
(
name
))
if
err
!=
nil
{
log
.
Printf
(
"LDAP error: %v"
,
err
)
return
nil
,
false
}
return
serviceConfig
.
userFromResponse
(
name
,
result
)
...
...
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