src/Connections/LdapConnection.php
public function connect()
    {
        $port = $this->ssl ? $this::PORT_SSL : $this::PORT;

        $hostname = $this->domainController->getHostname();

        return $this->connection = ldap_connect($hostname, $port);
    }
public function connect()
    {
        $port = $this->ssl ? $this::PORT_SSL : $this::PORT;

        $hostname = $this->domainController->getHostname();

        return $this->connection = ldap_connect($hostname, $port);
    }
Initialises a Connection via hostname

@return resource