[Bug 537200] New: [task] [fate 307141] Admin password and e-mail rest service
http://bugzilla.novell.com/show_bug.cgi?id=537200 Summary: [task] [fate 307141] Admin password and e-mail rest service Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: WebYaST AssignedTo: kkaempf@novell.com ReportedBy: kkaempf@novell.com QAContact: qa@suse.de Found By: Development Provide a webyast rest service module to configure admin characteristics These are typically - root password - email for notifications Make is extensible, as there might be more attributes in the future. E.g. name of admin ('root' is the login, name is defining responsibility) - describe the rest api - make documentation reachable via wiki - provide example code Exit criteria - documentation exists - test cases exist and pass - code merged to git master - package exists in obs -- 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.
http://bugzilla.novell.com/show_bug.cgi?id=537200
Jiří Suchomel
http://bugzilla.novell.com/show_bug.cgi?id=537200
User jsuchome@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=537200#c2
--- Comment #2 from Jiří Suchomel
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.
http://bugzilla.novell.com/show_bug.cgi?id=537200
Klaus Kämpf
http://bugzilla.novell.com/show_bug.cgi?id=537200
User jsuchome@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=537200#c4
--- Comment #4 from Jiří Suchomel
Exit criteria - documentation exists
This is still missing
- test cases exist and pass - code merged to git master - package exists in obs
These are done: packages are yast2-webservice-administrator and yast2-webclient-administrator, tests pass, code in master. -- 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.
http://bugzilla.novell.com/show_bug.cgi?id=537200
User jsuchome@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=537200#c5
Jiří Suchomel
participants (1)
-
bugzilla_noreply@novell.com