dev-master
9999999-dev https://github.com/tangervu/ActiveDirectory.phpUser authentication and access control tools for Active Directory
LGPL-3.0
authentication ldap active directory access control kerberos
User authentication and access control tools for Active Directory
User authentication and access control tools for Active Directory, (*1)
The recommended way to install Connection.php is through Composer., (*2)
{ "require": { "tangervu/activedirectory": "dev-master" } }
<?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; }
LGPL v3, (*3)
User authentication and access control tools for Active Directory
LGPL-3.0
authentication ldap active directory access control kerberos