Made the ldap plugin work, and add a readme

This commit is contained in:
Craig Andrews
2009-11-05 13:59:19 -05:00
parent 066331bdf7
commit 73e45bbfd9
3 changed files with 130 additions and 1 deletions

View File

@@ -31,8 +31,12 @@ 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();
@@ -40,6 +44,9 @@ class LdapPlugin extends Plugin
function onCheckPassword($nickname, $password, &$authenticated)
{
if(ldap_check_password($nickname, $password)){
$authenticated = true;
return false;
}
}
}