edoput / netjsonconfig

Network configuration management library based on NetJSON DeviceConfiguration
http://netjsonconfig.openwisp.org/
Other
1 stars 0 forks source link

Users section #20

Closed edoput closed 7 years ago

edoput commented 7 years ago

Default keys

users.status=disabled
users.1.name=root
users.1.password=changeme
users.1.status=disabled

As the first evaluation is approaching this is frozen with defaults

edoput commented 7 years ago

remove password ffield rom defaults as it is the hash not the password

edoput commented 7 years ago

the user.n.password field is the hash of the password but it is also salted so I can't configure it

edoput commented 7 years ago

The password is hashed and salted. I've added to the docs what does it mean and how it's done but for clarity I'll add this here too.

The format is

users.1.password=$algorithm_id$salt$hash

The algorithm id is 1, I couldn't figure out what is the algorithm and how may rounds of hashing are required so we have included them as binary blobs