Commit Graph
114 Commits
Author SHA1 Message Date
Sunil Mohan Adapa e719966c4b users: Refactor valid user name checking for reuse
- Supress output from getent

- More accurate message
2016-08-12 19:32:19 +05:30
James Valleroy c8c6bc377b users: Add list of restricted usernammes
List is derived from optional services installed.
2016-08-12 18:48:16 +05:30
James Valleroy 3a69958165 users: Avoid username conflicts with system users
When creating or renaming a user, check if the new username is in use by
any system user.
2016-08-12 18:47:52 +05:30
Sunil Mohan Adapa 18996b5c56 Import urlresolvers from django.urls
In Django 1.10, django.core.urlresolvers is available from
django.urls. Use it.
2016-08-11 18:03:00 -04:00
Sunil Mohan Adapa 09ba42aa7c Replace render_to_response() with render()
In Django 1.10, render_to_response no longer has context_instance
argument.  It's use is not recommended anyway.  Replace it with render()
method.
2016-08-11 18:02:52 -04:00
Sunil Mohan Adapa 2afae80dd8 security: Recommend/notify about restricted logins
- Do stricter matches when editing configuration file.  Earlier
  mechanism would match comments etc.

- Move action methods to module core from views.

- During first boot, notify users that console login is restricted and
  that they can changed that from security settings.

- Recommend enabling conosle login restrictions.  Add message about why
  console restrictions are important.

- Show title in security module.
2016-07-09 22:42:20 +05:30
James Valleroy 82c27aabf3 first_boot: Enable restricted console logins 2016-07-09 22:41:53 +05:30
Sunil Mohan Adapa c3c44ab379 firstboot: Minor Danube PageKite fixes
- Fix message internationalization with formatting and laziness.

- Styling fixes.

- Simplify Subdomain widget.

- Update messages for grammer and consistency.
2016-03-13 23:32:26 +05:30
fonfon 435f980c6f firstboot: freedombox.me pagekite vouchers
- Show PageKite voucher only if cfg.danube_edition is enabled
2016-03-13 23:32:20 +05:30
Sunil Mohan Adapa 60c4c17f94 firstboot: Use new setup mechanism 2016-02-13 13:52:29 +05:30
Caly 15312fe595 Update messages for simplicity/consistency/grammer
- Closes #375 and #380.

- More use of configurable brand name.
2016-01-24 12:14:25 +05:30
Sunil Mohan Adapa 4602c5bfce Use translated brand name in templates
Using brand name directly from configuration means that it can't be
easily translated.  Instead use the translated brand name sent in my the
context processor.
2016-01-24 00:37:01 +05:30
Sunil Mohan Adapa 96f9fee96b firstboot: Fix double nested navbar 2015-12-30 01:10:45 +05:30
Sunil Mohan Adapa 0464ac83d8 firstboot: Add doc strings for custom tags 2015-12-30 01:10:09 +05:30
fonfon 56e1b4ae57 firstboot: removed link to 'Applications'
minor bugfix - the icon wasn't displayed but the link and hover effect
were still there.
2015-12-30 01:09:13 +05:30
fonfon 0f742d704b firstboot: Dont show normal mainmenu in help pages
- plus some minor adaptions like titles and using cfg.box_name
2015-12-30 01:08:43 +05:30
fonfon 74f64123b3 first-boot: state10: change text and layout
Instead of the buttons there is now only one link in the text for the
network setup.
2015-12-22 10:46:56 +05:30
fonfon 77e74746f0 first-boot: state1: fix focusing on form element 2015-12-22 10:38:30 +05:30
fonfon 23aee97ea9 first-boot: state0: update text and button 2015-12-22 10:38:26 +05:30
fonfon 6ee545023d first-boot: use a common navbar
- Also hide the applications icon in the second step while keeping the
  logo.
