From 445e66a6fc81e1ce99309c9de9e8c46b36c145d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Lanzend=C3=B6rfer?= <leviathan@libresilicon.com> Date: Thu, 3 Aug 2023 15:53:51 +0100 Subject: [PATCH] YEY! --- lib/Net/LDAP3.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/Net/LDAP3.php b/lib/Net/LDAP3.php index 3e18908..584a738 100644 --- a/lib/Net/LDAP3.php +++ b/lib/Net/LDAP3.php @@ -39,7 +39,7 @@ require_once __DIR__ . '/LDAP3/Result.php'; * * @package Net_LDAP3 */ -class Net_LDAP3 implements Serializable +class Net_LDAP3 { const CONTROL_EFFECTIVE_RIGHTS = '1.3.6.1.4.1.42.2.27.9.5.2'; @@ -95,6 +95,16 @@ class Net_LDAP3 implements Serializable 'vlv' => null, ]; + public function __serialize() : array + { + return $this->config; + } + + public function __unserialize($data) + { + $this->config = $data; + } + protected $debug_level = false; protected $list_page = 1; protected $page_size = 10; -- GitLab