From 240db9f933ed8bcfcbc383ca75939782c7518356 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come.chilliet@fusiondirectory.org>
Date: Thu, 1 Jul 2021 10:34:39 +0200
Subject: [PATCH] :ambulance: fix(ldap) Fix LDAP cid handling

Fixes login

issue #6175
---
 include/class_ldap.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/class_ldap.inc b/include/class_ldap.inc
index 6b185290c..152589684 100644
--- a/include/class_ldap.inc
+++ b/include/class_ldap.inc
@@ -310,6 +310,7 @@ class LDAP
     if ($this->hascon) {
       @ldap_close($this->cid);
       $this->hascon = FALSE;
+      $this->cid    = FALSE;
     }
     logging::debug(DEBUG_LDAP, __LINE__, __FUNCTION__, __FILE__, '', 'disconnect');
   }
-- 
GitLab