PHP Classes

Simple AD PHP LDAP Search Class: Search for people in Active Directory using LDAP

Recommend this page to a friend!
  Info   View files Example   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 56 All time: 10,462 This week: 121Up
Version License PHP version Categories
simple-ad-search-php 1.0GNU General Publi...5PHP 5, Databases, Searching


This package can search for people in Active Directory using LDAP.

It can connect to a directory server using a given user name, password, IP address, and domain controller identification.

The package can perform searches for user accounts in the directory using a given search string.

The class can also take parameters that can specify the types of user account details returned, such as the user name and email address.

Picture of Ákos Nikházy
Name: Ákos Nikházy <contact>
Classes: 9 packages by
Country: Hungary Hungary
Age: 36
All time rank: 4783 in Hungary Hungary
Week rank: 28 Up1 in Hungary Hungary Up
Innovation award
Innovation award
Nominee: 1x



// Make object.
// also it could be: $search = new ADSearch('','VerySecurePassword','','389','DC=example,DC=com')
$search = new ADSearch();

// Do the search. Its false if something went wrong.
if($result = $search -> Search('John Smi'))
'Search failed';


// also it could be: $sarch -> Search('Smith',array('displayname','samaccountname','mail'));
if($result2 = $search -> Search('Jane Smith',array('mail')))
'Search failed';



This is a simple class to do search in Active Directory though LDAP function in PHP.

  Files folder image Files  
File Role Description
Plain text file ADSearch.class.php Class Class source
Accessible without login Plain text file example.php Example Example script
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:10,462
This week:121Up