Skip to content

Commit 953b82c

Browse files
committed
Treat ms-ds-consistencyguid as binary attribute
Like we also do in getAttributes()
1 parent bd6b59f commit 953b82c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/Auth/Ldap.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,10 @@ public function searchformultiple(
477477
// decide whether to base64 encode or not
478478
for ($k = 0; $k < $attribute['count']; $k++) {
479479
// base64 encode binary attributes
480-
if (strtolower($name) === 'jpegphoto' || strtolower($name) === 'objectguid') {
480+
if (strtolower($name) === 'jpegphoto'
481+
|| strtolower($name) === 'objectguid'
482+
|| strtolower($name) === 'ms-ds-consistencyguid'
483+
) {
481484
$results[$i][$name][$k] = base64_encode($attribute[$k]);
482485
}
483486
}

0 commit comments

Comments
 (0)