Skip to content
Snippets Groups Projects
Commit e3f74f8e authored by Harrison Conlin's avatar Harrison Conlin
Browse files

add objectguid as a binary attribute

parent cb318176
No related branches found
No related tags found
No related merge requests found
...@@ -373,7 +373,7 @@ class SimpleSAML_Auth_LDAP { ...@@ -373,7 +373,7 @@ class SimpleSAML_Auth_LDAP {
// decide whether to base64 encode or not // decide whether to base64 encode or not
for ($k = 0; $k < $attribute['count']; $k++) { for ($k = 0; $k < $attribute['count']; $k++) {
// base64 encode binary attributes // base64 encode binary attributes
if (strtolower($name) === 'jpegphoto') { if (strtolower($name) === 'jpegphoto' || strtolower($name) === 'objectguid') {
$results[$i][$name][$k] = base64_encode($attribute[$k]); $results[$i][$name][$k] = base64_encode($attribute[$k]);
} }
} }
...@@ -542,7 +542,7 @@ class SimpleSAML_Auth_LDAP { ...@@ -542,7 +542,7 @@ class SimpleSAML_Auth_LDAP {
} }
// Base64 encode jpegPhoto. // Base64 encode jpegPhoto.
if (strtolower($name) === 'jpegphoto') { if (strtolower($name) === 'jpegphoto' || strtolower($name) === 'objectguid') {
$values[] = base64_encode($value); $values[] = base64_encode($value);
} else } else
$values[] = $value; $values[] = $value;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment