summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-02-14 16:06:21 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-02-14 16:06:21 (GMT)
commit87092b460b64b45b0a69f9102b401d667740f3f0 (patch)
treeb9973fccade037542ca93374860197eebb5cbce5 /lib
parent2cedc705f2ff0341037c221678e09dfe7c7f8449 (diff)
downloadNet_LDAP3-87092b460b64b45b0a69f9102b401d667740f3f0.tar.gz
Make sure that configured referrals are actually set despite openldap installation defaults
Diffstat (limited to 'lib')
-rw-r--r--lib/Net/LDAP3.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/Net/LDAP3.php b/lib/Net/LDAP3.php
index 282bf92..6e9ca50 100644
--- a/lib/Net/LDAP3.php
+++ b/lib/Net/LDAP3.php
@@ -502,8 +502,16 @@ class Net_LDAP3
ldap_set_option(
$lc,
LDAP_OPT_REFERRALS,
- $this->config['referrals']
+ (bool)($this->config_get('referrals'))
);
+
+ } else {
+ ldap_set_option(
+ $lc,
+ LDAP_OPT_REFERRALS,
+ (bool)($this->config_get('referrals'))
+ );
+
}
break;