All of lore.kernel.org
 help / color / mirror / Atom feed
* Design proposal to Non-Interactive password update for REST client
@ 2017-08-11 16:18 vishwa
  2017-08-11 16:50 ` Kenneth Wilke
  2017-08-14 16:35 ` Patrick Williams
  0 siblings, 2 replies; 9+ messages in thread
From: vishwa @ 2017-08-11 16:18 UTC (permalink / raw)
  To: OpenBMC Maillist

This email is about openbmc/openbmc#1714 ( REST API to update root 
password )

Goal is to do Non-interactive password updates to enable a REST client 
to update the root password.

My proposal is to use `getspent(3)` and `putspent(3)` and here is the flow.

REST client will provide a method that takes std::string as parameter.

The Provider at the BMC will receive the password and does these:

  - Executes `getspent(3)` for "root" and gets the entries.
  - Parses the `sp_pwdp` and extracts `encryption method` , `salt`.
  - Makes a call to `crypt(3)` with the extracted `salt` and `user 
input` and generates encrypted pass-code
  - Populates the structure and calls `putspent(3)` to update the password

Please let me know your opinion on this.

Thank you,

!! Vishwa !!

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-08-31  6:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-11 16:18 Design proposal to Non-Interactive password update for REST client vishwa
2017-08-11 16:50 ` Kenneth Wilke
2017-08-11 17:11   ` vishwa
2017-08-11 18:10     ` Kenneth Wilke
2017-08-14 16:35 ` Patrick Williams
2017-08-28 11:34   ` vishwa
2017-08-30  6:47     ` vishwa
2017-08-31  5:08       ` tomjose
2017-08-31  6:18         ` vishwa

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.