From 73e45bbfd99f0aafc1b22ab4dbbfc4e4329fc254 Mon Sep 17 00:00:00 2001 From: Craig Andrews Date: Thu, 5 Nov 2009 13:59:19 -0500 Subject: Made the ldap plugin work, and add a readme --- plugins/Ldap/LdapPlugin.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'plugins/Ldap/LdapPlugin.php') 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; + } } } -- cgit v1.2.3-54-g00ecf