LDAP Disconnect Issues

Running the appliance version of nextcloud from the following URL.

Noticed that every ones in a while, we lose access to our CIFS external shares via nextcloud and then they come back after about 30 minutes. Not sure why the issue is as CIFS is always available, and it seems like a LDAP issue. Any thoughts on what could be causing our shares to go red in nextcloud and how to avoid this? Here is what we see in the logs.

Error internet_connection_check GuzzleHttp\Exception\RequestException: cURL error 18: transfer closed with 30672 bytes remaining to read 2018-01-13T20:23:32-0700
Error PHP ldap_search(): Partial search results returned: Sizelimit exceeded at /var/www/html/apps/user_ldap/lib/LDAP.php#293 2018-01-13T20:22:36-0700
Error PHP ldap_search(): Search: No such object at /var/www/html/apps/user_ldap/lib/LDAP.php#293 2018-01-13T20:22:36-0700
Error PHP ldap_unbind(): supplied resource is not a valid ldap link resource at /var/www/html/apps/user_ldap/lib/LDAP.php#293 2018-01-13T20:22:35-0700
Error PHP ldap_search(): Partial search results returned: Sizelimit exceeded at /var/www/html/apps/user_ldap/lib/LDAP.php#293 2018-01-13T20:19:54-0700
Error PHP ldap_search(): Partial search results returned: Sizelimit exceeded at /var/www/html/apps/user_ldap/lib/LDAP.php#293 2018-01-13T20:19:54-0700
Error PHP ldap_search(): Partial search results returned: Sizelimit exceeded at /var/www/html/apps/user_ldap/lib/LDAP.php#293 2018-01-13T19:44:26-0700
Warning user_ldap Configuration Error (prefix s02): login filter does not contain %uid place holder. 2018-01-13T19:44:26-0700
Warning user_ldap Configuration Error (prefix s02): No LDAP Login Filter given! 2018-01-13T19:44:26-0700
Warning user_ldap Configuration Error (prefix s02): login filter does not contain %uid place holder. 2018-01-13T19:44:26-0700
Warning user_ldap Configuration Error (prefix s02): No LDAP Login Filter given! 2018-01-13T19:44:26-0700
Warning user_ldap Configuration Error (prefix s02): login filter does not contain %uid place holder. 2018-01-13T19:44:26-0700
Warning user_ldap Configuration Error (prefix s02): No LDAP Login Filter given! 2018-01-13T19:44:26-0700
Warning user_ldap Configuration Error (prefix s02): login filter does not contain %uid place holder. 2018-01-13T19:44:26-0700
Warning user_ldap Configuration Error (prefix s02): No LDAP Login Filter given! 2018-01-13T19:44:26-0700
Warning user_ldap Configuration Error (prefix s02): login filter does not contain %uid place holder. 2018-01-13T19:44:26-0700
Warning user_ldap Configuration Error (prefix s02): No LDAP Login Filter given! 2018-01-13T19:44:26-0700
Warning user_ldap Configuration Error (prefix s02): login filter does not contain %uid place holder. 2018-01-13T19:44:26-0700
Warning user_ldap Configuration Error (prefix s02): No LDAP Login Filter given! 2018-01-13T19:44:26-0700
Warning user_ldap Configuration Error (prefix s02): login filter does not contain %uid place holder. 2018-01-13T19:44:22-0700

Another disconnect. Here is the error message.

