diff --git a/lib/Net/LDAP3.php b/lib/Net/LDAP3.php index e0ee15ce7569f531f7305b13fe56ec7706334837..fd45081c52acb8fa9a8b9843fc7543c4df9390f8 100644 --- a/lib/Net/LDAP3.php +++ b/lib/Net/LDAP3.php @@ -91,6 +91,7 @@ class Net_LDAP3 'sizelimit' => 0, 'timelimit' => 0, 'config_root_dn' => 'cn=config', + 'vlv' => null, ); protected $debug_level = false; @@ -740,7 +741,9 @@ class Net_LDAP3 ); foreach (array('aclrights', 'attributelevelrights', 'entrylevelrights') as $attr_name) { - if ($attr_value = $result[$attr_name]) { + if (!empty($result[$attr_name])) { + $attr_value = $result[$attr_name]; + switch ($attr_name) { case 'aclrights': $this->parse_aclrights($attributes, $attr_value);