systemscope icon indicating copy to clipboard operation
systemscope copied to clipboard

Unable to login with special characters in password

Open Throdne opened this issue 6 years ago • 3 comments

I believe that if an iDRAC password contains a "#" it drops everything after the # in the password and fails to login.

E.G. Password: SecretPassword#123! When the password is submitted to the iDRAC it only submits "SecretPassword" and drops the "#123!".

Throdne avatar Apr 02 '19 23:04 Throdne

what version of drac are you on? the authentication is handled slightly different across the different versions.

scottjg avatar Apr 02 '19 23:04 scottjg

iDRAC 6 (Dell R610 and R510) I ended up changing my passwords to not include the # and it worked afterwards. I know the password with the # worked because I was able to log into iDRAC's webUI with it.

Throdne avatar Apr 02 '19 23:04 Throdne

looking at the code, there was some special case handling for special characters: https://github.com/scottjg/systemscope/blob/master/RemoteConsoleClient/WebLoginController.m#L100-L114

the transformations were copied from the drac javascript, but it's possible they are incorrect or not needed. i am not actively working on this project, and don't have DRACs to test against, but if anyone wants to step in and look at this, i would try two things

  1. try to uri encode the password before putting it in the query string.
  2. if the password is uri encoded, does removing the special case transformations help?

scottjg avatar Apr 02 '19 23:04 scottjg