Closed BARNZ closed 4 years ago
Ah thanks @BARNZ! I know exactly what it is -- v1.5.1 introduced a patch to fix this issue: https://github.com/DirectoryTree/LdapRecord/issues/116
However, this may be a bug with the PHP version itself that the dev was using... Give me a couple minutes to do some testing and I'll have a patch out, thanks!
Okay rolled the change back. I'm dubbing the original cause of #116 as a PHP bug, as I have not experienced it using PHP 7.2, 7.3 or 7.4 on my own installations.
Run composer update
and you're good to go!
Yep confirmed working with the latest version. Thanks for the quick turnaround Steve!
Perfect, great to hear @BARNZ, glad I could help! 👍
ErrorException: ldap_read(): Search: Critical extension is unavailable in C:\laragon\www\project-hub\vendor\directorytree\ldaprecord\src\Ldap.php:538
Describe the bug After upgrading this package from v1.2.x to the latest version I am getting the above error when searching for a user in my Active Directory (but it doesnt seem to happen in all cases). I have tested rolling back through the recent versions and it appears as through this bug was introduced in v1.5.1 (v1.5.0 works fine)
I'm unsure what could be causing this, but some change introduced in 1.5.1 is triggering it
Stack trace:
I'm fetching a user from AD and in the
asPlainObject
function of my User model (which extends the standard BaseUser) im firing another call toUser::find
to get their manager based on the users retrieved manager dn. Highlighted below:The highlighted section triggers the above stack trace resulting in the exception being thrown.
Expected behavior No exception to be thrown
Environment (please complete the following information):