mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +02:00
parent
d0383a241e
commit
f87a43b9d3
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
namespace Icinga\Module\Setup\Forms;
|
namespace Icinga\Module\Setup\Forms;
|
||||||
|
|
||||||
|
use Exception;
|
||||||
use Zend_Validate_NotEmpty;
|
use Zend_Validate_NotEmpty;
|
||||||
use Icinga\Web\Form;
|
use Icinga\Web\Form;
|
||||||
use Icinga\Web\Form\ErrorLabeller;
|
use Icinga\Web\Form\ErrorLabeller;
|
||||||
@ -68,9 +69,12 @@ class LdapDiscoveryPage extends Form
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (isset($data['domain']) && $data['domain']) {
|
if (isset($data['domain']) && $data['domain']) {
|
||||||
$this->discovery = Discovery::discoverDomain($data['domain']);
|
try {
|
||||||
if ($this->discovery->isSuccess()) {
|
$this->discovery = Discovery::discoverDomain($data['domain']);
|
||||||
return true;
|
if ($this->discovery->isSuccess()) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
} catch (Exception $e) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->addError(
|
$this->addError(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user