Skip to content

Commit 6945bfd

Browse files
committed
Treat objectSid as binary attribute
1 parent 953b82c commit 6945bfd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Auth/Ldap.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,7 @@ public function searchformultiple(
479479
// base64 encode binary attributes
480480
if (strtolower($name) === 'jpegphoto'
481481
|| strtolower($name) === 'objectguid'
482+
|| strtolower($name) === 'objectsid'
482483
|| strtolower($name) === 'ms-ds-consistencyguid'
483484
) {
484485
$results[$i][$name][$k] = base64_encode($attribute[$k]);
@@ -664,6 +665,7 @@ public function getAttributes($dn, $attributes = null, $maxsize = null)
664665
// Base64 encode binary attributes
665666
if (strtolower($name) === 'jpegphoto'
666667
|| strtolower($name) === 'objectguid'
668+
|| strtolower($name) === 'objectsid'
667669
|| strtolower($name) === 'ms-ds-consistencyguid'
668670
) {
669671
$values[] = base64_encode($value);

0 commit comments

Comments
 (0)