Skip to content
Snippets Groups Projects
Commit 8cbd06a7 authored by Jaime Perez's avatar Jaime Perez
Browse files

Merge branch 'newington-fix-object-guid-attribute'

parents ff177456 877e0b2e
No related branches found
No related tags found
No related merge requests found
......@@ -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]);
}
}
......@@ -541,8 +541,8 @@ class SimpleSAML_Auth_LDAP {
continue;
}
// Base64 encode jpegPhoto.
if (strtolower($name) === 'jpegphoto') {
// Base64 encode binary attributes.
if (strtolower($name) === 'jpegphoto' || strtolower($name) === 'objectguid') {
$values[] = base64_encode($value);
} else
$values[] = $value;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment