. * * @category Plugin * @package StatusNet * @author Craig Andrews * @copyright 2009 Craig Andrews http://candrews.integralblue.com * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 * @link http://status.net/ */ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } require_once INSTALLDIR.'/plugins/Ldap/ldap.php'; class LdapPlugin extends Plugin { private $config = array(); function __construct() { parent::__construct(); } function onCheckPassword($nickname, $password, &$authenticated) { if(ldap_check_password($nickname, $password)){ $authenticated = true; return false; } } }