summaryrefslogtreecommitdiff
path: root/plugins/Ldap/LdapPlugin.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Ldap/LdapPlugin.php')
-rw-r--r--plugins/Ldap/LdapPlugin.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/Ldap/LdapPlugin.php b/plugins/Ldap/LdapPlugin.php
index 8ebe15b80..ec2b7977d 100644
--- a/plugins/Ldap/LdapPlugin.php
+++ b/plugins/Ldap/LdapPlugin.php
@@ -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;
+ }
}
}