Closed Nuvm closed 3 years ago
Hi @Nuvm,
This is due to your web server having a PHP installation that does not have the ldap
extension enabled. This is the only cause for this exception.
Please see:
I forgot about the webserver's php, you're right! Sorry for the bother and thank you!
No problem, happy to help @Nuvm! Glad you're up and running 😄
Environment:
Describe the bug: Whenever I try to log in through my normal auth routes, I get this warning logged as an error in my logs:
dev.ERROR: Use of undefined constant LDAP_ESCAPE_FILTER - assumed 'LDAP_ESCAPE_FILTER' (this will throw an Error in a future version of PHP) - in vendor\directorytree\ldaprecord\src\Models\Attributes\EscapedValue.php:107
It's as ifldap\ldap.php
wasn't loaded properly.. Sorry in advance if this is obvious; I'm not really good with the laravel Auth flow.Stacktrace:
I followed the database authentication and use the Active Directory built-in models.
ldap:test
succeeds.LoginController
config/Auth.php:
User model:
I've tried the User model with and without the
HasLdapUser
trait to no avail. Please note that our AD's distinguished names are in fact email addresses (email@domain.com).