Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2670923
D25842.1734091000.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
919 B
Referenced Files
None
Subscribers
None
D25842.1734091000.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 13, 11:56 (20 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1008194
Default Alt Text
D25842.1734091000.diff (919 B)
Attached To
Mode
D25842: Revert "Fix PHP 8.3 "Usage of ldap_connect with two arguments is deprecated" exception"
Attached
Detach File
Event Timeline
Log In to Comment