AuthLDAP : login failed after 2.5.4 upgrade
-
Hi
All my 10 websites have updated AuthLDAP from 2.5.2 to 2.5.4.
using WordPress 6.1.3 and php 7.4.32Now it is not possible to connect anymore with ldap user, wordpress displays
——
There has been a critical error on this website. Please check your site admin email inbox for instructions.Learn more about troubleshooting WordPress.
——The content of mail sent to admin is
—–
Error Details
=============
An error of type E_ERROR was caused in line 385 of the file /data/www/XXXX/wp-content/plugins/authldap/authLdap.php. Error message: Uncaught Error: [] operator not supported for strings in /data/www/XXXX/wp-content/plugins/authldap/authLdap.php:385
Stack trace:
#0 /data/www/XXXX/wp-includes/class-wp-hook.php(308): authLdap_login()
#1 /data/www/XXXX/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#2 /data/www/XXXX/wp-includes/pluggable.php(614): apply_filters()
#3 /data/www/XXXX/wp-includes/user.php(95): wp_authenticate()
#4 /data/www/XXXX/wp-login.php(1231): wp_signon()
#5 {main}
thrown—–
Apache. log after enabling debug option
—
[Wed Aug 30 13:47:23.789076 2023] [php7:notice] [pid 15404] [client 10.8.0.3:53171] [AuthLDAP] User ‘guillaume’ logging in, referer: https://www.mysite.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.mysite.com%2Fwp-admin%2F&reauth=1
[Wed Aug 30 13:47:23.789107 2023] [php7:notice] [pid 15404] [client 10.8.0.3:53171] [AuthLDAP] about to do LDAP authentication, referer: https://www.mysite.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.mysite.com%2Fwp-admin%2F&reauth=1
[Wed Aug 30 13:47:23.789115 2023] [php7:notice] [pid 15404] [client 10.8.0.3:53171] [AuthLDAP] connect to LDAP server, referer: https://www.mysite.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.mysite.com%2Fwp-admin%2F&reauth=1
[Wed Aug 30 13:47:23.791143 2023] [php7:notice] [pid 15404] [client 10.8.0.3:53171] [AuthLDAP] LDAP authentication successful, referer: https://www.mysite.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.mysite.com%2Fwp-admin%2F&reauth=1
[Wed Aug 30 13:47:23.791607 2023] [php7:notice] [pid 15404] [client 10.8.0.3:53171] [AuthLDAP] Existing user, uid = 2, referer: https://www.mysite.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.mysite.com%2Fwp-admin%2F&reauth=1
[Wed Aug 30 13:47:23.791678 2023] [php7:notice] [pid 15404] [client 10.8.0.3:53171] [AuthLDAP] Array\n(\n [administrator] => \n [editor] => \n [author] => \n [contributor] => \n [subscriber] => \n)\n, referer: https://www.mysite.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.mysite.com%2Fwp-admin%2F&reauth=1
[Wed Aug 30 13:47:23.791689 2023] [php7:notice] [pid 15404] [client 10.8.0.3:53171] [AuthLDAP] Array\n(\n [administrator] => \n [editor] => \n [author] => \n [contributor] => \n [subscriber] => \n)\n, referer: https://www.mysite.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.mysite.com%2Fwp-admin%2F&reauth=1
[Wed Aug 30 13:47:23.791697 2023] [php7:notice] [pid 15404] [client 10.8.0.3:53171] [AuthLDAP] No group names defined, referer: https://www.mysite.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.mysite.com%2Fwp-admin%2F&reauth=1
[Wed Aug 30 13:47:23.791702 2023] [php7:notice] [pid 15404] [client 10.8.0.3:53171] [AuthLDAP] role from group mapping: “”, referer: https://www.mysite.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.mysite.com%2Fwp-admin%2F&reauth=1
[Wed Aug 30 13:47:23.791706 2023] [php7:notice] [pid 15404] [client 10.8.0.3:53171] [AuthLDAP] no role yet, set default role, referer: https://www.mysite.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.mysite.com%2Fwp-admin%2F&reauth=1
[Wed Aug 30 13:47:23.791743 2023] [php7:error] [pid 15404] [client 10.8.0.3:53171] PHP Fatal error: Uncaught Error: [] operator not supported for strings in /data/www/XXX/wp-content/plugins/authldap/authLdap.php:385\nStack trace:\n#0 /data/www/XXX/wp-includes/class-wp-hook.php(308): authLdap_login()\n#1 /data/www/XXX/wp-includes/plugin.php(205): WP_Hook->apply_filters()\n#2 /data/www/XXX/wp-includes/pluggable.php(614): apply_filters()\n#3 /data/www/XXX/wp-includes/user.php(95): wp_authenticate()\n#4 /data/www/XXX/wp-login.php(1231): wp_signon()\n#5 {main}\n thrown in /data/www/XXX/wp-content/plugins/authldap/authLdap.php on line 385, referer: https://www.mysite.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.mysite.com%2Fwp-admin%2F&reauth=1—
the configuration is here : https://dl.chercheur-de-lumieres.fr/authldap/any help is welcomed
thanks
regards
- The topic ‘AuthLDAP : login failed after 2.5.4 upgrade’ is closed to new replies.