Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp-module-perun
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Perun
Perun ProxyIdP
v1
simplesamlphp-module-perun
Merge requests
!120
LDAP startTLS support (port 389)
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
LDAP startTLS support (port 389)
github/fork/melanger/patch-6
into
master
Overview
1
Commits
3
Pipelines
0
Changes
3
Merged
Pavel Břoušek
requested to merge
github/fork/melanger/patch-6
into
master
4 years ago
Overview
1
Commits
3
Pipelines
0
Changes
1
Expand
Created by: melanger
👍
0
👎
0
Merge request reports
Viewing commit
7769a7e4
Prev
Next
Show latest version
1 file
+
3
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Unverified
7769a7e4
Add startTLS support to AdapterLdap
· 7769a7e4
Pavel Břoušek
authored
4 years ago
lib/AdapterLdap.php
+
3
−
1
Options
@@ -30,6 +30,7 @@ class AdapterLdap extends Adapter
const
LDAP_USER
=
'ldap.username'
;
const
LDAP_PASSWORD
=
'ldap.password'
;
const
LDAP_BASE
=
'ldap.base'
;
const
LDAP_TLS
=
'ldap.enable_tls'
;
const
PERUN_FACILITY_ID
=
'perunFacilityId'
;
const
CN
=
'cn'
;
const
DESCRIPTION
=
'description'
;
@@ -57,8 +58,9 @@ class AdapterLdap extends Adapter
$ldapUser
=
$conf
->
getString
(
self
::
LDAP_USER
,
null
);
$ldapPassword
=
$conf
->
getString
(
self
::
LDAP_PASSWORD
,
null
);
$this
->
ldapBase
=
$conf
->
getString
(
self
::
LDAP_BASE
);
$ldapEnableTLS
=
$conf
->
getBoolean
(
self
::
LDAP_TLS
,
false
);
$this
->
connector
=
new
LdapConnector
(
$ldapHostname
,
$ldapUser
,
$ldapPassword
);
$this
->
connector
=
new
LdapConnector
(
$ldapHostname
,
$ldapUser
,
$ldapPassword
,
$ldapEnableTLS
);
$this
->
fallbackAdapter
=
new
AdapterRpc
();
}
Loading