48 Commits

Author SHA1 Message Date
Nick Daly
9b3543c764 Allow services to be both internal and external again.
Reverting part of 887518ce on Sunil's advice:

    An assumption made for the sake of simple API is that all
    externally available services are also available internally. They
    are not mutually exclusive.

    Your change will enable a service only if it is not externally
    available. For example, HTTPS is externally available. It will no
    longer be made internally available. Which is not right.

    We should either revert this line or introduce a way to mark all
    the services as internal as well and write code handle that
    properly.
2014-04-28 22:50:45 -05:00
Nick Daly
887518ce88 Be explicit about running commands as the superuser.
superuser=True is a surprising default.  Not happy-rainbow-surprising
but more dropping-a-large-rock-on-your-foot surprising.
2014-04-28 20:12:20 -05:00
Nick Daly
bf3286b736 Merge: Sunil's firewall branch (follow up commits). 2014-04-28 19:59:06 -05:00
Sunil Mohan Adapa
3ef1ed83ce Add support for zones in firewall service 2014-04-27 18:16:32 +05:30
Nick Daly
9350052e59 Merge: Sunil's firewall branch. 2014-04-23 19:26:57 -05:00
Nick Daly
3c2a5be9af Merge: Sunil's exec commits. 2014-04-23 19:21:52 -05:00
Sunil Mohan Adapa
32144e96ef Basic firewall sevice based on FirewallD
- Ports are allowed in default zone as soon as a service is enabled
- Ports are disabled when all services depending on the port are disabled
- Shows current enabled state of services and their each of thier ports
2014-04-18 12:53:27 +05:30
Sunil Mohan Adapa
c0ea7ee298 Dont use exec() in system/wan module
Also make the form submission actually work by adding hidden form
value and '/' at the end of form submission URL.
2014-04-05 15:38:19 +09:00
Sunil Mohan Adapa
afe345d01b Cleanup system configuration module
- Add license header
- Fix pylint, pep8 and pyflakes warnings and errors
- Fix incorrect use of gettext._()
- Don't store hostname and timezone in Plinth storage. Instead use
  values from probing the system
- Don't use exec()
- Other minor refactorings
2014-04-05 14:42:18 +09:00
James Valleroy
974a0146f2 When changing hostname, also update ejabberd and jwchat. 2014-03-26 18:50:55 -04:00
James Valleroy
67a5280073 Add license information and description for diagnostics module. 2014-03-24 20:46:51 -04:00
James Valleroy
c349d875a6 Add diagnostic test which runs the freedombox testsuite and displays its result. 2014-03-24 20:17:28 -04:00
James Valleroy
c9d58ee73d Combined module management actions into a single file, so it should be easier to add new optional modules. 2014-01-31 21:44:32 -05:00
James Valleroy
411785eb3f Make module manager work for any available modules. 2014-01-31 19:48:40 -05:00
James Valleroy
7c6f1e72fa simple form for enabling/disabling owncloud module 2014-01-27 22:42:06 -05:00
Nick Daly
0ec794aaa7 Merge pull request #56 from jvalleroy/remove_old_user_db
Remove old user stuff
2013-11-24 20:43:35 -08:00
Nick Daly
6567dc1758 Renamed privilegedactions to actions. 2013-11-24 18:29:27 -06:00
James Valleroy
2eb4f8bf1a Fix add/edit links in users module. 2013-11-20 21:37:03 -05:00
Nick Daly
22cce897bc Made security.mdwn a little more explicit wrt bcrypt. 2013-11-12 21:13:02 -06:00
James Valleroy
25974bad85 Modify firstboot and user_add forms to use add_user function. 2013-11-11 07:34:27 -06:00
James Valleroy
c4b2fb1a60 Use bcrypt to hash passwords for new users in firstboot and user_add forms. Removed references to md5 hashing which was already non-functional. 2013-11-11 07:31:53 -06:00
Nick Daly
95fbf9527f Merge pull request #50 from jvalleroy/fix-redirects
Fix redirects
2013-11-10 19:34:34 -08:00
Nick Daly
13d8514634 Merge pull request #49 from jvalleroy/fix-hostname-change
Fix parameter for hostname-change
2013-11-10 13:12:46 -08:00
James Valleroy
7536b7387b Remove references to deleted md5.js file. 2013-11-02 17:34:17 +00:00
James Valleroy
60ea9f43cd Prepend server_dir to form actions that use absolute paths. 2013-11-02 11:40:18 +00:00
James Valleroy
a5adb1c292 Convert unicode (but otherwise valid) hostname to ASCII. Pass hostname option to hostname-change as a string rather than a list. 2013-11-02 02:20:02 +00:00
Nick Daly
3a30660c25 Revert 4d529b75857597dedd181045ba1bf97b99c66b3e.
Turns out, that was a terrible idea.

