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
13a1ebe0
Commit
13a1ebe0
authored
Nov 15, 2016
by
Eric Chiang
Committed by
GitHub
Nov 15, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #689 from cjyar/master
connector/ldap: Always set tls.Config.ServerName, to support LDAP ser…
parents
91c88c8b
384ac87d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
ldap.go
connector/ldap/ldap.go
+1
-4
No files found.
connector/ldap/ldap.go
View file @
13a1ebe0
...
...
@@ -212,7 +212,7 @@ func (c *Config) OpenConnector() (interface {
}
}
tlsConfig
:=
new
(
tls
.
Config
)
tlsConfig
:=
&
tls
.
Config
{
ServerName
:
host
}
if
c
.
RootCA
!=
""
||
len
(
c
.
RootCAData
)
!=
0
{
data
:=
c
.
RootCAData
if
len
(
data
)
==
0
{
...
...
@@ -226,9 +226,6 @@ func (c *Config) OpenConnector() (interface {
return
nil
,
fmt
.
Errorf
(
"ldap: no certs found in ca file"
)
}
tlsConfig
.
RootCAs
=
rootCAs
// NOTE(ericchiang): This was required for our internal LDAP server
// but might be because of an issue with our root CA.
tlsConfig
.
ServerName
=
host
}
userSearchScope
,
ok
:=
parseScope
(
c
.
UserSearch
.
Scope
)
if
!
ok
{
...
...
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