Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
bc647543
Commit
bc647543
authored
May 09, 2018
by
Dan Cech
Committed by
Torkel Ödegaard
May 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix typo in getLdapAttrN (#11898)
parent
486aaca1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
pkg/login/ldap.go
+1
-1
No files found.
pkg/login/ldap.go
View file @
bc647543
...
...
@@ -349,7 +349,7 @@ func (a *ldapAuther) searchForUser(username string) (*LdapUserInfo, error) {
func
getLdapAttrN
(
name
string
,
result
*
ldap
.
SearchResult
,
n
int
)
string
{
if
name
==
"DN"
{
return
result
.
Entries
[
0
]
.
DN
return
result
.
Entries
[
n
]
.
DN
}
for
_
,
attr
:=
range
result
.
Entries
[
n
]
.
Attributes
{
if
attr
.
Name
==
name
{
...
...
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