A free open source IT asset/license management system
Restore the LDAP_TIME_LIM env var for ldap sync of very large directories
Brady Wetherington966179290bbe
diff --git a/app/Console/Commands/LdapSync.php b/app/Console/Commands/LdapSync.phpindex 94ed764a80..71aa6b571d 100644--- a/app/Console/Commands/LdapSync.php+++ b/app/Console/Commands/LdapSync.php@@ -108,7 +108,7 @@ class LdapSync extends Command*/public function handle(){- ini_set('max_execution_time', '600'); //600 seconds = 10 minutes+ ini_set('max_execution_time', env('LDAP_TIME_LIM', 600)); //600 seconds = 10 minutesini_set('memory_limit', '500M');$old_error_reporting = error_reporting(); // grab old error_reporting .ini setting, for later re-enablementerror_reporting($old_error_reporting & ~E_DEPRECATED); // disable deprecation warnings, for LDAP in PHP 7.4 (and greater)