[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 <jsuchome@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- 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#c2 --- Comment #2 from Jiří Suchomel <jsuchome@novell.com> 2009-09-08 05:31:24 MDT --- Admin password module proposal (fate #307141) --------------------------------------------- Tasks: - change administrator (root's) password - configure notification e-mail addresses (mail aliases for root) Model singleton class Administrator attributes string password list aliases methods (access the system, probably using YaPI::USERS) set_password set_aliases get_aliases 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 User kkaempf@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=537200#c3 --- Comment #3 from Klaus Kämpf <kkaempf@novell.com> 2009-09-08 05:44:01 MDT --- (In reply to comment #2) Lets discuss such things on yast-devel ! Move the final documentation into git, link it from the wiki, and put the wiki url here.
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 <kkaempf@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Severity|Normal |Enhancement -- 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#c4 --- Comment #4 from Jiří Suchomel <jsuchome@novell.com> 2009-10-02 03:52:59 MDT ---
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 <jsuchome@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #5 from Jiří Suchomel <jsuchome@novell.com> 2009-10-05 06:49:17 MDT --- Generated documentation: http://git.opensuse.org/?p=projects/yast/rest-service.git;a=commit;h=0eb0cc2... accesible with http://localhost:8080/administrator/restdoc/index.html -- 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.
participants (1)
-
bugzilla_noreply@novell.com