Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dex
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
dex
Commits
a7c2fca0
Commit
a7c2fca0
authored
Oct 28, 2016
by
Eric Chiang
Committed by
GitHub
Oct 28, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #645 from ericchiang/dev-ldap-fix-switch
connector/ldap: fix bug in switch statement
parents
d7912a3a
43294061
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
ldap.go
connector/ldap/ldap.go
+2
-1
No files found.
connector/ldap/ldap.go
View file @
a7c2fca0
...
...
@@ -311,7 +311,8 @@ func (c *ldapConnector) Login(username, password string) (ident connector.Identi
switch
n
:=
len
(
resp
.
Entries
);
n
{
case
0
:
return
fmt
.
Errorf
(
"ldap: no results returned for filter: %q"
,
filter
)
case
2
:
case
1
:
default
:
return
fmt
.
Errorf
(
"ldap: filter returned multiple (%d) results: %q"
,
n
,
filter
)
}
...
...
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