Closed TheSoulGamer158 closed 2 years ago
Hi @TheSoulGamer158,
It looks like you're configuring your connections in two ways. The published configuration file, and using an .env
file, shown here:
Important: It's recommended to only use one approach listed in this guide below. Using both approaches to configure your LDAP connections may lead to unexpected results.
https://ldaprecord.com/docs/laravel/v2/configuration#configuration
Since you've published the configuration file, here is what your .env
should look like:
LDAP_LOGGING=true
LDAP_CONNECTION=default
LDAP_HOST=localhost
LDAP_USERNAME="cn=admin,dc=ahdrive,dc=local"
LDAP_PASSWORD=adminpassword
LDAP_PORT=1389
LDAP_BASE_DN="OU=users,DC=ahdrive,DC=local"
LDAP_TIMEOUT=5
LDAP_SSL=false
LDAP_TLS=false
This should resolve your issue.
OMG I searched so loooong for just a small change... I thank you so much that you answered that fast. Would love to support you when I'm back home :)
Happy to help @TheSoulGamer158, thanks for your kind words 😄
Environment:
Describe the bug: I can connect to the LDAP Server but can't find any entries. I guess it's because of the empty dn (logs attached from
dd(\LDAPRecord\Models\Entry::read()->first());
.My .env looks like this:
And my ldap.php