2014-10-09 04:20:07 -04:00
|
|
|
<?php
|
2026-03-26 12:46:27 -04:00
|
|
|
|
|
|
|
|
// SPDX-FileCopyrightText: 2018 Icinga GmbH <https://icinga.com>
|
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
2014-10-09 04:20:07 -04:00
|
|
|
|
2014-11-14 04:57:14 -05:00
|
|
|
namespace Icinga\Forms;
|
2014-10-09 04:20:07 -04:00
|
|
|
|
|
|
|
|
use Icinga\Web\Form;
|
|
|
|
|
|
|
|
|
|
class LdapDiscoveryForm extends Form
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Initialize this page
|
|
|
|
|
*/
|
|
|
|
|
public function init()
|
|
|
|
|
{
|
|
|
|
|
$this->setName('form_ldap_discovery');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @see Form::createElements()
|
|
|
|
|
*/
|
|
|
|
|
public function createElements(array $formData)
|
|
|
|
|
{
|
|
|
|
|
$this->addElement(
|
|
|
|
|
'text',
|
|
|
|
|
'domain',
|
|
|
|
|
array(
|
2015-01-19 05:26:23 -05:00
|
|
|
'label' => $this->translate('Search Domain'),
|
|
|
|
|
'description' => $this->translate('Search this domain for records of available servers.'),
|
2014-10-09 04:20:07 -04:00
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
|
}
|
2014-11-18 07:21:18 -05:00
|
|
|
}
|