Skip to content

Commit

Permalink
[4.x] Fix LDAP debugging functionality (#38388)
Browse files Browse the repository at this point in the history
* Restore broken ldap debugging functionality

* Fix composer.lock

* Remove unnecessary change

* More recent symfony/ldap to include symfony/symfony#47547

* fix hash in composer.lock

* Update composer.lock

---------
  • Loading branch information
tatankat authored Jan 30, 2023
1 parent 5ebb39b commit 8f94ab0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"psr/link": "~1.0",
"symfony/console": "~5.0",
"symfony/error-handler": "^5.2",
"symfony/ldap": "~5.0",
"symfony/ldap": "^5.4.13",
"symfony/options-resolver": "~5.0",
"symfony/polyfill-mbstring": "^1.27",
"symfony/polyfill-php73": "^1.10",
Expand Down
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions plugins/authentication/ldap/src/Extension/Ldap.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ public function onUserAuthenticate($credentials, $options, &$response)
'version' => $this->params->get('use_ldapV3', '1') == '1' ? 3 : 2,
'referrals' => (bool) $this->params->get('no_referrals', '0'),
'encryption' => $this->params->get('encryption', 'none'),
'debug' => (bool) $this->params->get('ldap_debug', '0'),
'options' => [
'x_tls_require_cert' => $ignore_reqcert_tls ? LDAP_OPT_X_TLS_NEVER : LDAP_OPT_X_TLS_DEMAND,
],
Expand Down

0 comments on commit 8f94ab0

Please sign in to comment.