Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function auth()
 {
     // Make sure the connection we've been given
     // is bound before we try to binding to it.
     if (!$this->connection->isBound()) {
         throw new ConnectionException('No connection to an LDAP server is present.');
     }
     return $this->getGuard();
 }