Closed dbongert closed 2 years ago
Swapping use Digest::MD5 qw(md5_hex) to use Digest::SHA qw(sha256_hex), and the md5_hex to sha256_hex fixes the issue.
However, IIRC the old firmware doesn't support SHA256, and the new firmware doesn't support MD5, so I'm not sure how to make that distinction.
It's a problem if old firmware doesn't support sha256. What error do you have if you use md5 ?
We get
UNKNOWN: Login endpoint returns an error: 'Authentication Unsuccessful'
I can add the option: --digest-sha256
(otherwise it will break for all format). Seems ok for you ?
Option --digest-sha256
is added in last git version
Recently we updated our Powervault to firmware version GT280R011-01 and have the same issue. I added the option --digest-sha256 to the command, but this is not solving the problem. Is there a way to debug this further to see what the issue is this time?
We upgraded the firmware on our Dell ME4084 to version GT280R010-01 and Centreon is having issues logging in via the REST API.
From https://www.dell.com/support/home/en-us/drivers/driversdetails?driverid=97g7r&oscode=wst14&productcode=powervault-me4084
FMW-50101 MC Disabled the MD5 feature
I used this Python script from the initial Dell ME feature request: https://github.com/centreon/centreon-plugins/issues/1429#issuecomment-475189475
and changing
authstring = hashlib.md5("{}{}".format(args.username, args.password).encode("utf-8")).hexdigest()
to
authstring = hashlib.sha256("{}{}".format(args.username, args.password).encode("utf-8")).hexdigest()
Makes it work.