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

Commitfb861a6

Browse files
committed
Add verbose ext-ldap error if present for easier debugging
1 parent90e7945 commitfb861a6

File tree

1 file changed

+6
-1
lines changed
  • src/Symfony/Component/Ldap/Adapter/ExtLdap

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,12 @@ public function execute()
8989
}
9090

9191
if (false ===$this->search) {
92-
thrownewLdapException(sprintf('Could not complete search with dn "%s", query "%s" and filters "%s".',$this->dn,$this->query,implode(',',$this->options['filter'])));
92+
$ldapError ='';
93+
if ($errno =ldap_errno($con)) {
94+
$ldapError =sprintf(' LDAP error was [%d] %s',$errno,ldap_error($con));
95+
}
96+
97+
thrownewLdapException(sprintf('Could not complete search with dn "%s", query "%s" and filters "%s".%s',$this->dn,$this->query,implode(',',$this->options['filter']),$ldapError));
9398
}
9499

95100
returnnewCollection($this->connection,$this);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp