Steve Bauman
Steve Bauman
Thanks for the detailed info! I'll see if I can test this on my end and reproduce.
Also, try using the `--daemon` flag for the queue and see if you still receive this issue: https://laravel.com/docs/5.1/queues#daemon-queue-listener
This is definitely hard to debug, I'm having trouble determining what is actually going on behind the scenes. I'm able to reproduce the issue using your steps above, but even...
@ndum > Unfortunately I can't find a method in the Adldap2 interface to close the connection. Is there really no easy way here to close the connection? Yes there is,...
Hi @KuenzelIT, I'm still looking to resolve this - I haven't found a resolution yet besides running jobs via the Laravel scheduler instead of queued jobs. Though I know this...
I'm wondering if we could use queue events to force re-establishing the connection on every loop: ```php use Adldap\Laravel\Facades\Adldap; use Illuminate\Support\Facades\Queue; Queue::looping(function () { Adldap::getDefaultProvider()->setConnection()->connect(); }); ``` Still needs to...
Okay, I've made progress. There's something going on with the usage the Adldap facade / the providers being setup in the application outside of the job. Here's the job I'm...
Getting closer - it's something to do with the `singleton` registration in the `AdldapServiceProvider`: ```php $this->app->singleton(AdldapInterface::class, function (Container $app) { // ... }); ``` If I swap it to a...
Apologies for all the comments here. Turns out that Laravel already dynamically handles lost or disconnected database connections in the queue: https://github.com/laravel/framework/blob/7b074c1ac506c1895f85ec77481b55228a122a05/src/Illuminate/Database/Connection.php#L716-L725 ```php protected function handleQueryException(QueryException $e, $query, $bindings, Closure...
Hi @Martin7532, I'd be glad to help. Can you post your `ldap_auth.php` file with any sensitive details omitted? Also, did you set this line to `userprincipalname`?: https://github.com/Adldap2/Adldap2-Laravel/blob/d04f270e8bd591eb1e7c93a6804db40e39bdc323/src/Config/auth.php#L174 If you change...