diff options
author | Craig Andrews <candrews@integralblue.com> | 2009-11-05 13:59:19 -0500 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2009-11-05 13:59:19 -0500 |
commit | 73e45bbfd99f0aafc1b22ab4dbbfc4e4329fc254 (patch) | |
tree | e1045d8e00ec17a1b9f15d4df0e642e5aaa0bf0c /plugins/Ldap/LdapPlugin.php | |
parent | 066331bdf7496bed328ef545e409e121603da75b (diff) |
Made the ldap plugin work, and add a readme
Diffstat (limited to 'plugins/Ldap/LdapPlugin.php')
-rw-r--r-- | plugins/Ldap/LdapPlugin.php | 9 |
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; + } } } |