evoila / collectsphere

Collectd Plugin for VMware vSphere
MIT License
55 stars 9 forks source link

Bug - If Username has a "\" Character Login Attempt Fails #26

Closed packtman closed 7 years ago

packtman commented 7 years ago

Hi,

I would like to thank you for the awesome tool to pull vSphere data.

Bug: If the username has

\

character in it, for example:

"cool\awesome".

The tool would just accept

"coolawesome"

and miss

\

character, thus resulting into failed attempts.

Adding another

\

solves the issue though. In our case cool\\awesome

would work instead of "cool\awesome".

Let me know if you need more information.

Thanks.

exbane commented 7 years ago

Try using "cool\awesome" Linux sees the \ as a termination On Mon, May 15, 2017 at 4:42 PM Dipen Shah notifications@github.com wrote:

Hi,

I would like to thank you for the awesome tool to pull vSphere data.

Bug: If the username has "" character in it, for example: "cool\awesome". The tool would just accept "coolawesome" and miss "" character, thus resulting into failed attempts.

Adding another "" solves the issue though. In our case "cool\awesome" would work instead of "cool\awesome".

Let me know if you need more information.

Thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/evoila/collectsphere/issues/26, or mute the thread https://github.com/notifications/unsubscribe-auth/AL3urdQryPI30zcTnPlCVtZlH3lSc7jAks5r6LiUgaJpZM4NbqnL .

dennis1987 commented 7 years ago

Hi there,

as a plugin of collectd, collectsphere uses the same syntax as collectd.conf. To use "\" in your configuration file, you have to escape the char like @exbane commented before. You can find more information in the man page of collectd or here

Best regards