From 0cfeab8c508650586ea2ad1bdece7de8fa98dd84 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 1 Feb 2023 16:46:58 -0800 Subject: [PATCH] Added an exit for the LDAP disabled sync short-circuit Signed-off-by: snipe --- app/Console/Commands/LdapSync.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Console/Commands/LdapSync.php b/app/Console/Commands/LdapSync.php index f7b7518316..c2d7446934 100755 --- a/app/Console/Commands/LdapSync.php +++ b/app/Console/Commands/LdapSync.php @@ -48,6 +48,7 @@ class LdapSync extends Command // If LDAP enabled isn't set to 1 (ldap_enabled!=1) then we should cut this short immediately without going any further if (Setting::getSettings()->ldap_enabled!='1') { $this->error('LDAP is not enabled. Aborting. See Settings > LDAP to enable it.'); + exit(); } ini_set('max_execution_time', env('LDAP_TIME_LIM', 600)); //600 seconds = 10 minutes