From 54e47b4180ee93ce3fb6c78a7c08767b41ebb1d1 Mon Sep 17 00:00:00 2001
From: root <leo@strike.wu.ac.at>
Date: Fri, 6 Dec 2013 12:04:17 +0100
Subject: [PATCH] correctly propagate the return value of ldap_set_option
 otherwise LDAP_OPT_REFERRALS won't be set to 0 and in turn active directory
 paging will stop working (Operations error on
 ldap_control_paged_result_response)

---
 apps/user_ldap/lib/ldap.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/user_ldap/lib/ldap.php b/apps/user_ldap/lib/ldap.php
index bc96319172..dda8533c41 100644
--- a/apps/user_ldap/lib/ldap.php
+++ b/apps/user_ldap/lib/ldap.php
@@ -91,7 +91,7 @@ class LDAP implements ILDAPWrapper {
 	}
 
 	public function setOption($link, $option, $value) {
-		$this->invokeLDAPMethod('set_option', $link, $option, $value);
+		return $this->invokeLDAPMethod('set_option', $link, $option, $value);
 	}
 
 	public function sort($link, $result, $sortfilter) {
-- 
GitLab