Commit graph

28 commits

Author SHA1 Message Date
25b5b82a06 fix broken ssh public key handling
- make sure that AddSshPublicKeyForm does not try to parse the key if it is
  None
- split the key text into a maximum of 3 parts to allow whitespace in comments
- update changelog
2015-02-21 20:57:18 +01:00
7dd4c78345 trigger tasks on SshPublicKey save and delete
- implement save and delete methods in osusers.models.SshPublicKey that trigger
  set_file_ssh_authorized_keys
- add new test methods to osusers.tests.test_models.SshPublicKeyTest
2015-02-01 00:08:04 +01:00
20359681db implement SshPublicKey model, manager and tests
- implement osusers.models.SshPublicKey and osusers.models.SshPublicKeyManager
- fix broken osusers.models.tests.test_models
- add new test classes SshPublicKeyManagerTest and SshPublicKeyTest
- add migration for SshPublicKey model
2015-02-01 00:07:56 +01:00
cff35dd408 define User.is_sftp_user and fix minor template issues 2015-01-26 21:49:22 +01:00
150366a524 plug users and hosting packages together
- document new feature in changelog
- add autogenerated documentation for osusers.urls and osusers.views
- add osuser URLs to gnuviechadmin.urls
- implement get_absolute_url in hostingpackages.models.CustomerHostingPackage
- use set_ldap_user_password instead of create_ldap_user for existing OS users
  in osusers.models.User.set_password
- add URL pattern set_osuser_password in osusers.urls
- implement osusers.views.SetOsUserPassword to set the password of an existing
  operating system user
- link to hosting package detail view on user dashboard
- add template hostingpackages/customerhostingpackage_detail.html
- add template osusers/user_setpassword.html
2015-01-24 16:26:32 +01:00
5b41d93898 refactor osusers.tasks into fileservertasks and ldaptasks 2015-01-19 21:44:57 +01:00
6bf65bba3b use taskresults app and delete_ldap_group task 2014-12-29 15:57:03 +01:00
0df67e7154 document osusers code 2014-12-27 22:44:27 +01:00
18e47d73b4 add customer field to osusers.models.User
- allow association of os users to Django users (customers)
- adapt admin forms
- add migration
2014-12-27 19:26:16 +01:00
57a0d848c9 remove unused import 2014-12-26 21:48:09 +01:00
0b6ac2a478 create directories for new users
- use new file tasks to create SFTP and mail base directories for users
- use json serializer as default
- remove TaskResult classes that don't provide any significant benefit
2014-12-26 15:10:36 +01:00
e877087127 make user and group management more robust
- remove TaskResultInline and subclasses
- add custom perform_delete_selected action to UserAdmin and GroupAdmin
- properly clean asynchronous tasks in rabbitmq
- wrap user operations in transactions
2014-12-22 20:07:11 +01:00
6984033444 wrap UserManager.create_user in a transaction 2014-12-17 22:19:44 +01:00
b37e44ccfd add tests for osusers.models.User
- fix task name in Group.delete
- remove duplicate task from User.delete
- adapt osusers.tests.test_models.GroupTest.test_delete
- add tests to UserTest
  - test_save
  - test_delete_only_user
  - test_delete_additional_groups
2014-06-01 15:26:01 +02:00
ceeffb6d1c refactor UserManager.create_user
- remove duplicate create_ldap_group task
- create Shadow in User.set_password if necessary
- add test UserManagerTest.test_create_user_tasks for group task
2014-06-01 15:03:15 +02:00
83562ba2bf implement test for User.set_password, add Shadow.set_password 2014-06-01 14:51:33 +02:00
b9dd34d527 add initial osusers unit tests 2014-06-01 01:36:50 +02:00
e8285518a3 fix small group handling bugs
- use create_grouptaskresult instead of create for creating
  GroupTaskResult
- use group.gid instead of non-existing group.id
2014-06-01 00:33:42 +02:00
59783e986d implement classes for tracking task status 2014-05-30 21:46:10 +02:00
865f54ab67 use primitive fields instead of models for tasks
- modify osusers.tasks and osusers.models to avoid serialization of full
  models for celery tasks and use the required fields only
2014-05-30 18:39:51 +02:00
6a40a5eded pass groupname only to delete_ldap_group_if_empty 2014-05-30 17:18:42 +02:00
6eb74f5b79 add more ldap tasks
- add custom celery router osusers.tasks.LdapRouter
- add tasks add_ldap_user_to_group, delete_ldap_group_if_empty,
  delete_ldap_user and remove_ldap_user_from_group
- implement osusers.models.Group.save and osusers.models.Group.delete
- implement save, delete and set_password methods in osusers.models.User
- implement save and delete methods in osusers.models.AdditionalGroup
2014-05-30 17:10:22 +02:00
caab322beb implement user creation in osusers.admin
- add osusers.admin.UserCreationForm
- add dummy osusers.tasks implementation with create_ldap_group and
  create_ldap_user
- fix UserManager.get_next_username
- add proper transaction handling in UserManager.create_user
- add calls to create_ldap_user and create_ldap_group to
  UserManager.create_user
2014-05-25 23:35:14 +02:00
5db6223bc0 introduce new app domains
- generate domains app
- duplicate managemails.models.MailDomain as domains.models.MailDomain
- add domains app to gnuviechadmin.settings.base.LOCAL_APPS
- repair managemails.tests.test_models
- fix handling of empty results in osusers.models.GroupManager.get_next_gid and
  osusers.models.UserManager.get_next_uid
2014-05-25 14:53:58 +02:00
e132c9a56c add user creation manager code
- add OSUSER_* settings
- add UserManager, GroupManager and ShadowManager for user creation
2014-05-25 00:55:02 +02:00
a85ad4e420 improve osusers model classes
- add __str__ methods
- add verbose names and help texts
2014-05-24 23:40:54 +02:00
9edbe6c898 add support for additional groups 2014-05-24 21:53:49 +02:00
1082128f22 add osusers app 2014-05-24 21:28:33 +02:00