Running vastool attrs for some attributes with string values produces gibberish
说明
There is an issue with the output of the "vastool attrs" command which affects attributes with string values such as the "info", "description", and "gecos" fields. Instead of seeing the expected string, the result returned is incomprehensible text.
原因
This issue is caused by having a trailing space character (" ") at the end of string values.
For example, if I set the info attribute of a group to "test " I get this result:
# vastool -u host/ attrs -g unix info
info:: dGVzdCA=
解决办法
WORKAROUND:
Removing the trailing space character so that the attribute has no trailing space character, such as "test", results in the correct output:
# vastool -u host/ attrs -g unix info
info: test
STATUS
Waiting for fix in a future release of Authentication Services