From e3f74f8e897ac6145ff5df015b921cccbd5bde4c Mon Sep 17 00:00:00 2001 From: Harrison Conlin <me@harrisony.com> Date: Tue, 24 Jun 2014 15:35:22 +1000 Subject: [PATCH] add objectguid as a binary attribute --- lib/SimpleSAML/Auth/LDAP.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/SimpleSAML/Auth/LDAP.php b/lib/SimpleSAML/Auth/LDAP.php index 59cbeb217..4984dfd48 100644 --- a/lib/SimpleSAML/Auth/LDAP.php +++ b/lib/SimpleSAML/Auth/LDAP.php @@ -373,7 +373,7 @@ class SimpleSAML_Auth_LDAP { // decide whether to base64 encode or not for ($k = 0; $k < $attribute['count']; $k++) { // base64 encode binary attributes - if (strtolower($name) === 'jpegphoto') { + if (strtolower($name) === 'jpegphoto' || strtolower($name) === 'objectguid') { $results[$i][$name][$k] = base64_encode($attribute[$k]); } } @@ -542,7 +542,7 @@ class SimpleSAML_Auth_LDAP { } // Base64 encode jpegPhoto. - if (strtolower($name) === 'jpegphoto') { + if (strtolower($name) === 'jpegphoto' || strtolower($name) === 'objectguid') { $values[] = base64_encode($value); } else $values[] = $value; -- GitLab