This indicates a problem with ldap_search()
performing the lookup for a user authenticating. If you want to investigate it further, add this line immediately above the line referenced in the error log (class-authentication:641):
if ( ! $ldap_search ) { error_log( ldap_error( $ldap ) ); }
https://github.com/uhm-coe/authorizer/blob/master/src/authorizer/class-authentication.php#L641
Then check your error logs for the specific error.
Can you verify that the LDAP Directory User Password
field in Authorizer Settings is correct? Another user mentioned that it was invalidated in a recent system update.
https://wordpress.org/support/topic/ldap-not-authenticate-after-update-to-php-7-3-9/
Interesting.
I think the password is probably okay, inasmuch as authentication is happening successfully, but I’ll look at pursuing the search when I get back to the office, post-holiday.
Thanks for the info!
Hi @vickita doing a quick check in to see if you still need assistance on this issue. Please let us know!
Hi @pkarjala, timing is everything! Yes, I am revisiting this issue today. I’m seeing two error messages now, the one from before:
PHP Warning: ldap_get_entries() expects parameter 2 to be resource, boolean given in /path_to_wordpress/wp-content/plugins/authorizer/src/authorizer/class-authentication.php on line 641
and this one:
PHP Warning: ldap_search(): Search: Operations error in /path_to_wordpress/wp-content/plugins/authorizer/src/authorizer/class-authentication.php on line 639
I added the line you gave me above and get this:
AH02261: Re-negotiation handshake failed
which makes sense to me, because I think I’m getting logged in, but the system isn’t getting a response it’s expecting? And so it just sits there.
I’m trying to bring in an AD consultant and am going to ping the local relevant people again on this, so any input you have would be great.
Hi @vickita I think in this case it would be best to see what is being put into the ldap_get_entries
value from $ldap_search
at the previously mentioned location.
Can you please add
error_log(print_r( $ldap_search, true ));
just before line 641 in https://github.com/uhm-coe/authorizer/blob/master/src/authorizer/class-authentication.php#L641 ?
Please then check the error logs on the WordPress web server and let us know what the results are.
-
This reply was modified 4 years, 6 months ago by pkarjala.