DON'T USE THIS PACKAGE!
Please don't use this package anymore. Use the way way way better Adldap2 Package: https://github.com/Adldap2/Adldap2, (*1)
FORK
This fork is to reflect the latest changes on master to packagist., (*2)
Currently on commit ee471d2243 of adldap/adLDAP, (*3)
Current release: v4.0.5, (*4)
I'll delete this repo if they decide to actively develop and tag adldap/adLDAP again., (*5)
PHP LDAP CLASS FOR MANIPULATING ACTIVE DIRECTORY
Current Stable Version 4.0.0 https://github.com/adldap/adLDAP/releases/tag/v4.0.4, (*6)
Next Version 5.0.0, (*7)
Written by Scott Barnett, Richard Hyland
email: scott@wiggumworld.com, adldap@richardhyland.com
https://github.com/adldap/adLDAP/, (*8)
ABOUT
adLDAP is a PHP class that provides LDAP authentication and integration with Active Directory., (*9)
We'd appreciate any improvements or additions to be submitted back
to benefit the entire community :), (*10)
REQUIREMENTS
adLDAP requires PHP 5 and both the LDAP (http://php.net/ldap) and SSL (http://php.net/openssl) libraries
adLDAP version 5.0.0 will require PHP 5.3+, (*11)
INSTALLATION
adLDAP is not an application, but a class library designed to integrate into your own applications., (*12)
The core of adLDAP is contained in the 'lib/adLDAP' directory. Simply copy/rename this directory inside your own
projects., (*13)
Edit the file lib/adldap/adLDAP.php
and change the configuration variables near the top, specifically
those for domain controllers, base dn and account suffix, and if you want to perform anything more complex
than use authentication you'll also need to set the admin username and password variables too., (*14)
From within your code simply require the adLDAP.php file and call it like so, (*15)
use \adLDAP;
require_once(dirname(__FILE__) . '/adLDAP.php');
$adldap = new adLDAP();
It would be better to wrap it in a try/catch though, (*16)
use \adLDAP;
try {
$adldap = new adLDAP();
}
catch (adLDAPException $e) {
echo $e;
exit();
}
Then simply call commands against it e.g., (*17)
$adldap->authenticate($username, $password);
, (*18)
or, (*19)
$adldap->group()->members($groupName);
, (*20)
DOCUMENTATION
You can find our website at https://github.com/adldap/adLDAP/ or the class documentation at, (*21)
https://github.com/adldap/adLDAP/wiki/adLDAP-Developer-API-Reference, (*22)
LICENSE
This library is free software; you can redistribute it and/or modify it under the terms of the
GNU Lesser General Public License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version., (*23)
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Lesser General Public License for more details or LICENSE.txt distributed with
this class., (*24)