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
dc9e5965
Commit
dc9e5965
authored
Feb 16, 2016
by
Eric Chiang
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #315 from fnordahl/issue/314-entryDN-does-not-exist
Get DN from entry, not entryDN attribute
parents
cd72a1f6
508c24b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
connector_ldap.go
connector/connector_ldap.go
+1
-2
No files found.
connector/connector_ldap.go
View file @
dc9e5965
...
...
@@ -288,7 +288,6 @@ func (m *LDAPIdentityProvider) Identity(username, password string) (*oidc.Identi
filter
:=
m
.
ParseString
(
m
.
searchFilter
,
username
)
attributes
:=
[]
string
{
"entryDN"
,
m
.
nameAttribute
,
m
.
emailAttribute
,
}
...
...
@@ -304,7 +303,7 @@ func (m *LDAPIdentityProvider) Identity(username, password string) (*oidc.Identi
return
nil
,
err
}
bindDN
=
sr
.
Entries
[
0
]
.
GetAttributeValue
(
"entryDN"
)
bindDN
=
sr
.
Entries
[
0
]
.
DN
ldapName
=
sr
.
Entries
[
0
]
.
GetAttributeValue
(
m
.
nameAttribute
)
ldapEmail
=
sr
.
Entries
[
0
]
.
GetAttributeValue
(
m
.
emailAttribute
)
...
...
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