Page 1 of 1

Unkown authentication error.

Posted: Wed Sep 26, 2018 10:54 am
by oliveradams
I have been having this problem since I started using this plugin. It has never actually worked correctly for me. I have emailed support multiple times with no replies to my last few emails. I was told something about the password not being stored correctly, Does anyone know what I can try next.

This is the output from the commands

cmd.exe!!! /c "C:\Python27\Python.exe -W ignore C:\Python27\check_esxi_hardware.py -v -H *.*.*.* -U root -P "-9999" -V hp"

20180926 12:43:58 Connection to https://*.*.*.*
20180926 12:43:58 Found pywbem version 0.10.0
20180926 12:43:58 Check classe OMC_SMASHFirmwareIdentity
20180926 12:44:02 Global exit set to UNKNOWN
UNKNOWN: Authentication Error

Whatever password I enter it uses 9999.

Re: Unkown authentication error.

Posted: Wed Sep 26, 2018 1:46 pm
by Cubert
What version of ESX plugin are you on?

The Current Version Is: 4.0.0.58

The issue was in the script where, the script engine has problems with raw SQL and saving variables so we get a SQL error code instead of your password value.

We changed the way we got that information in the latest build so you should have better results.

Make sure your script version number matches the latest build with the following info
Version 4.0.0.56
Date 3/09/2018

If you need the latest version goto our site and login and view your subscriptions. There you will find the link to the latest downoads.

Re: Unkown authentication error.

Posted: Wed Sep 26, 2018 2:13 pm
by oliveradams
Thanks for your reply. I am running .58 do I need to downgrade to .56 then?

Re: Unkown authentication error.

Posted: Wed Sep 26, 2018 5:54 pm
by Cubert
Is script version .56?

Re: Unkown authentication error.

Posted: Wed Sep 26, 2018 6:01 pm
by Cubert
If you open the ESX Health Monitor script under the script/maintenance folder

on line 56 should be execute powershell.

Code: Select all

[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String("@sqlPassword@"))
Just before this line, add a new line that does a script log message function.

Plase "This is the SQL password encoded[@sqlPassword@]" as the log line.

Let probe run and see what the output was from log line in the agent script logs.

If it looks like base64 then use an online base64 decoder to decode string. Or replace @sqlPassword@ in the powershell string and run that command in powershell to see the decoded version.

Does the decoded version come out as -9999 ? or is it a password ?

Re: Unkown authentication error.

Posted: Sun Sep 30, 2018 9:18 pm
by oliveradams
I just ran this and the decoded text was the correct password.

Re: Unkown authentication error.

Posted: Tue Oct 02, 2018 2:57 pm
by Cubert
Ok in the script if we edit it.

Line 61
Edit this line, change ESXPassword to DECRYPTPASSWORD and rerun scans. Do you get "-9999" now?

Before

Code: Select all

C:\Python27\Python.exe -W ignore C:\Python27\check_esxi_hardware.py -H @ESXHOSTIP@ -U @ESXUsername@ -P "@ESXPassword@" -V @ESXVender@
After

Code: Select all

C:\Python27\Python.exe -W ignore C:\Python27\check_esxi_hardware.py -H @ESXHOSTIP@ -U @ESXUsername@ -P "@DECRYPTPASSWORD@" -V @ESXVender@