From 66f95e6503780505a200641fb26b7009e448902d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jean-Fran=C3=A7ois=20B?= <changi67@gmail.com>
Date: Thu, 29 Mar 2018 10:01:44 +0200
Subject: [PATCH] [FIX] ms-ds-consistencyguid need also to be Base64 encode

---
 lib/SimpleSAML/Auth/LDAP.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/SimpleSAML/Auth/LDAP.php b/lib/SimpleSAML/Auth/LDAP.php
index cc7cf38bc..2fb262f3b 100644
--- a/lib/SimpleSAML/Auth/LDAP.php
+++ b/lib/SimpleSAML/Auth/LDAP.php
@@ -569,7 +569,7 @@ class SimpleSAML_Auth_LDAP
                 }
 
                 // Base64 encode binary attributes
-                if (strtolower($name) === 'jpegphoto' || strtolower($name) === 'objectguid') {
+                if (strtolower($name) === 'jpegphoto' || strtolower($name) === 'objectguid' || strtolower($name) === 'ms-ds-consistencyguid') {
                     $values[] = base64_encode($value);
                 } else {
                     $values[] = $value;
-- 
GitLab