Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitefeb72b

Browse files
committed
Improve error reporting during LDAP bind
Based on thehttps://www.php.net/manual/en/function.ldap-error.php#121881
1 parent5028ec6 commitefeb72b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

‎src/Symfony/Component/Ldap/Adapter/ExtLdap/Connection.php‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ public function bind(?string $dn = null, #[\SensitiveParameter] ?string $passwor
7878
caseself::LDAP_ALREADY_EXISTS:
7979
thrownewAlreadyExistsException($error);
8080
}
81-
thrownewConnectionException($error);
81+
ldap_get_option($this->connection,LDAP_OPT_DIAGNOSTIC_MESSAGE,$diagnostic_message);
82+
thrownewConnectionException($error.''.$diagnostic_message);
8283
}
8384

8485
$this->bound =true;

‎src/Symfony/Component/Ldap/CHANGELOG.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
7.1
5+
---
6+
7+
* Improve error reporting during LDAP bind
8+
49
7.0
510
---
611

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp