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
384ac87d
Commit
384ac87d
authored
Nov 15, 2016
by
Chris Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
connector/ldap: Always set tls.Config.ServerName, to support LDAP servers with public CA certs.
parent
a2b78c28
Show 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 @
384ac87d
...
...
@@ -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