Yeah I use it daily one two projects.
Did you create a user with elevated rights to do the queries?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
To save my users the trouble of remembering another password, I wanted to authenticate users via Active Directory. I found a package called directorytree/ldaprecord that supposedly can make this work. From my understanding, I need to configure Laravel with the connection parameters for the Active Directory, import all of my AD users to my Laravel database, and authentication should work.
When I run the following command, I get a successful connection to the Active Directory server:
php artisan ldap:test
When I run the following command, it tells me that 0 out of 80 users were imported.
php artisan ldap:import ldap
I've tried the import using both a standard and domain administrator account. Neither allows me to import the users. Has anyone used this package before? Does anyone know of anything else that may work better?
Please or to participate in this conversation.