Log in to the site / front-end with LDAP user or Joomla-registered user
Log in by admin / backend with LDAP user or Joomla registered user
Access to the intranet / front-end website or access to the joomla administrative area or back-end
Fatal error: Call to undefined method Joomla\Ldap\LdapClient::escape() in /var/www/html/portal/plugins/authentication/ldap/ldap.php on line 90
I noticed this difference without code from the ldap.php file from version 3.7.5 to 3.8.0 and I did not understand the error:
j!3.7.5, lines:
84 if ($bindtest)
85 {
86 // Search for users DN
87 $binddata = $ldap->simple_search(str_replace('[search]', $credentials['username'], $this->params->get('search_string')));
88
89 if (isset($binddata[0], $binddata[0]['dn']))
j!3.8.0, lines:
84 if ($bindtest)
85 {
86 // Search for users DN
87 $binddata = $ldap->simple_search(
88 str_replace(
89 '[search]',
90 $ldap->escape($credentials['username'], null, LDAP_ESCAPE_FILTER),
91 $this->params->get('search_string')
92 )
93 );
94
95 if (isset($binddata[0], $binddata[0]['dn']))
Basically, more parameters were added to $ binddata = $ ldap-> simple_search (
on line 87, the same happens for line 119 and 123 in j! 3.8.0
obs: Our portal is based on LDAP connection, all users use this authentication model, only super admin users who do not!
And even the super admin does not connect
Tanks!
Labels |
Added:
?
|
Category | ⇒ | Authentication |
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-09-22 15:47:19 |
Closed_By | ⇒ | joomla-cms-bot |
Status | Closed | ⇒ | Duplicate Report |
Closed_By | joomla-cms-bot | ⇒ | franz-wohlkoenig |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/18072
closed as duplicated Report #17989
can help #17989