Пример #1
0
 /**
  * Connects to the Ldap store
  *
  * @return void
  *
  * @throws Toyota\Component\Ldap\Exception\ConnectionException if connection fails
  * @throws Toyota\Component\Ldap\Exception\OptionException if connection configuration fails
  */
 public function connect()
 {
     $this->isBound = false;
     $this->connection = $this->driver->connect($this->configuration['hostname'], $this->configuration['port'], $this->configuration['withSSL'], $this->configuration['withTLS']);
     foreach ($this->configuration['options'] as $key => $value) {
         $this->connection->setOption($key, $value);
     }
 }