http://bugzilla.novell.com/show_bug.cgi?id=537200
User kkaempf@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=537200#c3
--- Comment #3 from Klaus Kämpf
Admin password module proposal (fate #307141) ---------------------------------------------
Tasks: - change administrator (root's) password - configure notification e-mail addresses (mail aliases for root)
- possibly more in the future
Model
singleton class Administrator
attributes string password list aliases
Why would aliases be a list ? I understand the request as "single email address" to send mails to. And, is 'alias' the right name for this ?
methods (access the system, probably using YaPI::USERS)
set_password set_aliases get_aliases
You don't need set/get prefixes in Ruby.
Policies
org.opensuse.yast.modules.yapi.users.administrator.read org.opensuse.yast.modules.yapi.users.administrator.write
API
URL: /administrator
REST service pseudo-code:
# GET method def show
read and return current mail aliases
# PUT method def update (params)
if password changed
save the new password
if aliases changed
save new list of aliases
-- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.