do not b64decode jpegPhoto
[shellsnippets/shellsnippets.git] / 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