Error internet_connection_check GuzzleHttp\Exception\RequestException: cURL error 18: transfer closed with 30672 bytes remaining to read
/var/www/html/3rdparty/guzzlehttp/guzzle/src/RequestFsm.php - line 103: GuzzleHttp\Exception\RequestException wrapException(Object(GuzzleHttp\Message\Request), Object(GuzzleHttp\Ring\Exception\RingException))
/var/www/html/3rdparty/guzzlehttp/guzzle/src/RequestFsm.php - line 132: GuzzleHttp\RequestFsm->__invoke(Object(GuzzleHttp\Transaction))
/var/www/html/3rdparty/react/promise/src/FulfilledPromise.php - line 25: GuzzleHttp\RequestFsm->GuzzleHttp{closure}(Array)
/var/www/html/3rdparty/guzzlehttp/ringphp/src/Future/CompletedFutureValue.php - line 55: React\Promise\FulfilledPromise->then(Object(Closure), NULL, NULL)
/var/www/html/3rdparty/guzzlehttp/guzzle/src/Message/FutureResponse.php - line 43: GuzzleHttp\Ring\Future\CompletedFutureValue->then(Object(Closure), NULL, NULL)
/var/www/html/3rdparty/guzzlehttp/guzzle/src/RequestFsm.php - line 134: GuzzleHttp\Message\FutureResponse proxy(Object(GuzzleHttp\Ring\Future\CompletedFutureArray), Object(Closure))
/var/www/html/3rdparty/guzzlehttp/guzzle/src/RequestFsm.php - line 132: GuzzleHttp\RequestFsm->__invoke(Object(GuzzleHttp\Transaction))
/var/www/html/3rdparty/react/promise/src/FulfilledPromise.php - line 25: GuzzleHttp\RequestFsm->GuzzleHttp{closure}(Array)
/var/www/html/3rdparty/guzzlehttp/ringphp/src/Future/CompletedFutureValue.php - line 55: React\Promise\FulfilledPromise->then(Object(Closure), NULL, NULL)
/var/www/html/3rdparty/guzzlehttp/guzzle/src/Message/FutureResponse.php - line 43: GuzzleHttp\Ring\Future\CompletedFutureValue->then(Object(Closure), NULL, NULL)
/var/www/html/3rdparty/guzzlehttp/guzzle/src/RequestFsm.php - line 134: GuzzleHttp\Message\FutureResponse proxy(Object(GuzzleHttp\Ring\Future\CompletedFutureArray), Object(Closure))
/var/www/html/3rdparty/guzzlehttp/guzzle/src/Client.php - line 165: GuzzleHttp\RequestFsm->__invoke(Object(GuzzleHttp\Transaction))
/var/www/html/3rdparty/guzzlehttp/guzzle/src/Client.php - line 125: GuzzleHttp\Client->send(Object(GuzzleHttp\Message\Request))
/var/www/html/lib/private/Http/Client/Client.php - line 138: GuzzleHttp\Client->get(‘http //www.next…’, Array)
/var/www/html/settings/Controller/CheckSetupController.php - line 125: OC\Http\Client\Client->get(‘http //www.next…’)
/var/www/html/settings/Controller/CheckSetupController.php - line 108: OC\Settings\Controller\CheckSetupController->isSiteReachable(‘www.nextcloud.c…’)
/var/www/html/settings/Controller/CheckSetupController.php - line 414: OC\Settings\Controller\CheckSetupController->isInternetConnectionWorking()
[internal function] OC\Settings\Controller\CheckSetupController->check()
/var/www/html/lib/private/AppFramework/Http/Dispatcher.php - line 160: call_user_func_array(Array, Array)
/var/www/html/lib/private/AppFramework/Http/Dispatcher.php - line 90: OC\AppFramework\Http\Dispatcher->executeController(Object(OC\Settings\Controller\CheckSetupController), ‘check’)
/var/www/html/lib/private/AppFramework/App.php - line 114: OC\AppFramework\Http\Dispatcher->dispatch(Object(OC\Settings\Controller\CheckSetupController), ‘check’)
/var/www/html/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47: OC\AppFramework\App main(‘OC\Settings\Con…’, ‘check’, Object(OC\AppFramework\DependencyInjection\DIContainer), Array)
[internal function] OC\AppFramework\Routing\RouteActionHandler->__invoke(Array)
/var/www/html/lib/private/Route/Router.php - line 299: call_user_func(Object(OC\AppFramework\Routing\RouteActionHandler), Array)
/var/www/html/lib/base.php - line 1004: OC\Route\Router->match(‘/settings/ajax/…’)
/var/www/html/index.php - line 48: OC handleRequest()
{main}