mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-13 09:06:14 +01:00
Revert "Fix PHP 8.3 "Usage of ldap_connect with two arguments is deprecated" exception"
Summary:
Revert commit 700090917a
per T15963.
Fixes T15963
Opens T15724
Test Plan: N/A.
Reviewers: O1 Blessed Committers, valerio.bozzolan
Reviewed By: O1 Blessed Committers, valerio.bozzolan
Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno
Maniphest Tasks: T15963, T15724
Differential Revision: https://we.phorge.it/D25842
This commit is contained in:
parent
a68b8daafd
commit
0bfdcaa005
1 changed files with 2 additions and 7 deletions
|
@ -305,12 +305,7 @@ final class PhutilLDAPAuthAdapter extends PhutilAuthAdapter {
|
|||
'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 @@ final class PhutilLDAPAuthAdapter extends PhutilAuthAdapter {
|
|||
|
||||
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(
|
||||
|
|
Loading…
Reference in a new issue