pwm 2.0.6 config password reset

231 views
Skip to first unread message

Christopher Chan

unread,
Jun 16, 2023, 9:01:32 AM6/16/23
to pwm-general
Dear all,

How to reset the configuration password? I've tried changing the configIsEditable to true but it either gives me an error if the config password property isn't present, or it will complain about the password if wrong and if submitting blank password, it just loads a blank page.

kind regards,

Christopher

Arun Ghanta

unread,
Sep 28, 2023, 10:09:51 PM9/28/23
to pwm-general
Take a new password and encrypt using BCrypt hash algorithm. There are many ways you can do. There are sites that can help you do it too.
Ex:
Bcrypt-Generator.com - Generate, Check, Hash, Decode Bcrypt Strings

Go to the PwmConfiguration.xml file and find the below line:
<property key="configPasswordHash" modifyTime="2019-12-11T18:53:29Z">$2y$10$xxxwuvyrq__SOME_OLD_PASS_HASH_msMRwmrwkwjEYZ990u47IZYkpjZK</property>
Replace the old hash with the one you generated with new password so:
<property key="configPasswordHash" modifyTime="2019-12-11T18:53:29Z">$xxxxxxxxxxxxxxxx__NEW_PASS_HASH_HERE_sknsanlascknnsasncnaclanclascklcll</property>

Restart your pwm service and you should be able to get in with your new password.

It worked for me.

Cheers,
Arun

Reply all
Reply to author
Forward
0 new messages