mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-14 01:24:06 -08:00
Merge branch 'develop'
This commit is contained in:
commit
7a2abcca33
|
@ -67,7 +67,16 @@ class LdapSync extends Command
|
||||||
|
|
||||||
$summary = array();
|
$summary = array();
|
||||||
|
|
||||||
|
try {
|
||||||
$results = Ldap::findLdapUsers();
|
$results = Ldap::findLdapUsers();
|
||||||
|
} catch (\Exception $e) {
|
||||||
|
if ($this->option('json_summary')) {
|
||||||
|
$json_summary = [ "error" => true, "error_message" => $e->getMessage(), "summary" => [] ];
|
||||||
|
$this->info(json_encode($json_summary));
|
||||||
|
}
|
||||||
|
LOG::error($e);
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
// Retrieve locations with a mapped OU, and sort them from the shallowest to deepest OU (see #3993)
|
// Retrieve locations with a mapped OU, and sort them from the shallowest to deepest OU (see #3993)
|
||||||
$ldap_ou_locations = Location::where('ldap_ou', '!=', '')->get()->toArray();
|
$ldap_ou_locations = Location::where('ldap_ou', '!=', '')->get()->toArray();
|
||||||
|
|
Loading…
Reference in a new issue