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
583bf91a
Commit
583bf91a
authored
May 04, 2017
by
rithu leena john
Committed by
GitHub
May 04, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #936 from rithujohn191/fix-comment
connector/ldap: correct a comment.
parents
a7097c80
0dd024d6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ldap.go
connector/ldap/ldap.go
+1
-1
No files found.
connector/ldap/ldap.go
View file @
583bf91a
...
@@ -359,7 +359,7 @@ func (c *ldapConnector) userEntry(conn *ldap.Conn, username string) (user ldap.E
...
@@ -359,7 +359,7 @@ func (c *ldapConnector) userEntry(conn *ldap.Conn, username string) (user ldap.E
}
}
func
(
c
*
ldapConnector
)
Login
(
ctx
context
.
Context
,
s
connector
.
Scopes
,
username
,
password
string
)
(
ident
connector
.
Identity
,
validPass
bool
,
err
error
)
{
func
(
c
*
ldapConnector
)
Login
(
ctx
context
.
Context
,
s
connector
.
Scopes
,
username
,
password
string
)
(
ident
connector
.
Identity
,
validPass
bool
,
err
error
)
{
// make this check to avoid
anonymous
bind to the LDAP server.
// make this check to avoid
unauthenticated
bind to the LDAP server.
if
password
==
""
{
if
password
==
""
{
return
connector
.
Identity
{},
false
,
nil
return
connector
.
Identity
{},
false
,
nil
}
}
...
...
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