Configure LDAP, try to login with LDAP user
LDAP to authenticate properly, currently failing with line 119 of ldap.php file.
Currently failing with line 119 of ldap.php file, specifically the $ldap->escape method that upon further inspection does not exist in the LdapClient.php file.
LAMP, php 6.x, J3.8
Labels |
Added:
?
|
Category | ⇒ | Authentication |
Priority | Medium | ⇒ | Critical |
Appreciate it, thanks!!
Created an FAQ https://docs.joomla.org/J3.x:J3.8.0_LDAP
Status | New | ⇒ | Discussion |
This sollution doesn't work with registered users, only super users can login
regards
before update to version 3.8.0 no issues during logon of all users through ldap in frontend.
after update: 0 - Call to undefined method Joomla\Ldap\LdapClient::escape() for all users
when replacing ldap file, only super users can login, regular users get: 0 - Class 'Joomla\Ldap\LdapClient' not found
???
Then you have not replaced the file correctly as the file contains that class.
just deleted the file on the server and copied the new file
is there another way?
regards
If you downloaded the HTML page and used that, then that would break it. Make sure you hit the "raw" button on the page so you get the actual PHP file that should be uploaded without any extra HTML. Additionally, the file must be uploaded with the correct casing in the name otherwise the file loader won't pick it up.
OK, Big thanks, it works
Regards
Kris
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-09-21 14:28:34 |
Closed_By | ⇒ | mbabker |
We had the same error and the solution with replacing the libraries/vendor/joomla/ldap/src/LdapClient.php
with the new version solved the issue for us!
Thanks mbabker! The fix works for me.
Getting the same error in 3.9.5
@OlofBailey Please don't randomly find 18 month old issues and comment "getting same error on new release". You can't be having the same error as this issue identified as this was an issue of a file not being correctly updated with the 3.8.0 release. If you believe you have found a bug with the new release, the proper action is to file a new issue report with all required details needed to either replicate the issue or explain why it is not a bug in the core package.
Replace the file with https://github.com/joomla-framework/ldap/blob/1.2.0/src/LdapClient.php
Apparently some pull request updating the file didn't get applied (or submitted?).