Adldap\Connections\Provider::search PHP Method

    public function search()
    {
        return $this->newSearchFactory($this->connection, $this->schema, $this->configuration->get('base_dn'));
    }

Usage Example

 /**
  * @param string $employeeId
  * @return \Adldap\Models\Entry
  * @throws UserNotFoundException
  */
 public function findUser($employeeId)
 {
     $this->connect();
     $criteria = $this->getSearchCriteria();
     try {
         /** @var \Adldap\Models\Entry $user */
         $user = $this->ldapProvider->search()->select($criteria)->findByOrFail($this->employeeIdAttribute, $employeeId);
     } catch (\Exception $e) {
         throw new UserNotFoundException('User not found', 1463493653, $e);
     }
     return $user;
 }