authLdap doesn't work with other auth plugins
-
Hello,
when using ‘HTTP authentication’ together with ‘authLdap’ I did discovered probably more general problem in how many auth plugins works with:
add_filter(‘authenticate’…..
I did describe whole problem in this post:
https://www.ads-software.com/support/topic/http-authentication-doesnt-work-with-othe-auth-plugins?replies=1#post-7546969It is valid as well for authLdap – it doesn’t care, if the $user was already authenticated by previously hooked plugin. To correct this behavior proposed patch should be applied:
function authLdap_login($user, $username, $password, $already_md5 = false) { if (! empty($user) && ! is_wp_error($user)) { return $user; } // don't do anything when authLDAP is disabled if (! authLdap_get_option('Enabled')) { authLdap_debug('LDAP disabled in AuthLDAP plugin options (use the first option in the AuthLDAP options to enable it)'); return $user; }
Kind regards
Litin
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘authLdap doesn't work with other auth plugins’ is closed to new replies.