code: public function connect()
      {
          $port = $this->ssl ? $this::PORT_SSL : $this::PORT;
  
          $hostname = $this->domainController->getHostname();
  
          return $this->connection = ldap_connect($hostname, $port);
      }
docs: Initialises a Connection via hostname
  
  @return resource