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
43294061
Commit
43294061
authored
Oct 28, 2016
by
Eric Chiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
connector/ldap: fix bug in switch statement
parent
d7912a3a
Show 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 @
43294061
...
@@ -311,7 +311,8 @@ func (c *ldapConnector) Login(username, password string) (ident connector.Identi
...
@@ -311,7 +311,8 @@ func (c *ldapConnector) Login(username, password string) (ident connector.Identi
switch
n
:=
len
(
resp
.
Entries
);
n
{
switch
n
:=
len
(
resp
.
Entries
);
n
{
case
0
:
case
0
:
return
fmt
.
Errorf
(
"ldap: no results returned for filter: %q"
,
filter
)
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
)
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