Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress warning errors and check the environment before using ldap #1540

Closed
tm8544 opened this issue May 20, 2024 · 1 comment
Closed

Suppress warning errors and check the environment before using ldap #1540

tm8544 opened this issue May 20, 2024 · 1 comment

Comments

@tm8544
Copy link

tm8544 commented May 20, 2024

I think there is still a problem in application/libraries/Ldap_client.php after 3f39861.

I have ldap_is_active = 0 in settings.
When I try to login to backoffice with false credentials, I get The LDAP extension is not loaded, but I think I should get Invalid credentials provided, please try again.

Should $this->check_environment(); on line 87 be after

$ldap_is_active = setting('ldap_is_active');

if (!$ldap_is_active) {
    return null;
}

in lines 89-93?

@trueeh trueeh mentioned this issue May 22, 2024
@alextselegidis
Copy link
Owner

Hello!

Thanks for submitting this.

All LDAP calls are now suppressed so that errors render correctly and the app works even without the plugin.

Alex Tselegidis, Easy!Appointments Creator
Need a customization? Get a free quote!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants