Configuration Password Not Set

944 views
Skip to first unread message

aeoni...@gmail.com

unread,
Sep 8, 2014, 11:31:47 AM9/8/14
to pwm-g...@googlegroups.com
Hi folks,

I recently updated from an earlier version (1.6.x) to 1.7.1 and was hoping that I'd be able to simply drop my old configuration file in place and that'd be job done... however I wanted to change a setting so I clicked on "Edit Configuration" and I get the below:

Configuration format error: config file does not have a configuration password { 5203 CONFIG_FORMAT_ERROR (config file does not have a configuration password) fields: [config file does not have a configuration password] }


From what I can guess I must need to set a new property in the config file or the likes... could someone let me know what I need to do to be able to edit my configuration through the site?

Thanks,

Peter

Menno Pieters

unread,
Sep 8, 2014, 3:32:21 PM9/8/14
to pwm-g...@googlegroups.com
In the configuration menu, you can set a password for the configuration. After that, you can save the configuration.

- Menno


--
You received this message because you are subscribed to the Google Groups "pwm-general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pwm-general...@googlegroups.com.
To post to this group, send email to pwm-g...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pwm-general/e2fe3c69-7fb8-4bf8-9d9f-41fd5d3464b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

aeoni...@gmail.com

unread,
Sep 8, 2014, 3:37:02 PM9/8/14
to pwm-g...@googlegroups.com

This is my problem, I cannot access the configuration menu because it says the configuration file does not contain a password, what it seems I need is the right syntax and such for adding it directly to the PWM configuration file.

Menno Pieters

unread,
Sep 9, 2014, 3:38:12 AM9/9/14
to pwm-g...@googlegroups.com
Please try adding this, near the bottom of the XML (just above </PwmConfiguration>):

  <properties type="config" modifyTime="2014-09-08T19:46:31Z">
    <property key="configPasswordHash" modifyTime="2014-02-10T09:12:29Z"></property>
    <property key="configIsEditable" modifyTime="2014-02-12T12:44:28Z">true</property>
    <property key="configEpoch" modifyTime="2014-09-08T19:46:31Z">1</property>
  </properties>

- Menno

aeoni...@gmail.com

unread,
Sep 9, 2014, 5:14:50 AM9/9/14
to pwm-g...@googlegroups.com
I still get the same error message as posted in my original reply... What sort of password hash is it after? Could I just generate one and paste it in to the configPasswordHash field?

It seems it isn't happy with the password field being blank...

Menno Pieters

unread,
Sep 9, 2014, 5:40:15 AM9/9/14
to pwm-g...@googlegroups.com
Try this:

    <property key="configPasswordHash" modifyTime="2014-09-09T09:37:53Z">$2a$10$AjxdO5TY95CtcxjU8Y832e1mV8wBqtltKTnOjWw9jIzoxceXIPmby</property>

Password is "test" (without quotes).

- Menno

P.S. It may be encrypted using the internal encryption key, so not guaranteed to work either...

aeoni...@gmail.com

unread,
Sep 9, 2014, 5:54:27 AM9/9/14
to pwm-g...@googlegroups.com
Works like a charm, I can now access the configuration page... and subsequently changed that password and all works happily now.

Thankyou.
Reply all
Reply to author
Forward
0 new messages