'AdModule_CheckConnection', 'server' => Request::post('server'), 'searchbase' => Request::post('searchbase'), 'binddn' => Request::post('binddn'), 'bindpw' => Request::post('bindpw'), )); } } class AdModule_CheckConnection extends AddModule_Base { private $taskId = false; protected function preprocessInternal() { $server = Request::post('server'); $searchbase = Request::post('searchbase'); $binddn = Request::post('binddn'); $bindpw = Request::post('bindpw'); if (empty($server) || empty($searchbase) || empty($binddn)) { Message::addError('empty-field'); AddModule_Base::setStep('AdModule_Start'); return; } $this->taskId = 'ad_' . mt_rand() . '-' . microtime(true); Taskmanager::submit('LdapSearch', array( 'id' => $this->taskId, 'uri' => '' ), true); } protected function renderInternal() { Message::addInfo('missing-file'); } }