Page MenuHomePhorge

D25842.1736628300.diff
No OneTemporary

D25842.1736628300.diff

diff --git a/src/applications/auth/adapter/PhutilLDAPAuthAdapter.php b/src/applications/auth/adapter/PhutilLDAPAuthAdapter.php
--- a/src/applications/auth/adapter/PhutilLDAPAuthAdapter.php
+++ b/src/applications/auth/adapter/PhutilLDAPAuthAdapter.php
@@ -305,12 +305,7 @@
'port' => $this->port,
));
- if ($this->ldapStartTLS) {
- $ldap_server_uri = 'ldaps://'.$host.':'.$this->port;
- } else {
- $ldap_server_uri = 'ldap://'.$host.':'.$this->port;
- }
- $conn = @ldap_connect($ldap_server_uri);
+ $conn = @ldap_connect($host, $this->port);
$profiler->endServiceCall(
$call_id,
@@ -320,7 +315,7 @@
if (!$conn) {
throw new Exception(
- pht('Unable to connect to LDAP server (%s).', $ldap_server_uri));
+ pht('Unable to connect to LDAP server (%s:%d).', $host, $port));
}
$options = array(

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 11, 20:45 (36 m, 52 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1110651
Default Alt Text
D25842.1736628300.diff (919 B)

Event Timeline