2015-12-22 10:05:37 +05:30
Philippe Baret 2037a273b3 Edited string
LDAP mention to delete (https://github.com/freedombox/Plinth/issues/347)
2015-12-19 13:36:47 -05:00
Sunil Mohan Adapa a69f419c3c Make Django urlpatterns list of url()s
- Support for legacy pattern() mechanism will be removed in Django
  1.10.  Currently we see a warning for each Plinth module.
2015-12-05 09:33:23 -05:00
Sunil Mohan Adapa 3df1a88824 Switch to Django i18n for code strings
Django i18n layer is on top of gettext and provide may crucial features
such as per-request locales, lazy translations etc.
2015-11-13 22:08:43 +05:30
Sunil Mohan Adapa 02cd89b60d Internationalize strings in template files 2015-11-13 22:02:17 +05:30
Sunil Mohan Adapa 20d4d32153 firstboot: Show network diagram at the end
- Fix an issue with not showing message in state 1 (no messages to show
  as of now).

- Provide options to go to Applications or Network configuration page as
  discussed in first boot redesign.
2015-10-28 20:02:56 -04:00
Sunil Mohan Adapa 11bf585025 networks: Show network diagram
- As discussed in the first boot redesign proposal.

- Images are taken from Tango icon set, GNOME icons or created.

- Responsive, works for very small widths also.

- First cut, special cases of network connectivity are not handled.
2015-10-28 20:02:56 -04:00
Sunil Mohan Adapa 8228440319 first_boot: Allow accessing help during first boot 2015-10-28 20:02:56 -04:00
Sunil Mohan Adapa 8fb6e31e9a first_boot: Remove login from account creation 2015-10-28 20:02:56 -04:00
Sunil Mohan Adapa 26737293e4 first_boot: Reduce the width of administrator form 2015-10-28 20:02:56 -04:00
Sunil Mohan Adapa 5cd1b7e4b3 first_boot: Remove sidebar in favor of help icon 2015-10-28 20:02:56 -04:00
Sunil Mohan Adapa f3a0c70d23 first_boot: Add separate greeting page 2015-10-28 20:02:56 -04:00
Sunil Mohan Adapa 23eb40fce8 first_boot: Require password confirmation
- Use existing UserCreationForm from auth module.

- Use cleaned data for login.
2015-10-28 20:02:56 -04:00
Sunil Mohan Adapa 62185a5960 first_boot: Don't ask for a new hostname
- Setting a new hostname is not one of the most buring issues to be take
  care of during the setup process.

- Also, most likely the user will access the FreedomBox machine using
  mDNS hostname such as freedombox.local.  Changing the hostname mid
  setup might have consequences that need to thought about properly.
2015-10-28 20:02:56 -04:00
fonfon a94dc0f57d firstboot: remove deprecated CSS 2015-09-29 09:15:37 +05:30
James Valleroy 7a464d6f5f first_boot: Switch to new ldap action. 2015-07-26 16:34:29 -04:00
James Valleroy d144f6634a Bug fixes:
Check if ejabberd is installed when running actions triggered by signals.
Encode LDAP passwords as bytes.
2015-07-23 22:30:50 +05:30
James Valleroy cb7c9c26f7 Send LDAP user passwords to actions through stdin, not as arguments. 2015-07-23 22:30:50 +05:30
James Valleroy 86580c9121 Revert "Don't print LDAP user passwords in log."
This reverts commit b1c9c81d58.

Conflicts:
	plinth/modules/first_boot/forms.py
2015-07-23 22:30:50 +05:30
Sunil Mohan Adapa f35d4257c2 users: Improve Django group handling with LDAP
- Create groups on first boot a bit more safely

- Use get_or_create instead of get() and create()

- Fix issue with not showing a full list of groups in user modify page
  when there is are no users for that group.
2015-07-18 17:17:07 +05:30
James Valleroy fcc37a8e28 Create initial django groups during first_boot. 2015-07-13 19:50:59 +05:30
James Valleroy b1c9c81d58 Don't print LDAP user passwords in log. 2015-07-13 19:50:58 +05:30
James Valleroy 0eb3d35b5b Add group management to user editing form. 2015-07-13 19:50:58 +05:30
James Valleroy 197c95a7bf Add actions for LDAP group management. 2015-07-13 19:50:58 +05:30
James Valleroy 2adf14b8b7 Remove POSIX users. 2015-07-13 19:50:58 +05:30
Sunil Mohan Adapa 6fd04808d5 Don't require login for logout page & minor fixes 2015-07-01 07:57:21 +05:30
fonfon 9321aa4952 made first_boot state0 public 2015-07-01 00:01:02 +05:30
Bob Girard d64ce6cc01 Bundle tests with applications
- For each application, add ./tests directory and __init__.py file
  within it.

- Modify test controllers (coverage.py, runtests.py) to find the new
  test directories for testing and coverage analysis.

- Move existing application-specific test modules (test_pagekite.py) to
  the newly created directories.
2015-06-26 12:05:48 +05:30
James Valleroy bc8523d9a3 first_boot: Also create LDAP user for initial user. 2015-06-12 15:49:41 +05:30
Sunil Mohan Adapa 53b0f5aca8 Don't use wells for placing all the content 2015-05-01 21:14:04 -04:00
Sunil Mohan Adapa a3de3ae277 users: Handle errors better during POSIX user operations
- If during an action, user does not exist ignore.

- If during an action, return a non-zero exist status.

- Catch an errors during actions as exceptions.

- Display a message that corresponding POSIX operation failed.
2015-01-25 01:45:51 +05:30