You are here

public function SimpleLdapServer::connect in Simple LDAP 8

1 call to SimpleLdapServer::connect()
SimpleLdapServer::__construct in src/SimpleLdapServer.php
Constructs a SimpleLdapServer.

File

src/SimpleLdapServer.php, line 281

Class

SimpleLdapServer

Namespace

Drupal\simple_ldap

Code

public function connect() {
  try {
    $this->ldap
      ->connect();
  } catch (SimpleLdapException $e) {
    return FALSE;
  }
  return TRUE;
}