No way to verify local status page password is enabled?

Mloraditch
Head in the Cloud

No way to verify local status page password is enabled?

The update version of the networksettings endpoints lets you set the setting, but the get doesn't indicate whether a password is set (or what it is).  Am I missing anything anywhere else? I haven't been able to find anything.

If you found this post helpful, please give it Kudos. If my answer solves your problem please click Accept as Solution so others can benefit from it.
3 Replies 3
sungod
Kind of a big deal

 

I suspect the API intentionally does not return plaintext passwords.

 

For the get call, isn't 'enabled' true if a password has been set, otherwise false?

 

    "localStatusPage": {
        "authentication": {
            "enabled": false,     <<<<<< this one
            "username": "admin"
        }

 

Mloraditch
Head in the Cloud

No I did test the enabled and it doesn't change if the password is blanked.


It's interesting, because you can retrieve things like the 3rd Party VPN Passwords. That's saved my butt several times when having to migrate things we didn't originally setup.

If you found this post helpful, please give it Kudos. If my answer solves your problem please click Accept as Solution so others can benefit from it.
double_virgule
Getting noticed

It looks like it only cares if you enabled it, but if you blank out the password, it will drop the username.

 

With password set:

{'localStatusPageEnabled': True, 'remoteStatusPageEnabled': False, 'securePort': {'enabled': False}, 'localStatusPage': {'authentication': {'enabled': True, 'username': 'admin'}}, 'namedVlans': {'enabled': False}, 'fips': {'enabled': False}}

 

Password blanked out:

{'localStatusPageEnabled': True, 'remoteStatusPageEnabled': False, 'securePort': {'enabled': False}, 'localStatusPage': {'authentication': {'enabled': True}}, 'namedVlans': {'enabled': False}, 'fips': {'enabled': False}}

 

Password set again:

{'localStatusPageEnabled': True, 'remoteStatusPageEnabled': False, 'securePort': {'enabled': False}, 'localStatusPage': {'authentication': {'enabled': True, 'username': 'admin'}}, 'namedVlans': {'enabled': False}, 'fips': {'enabled': False}}

Get notified when there are additional replies to this discussion.