tangervu / activedirectory
User authentication and access control tools for Active Directory
Installs: 134
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 2
Forks: 3
Open Issues: 0
pkg:composer/tangervu/activedirectory
This package is not auto-updated.
Last update: 2025-10-21 06:12:25 UTC
README
User authentication and access control tools for Active Directory
Installation
The recommended way to install Connection.php is through Composer.
{
"require": {
"tangervu/activedirectory": "dev-master"
}
}
Example
<?php require('vendor/autoload.php'); //Use composer autoload $ad = new ActiveDirectory\ActiveDirectory(); //Load AD server settings from ini file $ad->loadConfig('config.ini'); //Identify user. Uses Apache authentication (mod_auth_kerb) as primary authentication method but has http auth as fallback method. $login = $ad->identify(); //Get dname for user $login $dname = $ad->getDname($login); //Get user information $userInfo = $ad->getInfo($dname); //Check if user is member of an AD group (recursive search) if($ad->isMemberOf($dname, "Test Group", true)) { $isMember = true; } else { $isMember = false; }
License
LGPL v3