Пример #1
0
 /**
  * Checks the LDAP connection and prepares a Flash message if unavailable.
  *
  * @return bool
  */
 protected function checkLdapConnection()
 {
     try {
         $success = $this->ldap->connect(Configuration::getLdapConfiguration());
     } catch (\Causal\IgLdapSsoAuth\Exception\UnresolvedPhpDependencyException $e) {
         // Possible known exception: 1409566275, LDAP extension is not available for PHP
         $this->addFlashMessage($e->getMessage(), 'Error ' . $e->getCode(), \TYPO3\CMS\Core\Messaging\FlashMessage::ERROR);
         return FALSE;
     }
     return $success;
 }