summaryrefslogtreecommitdiff
path: root/plugins/Ldap/LdapPlugin.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-11-11 00:22:29 -0500
committerEvan Prodromou <evan@status.net>2009-11-11 00:22:29 -0500
commit093857c582a68b39e0d65523d27f25ede7b7fed6 (patch)
treef72edea0266ca3c74374a2fb82bfe74220de377f /plugins/Ldap/LdapPlugin.php
parent1455d60b06df11f7b765040a4195ded288711ae0 (diff)
parentdb64b612961c37477d0729e9ff4f882fb5df7b8d (diff)
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'plugins/Ldap/LdapPlugin.php')
-rw-r--r--plugins/Ldap/LdapPlugin.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/plugins/Ldap/LdapPlugin.php b/plugins/Ldap/LdapPlugin.php
index 8a416bccc..88ca92b37 100644
--- a/plugins/Ldap/LdapPlugin.php
+++ b/plugins/Ldap/LdapPlugin.php
@@ -36,6 +36,17 @@ require_once 'Net/LDAP2.php';
class LdapPlugin extends AuthPlugin
{
+ public $host=null;
+ public $port=null;
+ public $version=null;
+ public $starttls=null;
+ public $binddn=null;
+ public $bindpw=null;
+ public $basedn=null;
+ public $options=null;
+ public $filter=null;
+ public $scope=null;
+ public $attributes=array();
function __construct()
{
@@ -125,7 +136,7 @@ class LdapPlugin extends AuthPlugin
$keys = array('host','port','version','starttls','binddn','bindpw','basedn','options','filter','scope');
foreach($keys as $key){
$value = $this->$key;
- if($value!==false){
+ if($value!==null){
$config[$key]=$value;
}
}