From 508e7acb542b2d7cfcfa756c050688e98ff3bfae Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 21 Jun 2016 12:22:10 -0700 Subject: [PATCH] Bump up memory for LDAP import of large number of users --- app/Http/Controllers/UsersController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Http/Controllers/UsersController.php b/app/Http/Controllers/UsersController.php index 862ea632b0..40a9eaab90 100755 --- a/app/Http/Controllers/UsersController.php +++ b/app/Http/Controllers/UsersController.php @@ -40,6 +40,8 @@ use Illuminate\Http\Request; * * @version v1.0 */ + + class UsersController extends Controller { @@ -1132,6 +1134,8 @@ class UsersController extends Controller */ public function postLDAP() { + ini_set('max_execution_time', 600); //600 seconds = 10 minutes + ini_set('memory_limit', '500M'); $location_id = e(Input::get('location_id'));