do not b64decode jpegPhoto
authormirabilos <m@mirbsd.org>
Sun, 29 Nov 2015 18:07:47 +0000 (18:07 +0000)
committermirabilos <m@mirbsd.org>
Sun, 29 Nov 2015 18:07:47 +0000 (18:07 +0000)
mksh/assoldap.ksh

index 8f85d46..6839457 100644 (file)
@@ -88,7 +88,8 @@ function asso_setldap {
                        rm -rf "$T"
                        return 255
                fi
-               [[ $x = *:: ]] && value=$(Lb64decode "$value")
+               [[ $x = *:: && $x != jpegPhoto:: ]] && \
+                   value=$(Lb64decode "$value")
                x=${x%%+(:)}
                if [[ -z $dn ]]; then
                        if [[ $x = dn ]]; then