mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 06:04:08 -08:00
Merge pull request #8423 from snipe/fix_ldap_test_php74
Fix ldap test php74
This commit is contained in:
commit
f949a95cfb
|
@ -75,6 +75,7 @@ class SettingsController extends Controller
|
|||
// Get a sample of 10 users so user can verify the data is correct
|
||||
try {
|
||||
Log::info('Testing LDAP sync');
|
||||
error_reporting(E_ALL & ~E_DEPRECATED); // workaround for php7.4, which deprecates ldap_control_paged_result
|
||||
$users = $ldap->testUserImportSync();
|
||||
$message['user_sync'] = [
|
||||
'users' => $users
|
||||
|
|
Loading…
Reference in a new issue