Merge pull request #12445 from snipe/fixes/exit_out_ldap

Added an exit for the LDAP disabled sync short-circuit
This commit is contained in:
snipe 2023-02-01 16:48:00 -08:00 committed by GitHub
commit 2997de2a66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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