summaryrefslogtreecommitdiff
path: root/lib/Net
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2015-01-06 10:40:16 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2015-01-06 10:40:16 (GMT)
commit74430ecfb06acf62c4b4ca25b316e8aa2ec1980e (patch)
tree98f9efc981df7088138e4e0c01bae2baf3cb607f /lib/Net
parentc2cc70eec3ebbdb36d62f5cba64148ea06647673 (diff)
downloadNet_LDAP3-74430ecfb06acf62c4b4ca25b316e8aa2ec1980e.tar.gz
Provide additional commentary on the complex VLV/SSS configuration/detection
Diffstat (limited to 'lib/Net')
-rw-r--r--lib/Net/LDAP3.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/lib/Net/LDAP3.php b/lib/Net/LDAP3.php
index d910c0d..626c9cd 100644
--- a/lib/Net/LDAP3.php
+++ b/lib/Net/LDAP3.php
@@ -1984,14 +1984,47 @@ class Net_LDAP3
*/
protected function find_vlv_indexes_and_searches()
{
+ // Use of Virtual List View control has been specifically disabled.
if ($this->config['vlv'] === false) {
return false;
}
+ // Virtual List View control has been configured in kolab.conf, for example;
+ //
+ // [ldap]
+ // vlv = [
+ // {
+ // 'ou=People,dc=example,dc=org': {
+ // 'scope': 'sub',
+ // 'filter': '(objectclass=inetorgperson)',
+ // 'sort' : [
+ // [
+ // 'displayname',
+ // 'sn',
+ // 'givenname',
+ // 'cn'
+ // ]
+ // ]
+ // }
+ // },
+ // {
+ // 'ou=Groups,dc=example,dc=org': {
+ // 'scope': 'sub',
+ // 'filter': '(objectclass=groupofuniquenames)',
+ // 'sort' : [
+ // [
+ // 'cn'
+ // ]
+ // ]
+ // }
+ // },
+ // ]
+ //
if (is_array($this->config['vlv'])) {
return $this->config['vlv'];
}
+ // We have done this dance before.
if ($this->_vlv_indexes_and_searches !== null) {
return $this->_vlv_indexes_and_searches;
}