Putting privilegedactions in actions/ meant that we tried to interpret
it during startup (along with other similarly silly bugs).  The
fastest way to fix this issue is to merely revert it.
2013-10-30 21:45:43 -05:00
Nick Daly
0296a1a99c Removed unused import. 2013-10-27 17:47:18 -05:00
Nick Daly
9e276c3ffb Undo this change, bad idea.
English letters do not always sort as expected in non-en locales.
2013-10-27 17:41:19 -05:00
Nick Daly
5e9f221ef5 Simplified hostname name matching test.
The first character must be a letter, and [A-z] is easier to manage
than 52 individual letters.
2013-10-27 10:49:53 -05:00
Nick Daly
4d529b7585 Moved privilegedactions to the actions directory. 2013-10-27 10:26:06 -05:00
Petter Reinholdtsen
444365ec78 Rewrite plinth to use sudo and action scripts instead of exmachina for privileged accesss. 2013-09-23 09:37:24 +02:00
Nick Daly
32a86a54b5 Merge pull request #19 from petterreinholdtsen/first-boot-set-hostname
Change first_boot module to show and update current hostname,
2013-09-15 17:43:31 -07:00
Nick Daly
702bc2292b Merge pull request #21 from petterreinholdtsen/nonexpert-config-feedback
Give sensible feedback for non-expert users visiting system/configure.
2013-09-15 16:10:27 -07:00
Petter Reinholdtsen
1615b7818b Give sensible feedback for non-expert users visiting system/configure.
Explain that only expert users get access, instead of only showing
an title.
2013-09-11 20:13:46 +02:00
Petter Reinholdtsen
71873b6702 Change first_boot module to show and update current hostname,
instead of showing the box_name value and failing to set anything
when the user specify a host name value.
2013-09-11 14:04:34 +02:00
Piotr Ożarowski
20d4f961b6 use stdlib's json module if simplejson is missing
json is available in Python >= 2.6
2013-09-10 23:12:46 +02:00
Tom Galloway
76d67d67f1 Add User & Delete User now works correctly. 2013-01-22 20:22:19 +00:00
Tom Galloway
c4cddbfc0e Changes to get user management screens started. Updated UserStore to add all expected functions. Added tests for these functions. 2013-01-21 10:30:52 +00:00
Tom Galloway
646b5518bb withsqlite is now retrieved from github. Manage User & Groups pages now display correctly but don't do anything yet. 2013-01-16 13:08:48 +00:00
Tom Galloway
b54a4906e6 Fix to allow hostname to be updated on Ubuntu. This needed a change to exmachina which I've created a pull request for. I've updated Make to point to my fork of exmachina until this has been merged, when it can be reverted. 2013-01-10 09:15:31 +00:00
bnewbold
09fbb23e90 use exmachina to configure timezone 2012-07-26 12:41:26 -07:00
bnewbold
f1e764f2e5 integrate exmachina configuration management layer
- add exmachina code and test code
- modify plinth.py to listen for shared secret on stdin at start
  (if appropriate flag is set) and try to connect to exmachina daemon
- use exmachina to read and set /etc/hostname as a demo
- update plinth init.d script to start exmachina and share keys
- update docs with new deps and run instructions
2012-07-12 22:25:50 -04:00
Sean O'Brien
5685d3f387 fixes to boostrap, new icons, mobile view works 2012-03-12 14:39:32 -04:00
Sean O'Brien
638b287d1b new template based upon bootstrap 2012-03-12 14:39:31 -04:00
James Vasile
79de884549 complete the transition to sqlite 2012-02-19 15:07:14 -05:00
James Vasile
18b9df74f9 Makefile generates cherrpy.config 2011-03-09 13:41:29 -05:00
James Vasile
35071d7212 ... 2011-02-22 13:32:45 -05:00