Answer the question
In order to leave comments, you need to log in
print a[2]}' | base64 -d` ifa" /> `
How to decode ldapserash results?
I use the kiby75
script
to synchronize AD with Zimbra
There are such lines
displayName=`grep "displayName:" $userfil/$1.ad | awk '{split($0, a, ": "); print a[2]}' | base64 -d`
ifattr "displayName" "$displayName"
base64: invalid input
0JHQsNC70LHQsNGI0L7Qsg==
Answer the question
In order to leave comments, you need to log in
there, the problem seems to arise due to a line break at the end of the data that comes in base64, try replacing
awk print with printf :
... | awk '{split ($0, a, ": "); printf a[2]}' | base64 -d`
As I understand it, this recoding is because when you call it without base64, the data comes out in the form ..
$ echo "0JHQsNC70LHQsNGI0L7Qsg==" | base64 -d
Балбашов
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question