Project

General

Profile

Feature #25565

Umbrella #25917: Umbrella: GUI to middlewared

Add users logic to middlewared

Added by William Grzybowski about 1 year ago. Updated 6 months ago.

Status:
Resolved
Priority:
Important
Assignee:
William Grzybowski
Category:
Middleware
Target version:
Estimated time:
Sprint:
Severity:
Backlog Priority:
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
Yes
Support Suite Ticket:
n/a
Hardware Configuration:

Associated revisions

Revision f1b31465 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add prefix option to datastore.insert

Ticket: #25565

Revision db0821c9 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): first pass for user.create

Ticket: #25565

Revision c575a0c2 (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared): make a copy of data to not change it in place

Ticket: #25565

Revision 0ab8dea4 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): make sure homedir is valid and set hashes

Ticket: #25565

Revision 4481de01 (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared): full_name is required

Ticket: #25565

Revision 516dca5e (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): do not allow question mark in password

Ticket: #25565

Revision 86a77b1a (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): validate password

Ticket: #25565

Revision 9e7168be (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): make sure sshpubkey is only used when valid

Ticket: #25565

Revision e32c1a29 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): validate username

Ticket: #25565

Revision 61918556 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): generate smb hash instead of pdbedit

Ticket: #25565

Revision 9a9517ef (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): home mode default and use existing group if any

Ticket: #25565

Revision f6bb7b59 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): chmod home dir on update

Ticket: #25565

Revision 702fb82f (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add sudo and groups to user.create

Ticket: #25565

Revision 04571fcb (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): update sshpubkey on create and fix create attributes

Ticket: #25565

Revision 8c685445 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add comment about smbhash format

Ticket: #25565

Revision 2645989f (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared): setting home mode

Ticket: #25565

Revision bc996f51 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): improvements to user

- Validate home dir
- Get correct group if provided in update
- Copy home dir if changed

Ticket: #25565

Revision 251b2122 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): return `groups` attribute in user.query

Ticket: #25565

Revision 9bf894da (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): common method to set groups

Ticket: #25565

Revision 580cf4c6 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): validate full name and number of groups

Ticket: #25565

Revision 98224428 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): make sure username does not already exist

Ticket: #25565

Revision 24bc7281 (diff)
Added by William Grzybowski about 1 year ago

feat(gui): first pass in using middleware to create/update user

Ticket: #25565

Revision 60d2f156 (diff)
Added by William Grzybowski about 1 year ago

rm(notifier): unused user_create

Ticket: #25565

Revision d692de75 (diff)
Added by William Grzybowski about 1 year ago

fix(gui): syntax error and unused vars

Ticket: #25565

Revision 6f4d1890 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add ValidationError exception

Ticket: #25565

Revision 7ca8ffa1 (diff)
Added by William Grzybowski about 1 year ago

feat(gui): handle ValidationErrors from middleware in freeadmin code path

Ticket: #25565

Revision a605434c (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add support for multiple validation errors

Ticket: #25565

Revision 9c25818a (diff)
Added by William Grzybowski about 1 year ago

feat(gui): allow multiple errors for `__all__`

Ticket: #25565

Revision f926dec6 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): use ValidationErrors for user.create

Ticket: #25565

Revision 9471f9cd (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): implement user.delete

Ticket: #25565

Revision 694a78e9 (diff)
Added by William Grzybowski about 1 year ago

rm(gui): validation done in middleware

Ticket: #25565

Revision ed839976 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): common methods to set password

Ticket: #25565

Revision 11e991b8 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): do not required uid (implementing get_next_uid)

Ticket: #25565

Revision d3fb1fb1 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add `__str__` to ValidationErrors

Ticket: #25565

Revision 863057ea (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared): updating user without group attribute

Ticket: #25565

Revision aa9a2932 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add schema for user.update

Ticket: #25565

Revision 7485ca29 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): CRUD tests for user

Ticket: #25565

Revision f5b9eb24 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): do not allow to delete a builtin user

Ticket: #25565

Revision f07bcd9f (diff)
Added by William Grzybowski about 1 year ago

feat(gui): group_create is now accepted in user.update

Ticket: #25565

Revision 21dea3f2 (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared): updating password

Ticket: #25565

Revision fbfcc455 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): prepare API to delete group on user.delete

Ticket: #25565

Revision bcf533df (diff)
Added by William Grzybowski about 1 year ago

feat(gui): use middleware to change password

Ticket: #25565

Revision 00a73cbe (diff)
Added by William Grzybowski about 1 year ago

feat(gui): set root password on GUI using middleware

Ticket: #25565

Revision 135fed34 (diff)
Added by William Grzybowski about 1 year ago

rm(notifier): user_changepassword is no longer used

Ticket: #25565

Revision 6e6b0e94 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add prefix option to datastore.insert

Ticket: #25565

Revision 7a89bf11 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): first pass for user.create

Ticket: #25565

Revision b12c533f (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared): make a copy of data to not change it in place

Ticket: #25565

Revision e007341a (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): make sure homedir is valid and set hashes

Ticket: #25565

Revision 1f3d16bf (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared): full_name is required

Ticket: #25565

Revision f3ea21a5 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): do not allow question mark in password

Ticket: #25565

Revision bc2ee3b7 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): validate password

Ticket: #25565

Revision 354ee094 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): make sure sshpubkey is only used when valid

Ticket: #25565

Revision 8bf6ebb9 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): validate username

Ticket: #25565

Revision 9e3b5059 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): generate smb hash instead of pdbedit

Ticket: #25565

Revision dda73df3 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): home mode default and use existing group if any

Ticket: #25565

Revision 2971ae23 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): chmod home dir on update

Ticket: #25565

Revision a17f5adb (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add sudo and groups to user.create

Ticket: #25565

Revision 45e77215 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): update sshpubkey on create and fix create attributes

Ticket: #25565

Revision d4210ef0 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add comment about smbhash format

Ticket: #25565

Revision 78cf942f (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared): setting home mode

Ticket: #25565

Revision 43bc8ed9 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): improvements to user

- Validate home dir
- Get correct group if provided in update
- Copy home dir if changed

Ticket: #25565

Revision e1598c6a (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): return `groups` attribute in user.query

Ticket: #25565

Revision d690d5c3 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): common method to set groups

Ticket: #25565

Revision 3ea2018c (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): validate full name and number of groups

Ticket: #25565

Revision 600cb5e8 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): make sure username does not already exist

Ticket: #25565

Revision b878e715 (diff)
Added by William Grzybowski about 1 year ago

feat(gui): first pass in using middleware to create/update user

Ticket: #25565

Revision e0427d2e (diff)
Added by William Grzybowski about 1 year ago

rm(notifier): unused user_create

Ticket: #25565

Revision 52852a0a (diff)
Added by William Grzybowski about 1 year ago

fix(gui): syntax error and unused vars

Ticket: #25565

Revision fed582d1 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add ValidationError exception

Ticket: #25565

Revision 2007e14c (diff)
Added by William Grzybowski about 1 year ago

feat(gui): handle ValidationErrors from middleware in freeadmin code path

Ticket: #25565

Revision be75718c (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add support for multiple validation errors

Ticket: #25565

Revision 1a65b471 (diff)
Added by William Grzybowski about 1 year ago

feat(gui): allow multiple errors for `__all__`

Ticket: #25565

Revision 8e6fea03 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): use ValidationErrors for user.create

Ticket: #25565

Revision f37d381e (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): implement user.delete

Ticket: #25565

Revision aa3a8eac (diff)
Added by William Grzybowski about 1 year ago

rm(gui): validation done in middleware

Ticket: #25565

Revision e4d5b32b (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): common methods to set password

Ticket: #25565

Revision f9152817 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): do not required uid (implementing get_next_uid)

Ticket: #25565

Revision b90348b4 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add `__str__` to ValidationErrors

Ticket: #25565

Revision eec9e569 (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared): updating user without group attribute

Ticket: #25565

Revision 91eb2717 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add schema for user.update

Ticket: #25565

Revision e8fedc14 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): CRUD tests for user

Ticket: #25565

Revision 7c0a6a24 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): do not allow to delete a builtin user

Ticket: #25565

Revision 72f7a2ea (diff)
Added by William Grzybowski about 1 year ago

feat(gui): group_create is now accepted in user.update

Ticket: #25565

Revision 046c4a0e (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared): updating password

Ticket: #25565

Revision e9629c4f (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): prepare API to delete group on user.delete

Ticket: #25565

Revision 2650bf3f (diff)
Added by William Grzybowski about 1 year ago

feat(gui): use middleware to change password

Ticket: #25565

Revision f7193dfc (diff)
Added by William Grzybowski about 1 year ago

feat(gui): set root password on GUI using middleware

Ticket: #25565

Revision ca09ea61 (diff)
Added by William Grzybowski about 1 year ago

rm(notifier): user_changepassword is no longer used

Ticket: #25565

Revision cb1f2873 (diff)
Added by William Grzybowski about 1 year ago

fix(gui): bsdUserGroupMixin is not used in some classes

Ticket: #25565

Revision 7169e60d (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared): add error property to ValidationErrors

Ticket: #25565

Revision 9dc39f9b (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add group.create method

Ticket: #25565

Revision 935021e6 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add group.update

Ticket: #25565

Revision ab54911b (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): implement group.delete

Ticket: #25565

Revision f42fb39a (diff)
Added by William Grzybowski about 1 year ago

feat(gui): delete group using middleware

Ticket: #25565

Revision b329b345 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): create group from user.create

Ticket: #25565

Revision bfc4d31a (diff)
Added by William Grzybowski about 1 year ago

fix(gui): group delete and adjust user create attributes

Ticket: #25565

Revision 02d93c5e (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): improvements on group create

- Create group on user.create
- Allow empty gid on group create

Ticket: #25565

Revision a045b4f2 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): implement `delete_group` on user.delete

Ticket: #25565

Revision d0aea4c5 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): move method (non python private comes first)

Ticket: #25565

Revision 1160e6b9 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add prefix option to datastore.insert

Ticket: #25565

Revision b2e84555 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): first pass for user.create

Ticket: #25565

Revision 9905e985 (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared): make a copy of data to not change it in place

Ticket: #25565

Revision 3a706705 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): make sure homedir is valid and set hashes

Ticket: #25565

Revision fd505260 (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared): full_name is required

Ticket: #25565

Revision 27429a76 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): do not allow question mark in password

Ticket: #25565

Revision b54d59a0 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): validate password

Ticket: #25565

Revision 475a1c15 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): make sure sshpubkey is only used when valid

Ticket: #25565

Revision fcb56257 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): validate username

Ticket: #25565

Revision 390a51bd (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): generate smb hash instead of pdbedit

Ticket: #25565

Revision 74ca6fb0 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): home mode default and use existing group if any

Ticket: #25565

Revision 472185c6 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): chmod home dir on update

Ticket: #25565

Revision 4dd5e7ff (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add sudo and groups to user.create

Ticket: #25565

Revision 5d455b64 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): update sshpubkey on create and fix create attributes

Ticket: #25565

Revision cb37f91f (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add comment about smbhash format

Ticket: #25565

Revision 4ba02321 (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared): setting home mode

Ticket: #25565

Revision a7fc229b (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): improvements to user

- Validate home dir
- Get correct group if provided in update
- Copy home dir if changed

Ticket: #25565

Revision e29418ac (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): return `groups` attribute in user.query

Ticket: #25565

Revision c227705d (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): common method to set groups

Ticket: #25565

Revision f4e1e4d2 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): validate full name and number of groups

Ticket: #25565

Revision a3b60dfa (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): make sure username does not already exist

Ticket: #25565

Revision 3d4ba2f2 (diff)
Added by William Grzybowski about 1 year ago

feat(gui): first pass in using middleware to create/update user

Ticket: #25565

Revision b77fb4d1 (diff)
Added by William Grzybowski about 1 year ago

rm(notifier): unused user_create

Ticket: #25565

Revision 20056df0 (diff)
Added by William Grzybowski about 1 year ago

fix(gui): syntax error and unused vars

Ticket: #25565

Revision 229241b2 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add ValidationError exception

Ticket: #25565

Revision 69f391b2 (diff)
Added by William Grzybowski about 1 year ago

feat(gui): handle ValidationErrors from middleware in freeadmin code path

Ticket: #25565

Revision e7a20632 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add support for multiple validation errors

Ticket: #25565

Revision ed58eac7 (diff)
Added by William Grzybowski about 1 year ago

feat(gui): allow multiple errors for `__all__`

Ticket: #25565

Revision ba9b315c (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): use ValidationErrors for user.create

Ticket: #25565

Revision 5fc679ee (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): implement user.delete

Ticket: #25565

Revision 3652447c (diff)
Added by William Grzybowski about 1 year ago

rm(gui): validation done in middleware

Ticket: #25565

Revision 58ed0971 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): common methods to set password

Ticket: #25565

Revision 5937e666 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): do not required uid (implementing get_next_uid)

Ticket: #25565

Revision cf61b821 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add `__str__` to ValidationErrors

Ticket: #25565

Revision 0cf19142 (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared): updating user without group attribute

Ticket: #25565

Revision 20690692 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add schema for user.update

Ticket: #25565

Revision 8c3606e1 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): CRUD tests for user

Ticket: #25565

Revision 75f9d969 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): do not allow to delete a builtin user

Ticket: #25565

Revision 1f19ef3e (diff)
Added by William Grzybowski about 1 year ago

feat(gui): group_create is now accepted in user.update

Ticket: #25565

Revision 31b11afe (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared): updating password

Ticket: #25565

Revision 58c533b5 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): prepare API to delete group on user.delete

Ticket: #25565

Revision 3b100a47 (diff)
Added by William Grzybowski about 1 year ago

feat(gui): use middleware to change password

Ticket: #25565

Revision 75c87780 (diff)
Added by William Grzybowski about 1 year ago

feat(gui): set root password on GUI using middleware

Ticket: #25565

Revision 804709c8 (diff)
Added by William Grzybowski about 1 year ago

rm(notifier): user_changepassword is no longer used

Ticket: #25565

Revision 7a52cb73 (diff)
Added by William Grzybowski about 1 year ago

fix(gui): bsdUserGroupMixin is not used in some classes

Ticket: #25565

Revision 0d465ce5 (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared): add error property to ValidationErrors

Ticket: #25565

Revision 45e34ab5 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add group.create method

Ticket: #25565

Revision a2537771 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add group.update

Ticket: #25565

Revision ea69acc7 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): implement group.delete

Ticket: #25565

Revision 1134f523 (diff)
Added by William Grzybowski about 1 year ago

feat(gui): delete group using middleware

Ticket: #25565

Revision 6197045c (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): create group from user.create

Ticket: #25565

Revision 6b74c411 (diff)
Added by William Grzybowski about 1 year ago

fix(gui): group delete and adjust user create attributes

Ticket: #25565

Revision 526bc9fe (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): improvements on group create

- Create group on user.create
- Allow empty gid on group create

Ticket: #25565

Revision 90090c46 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): implement `delete_group` on user.delete

Ticket: #25565

Revision fb1baebb (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): move method (non python private comes first)

Ticket: #25565

Revision 25ec070e (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): fix group.update to work without all attributes

Ticket: #25565

Revision fb28797f (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add group CRUD tests

Ticket: #25565

Revision 65eed56c (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared): make user.create test to create a group

Ticket: #25565

Revision f5fcaa57 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): delete from samba, DC and cifs guest

Ticket: #25565

Revision ea0f8a06 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): validate group name

Ticket: #25565

Revision 3dd188ba (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): run groupmap_delete when group changes

Ticket: #25565

Revision 2267298e (diff)
Added by William Grzybowski about 1 year ago

feat(gui): remove now unused mixin and create/update using middleware

Ticket: #25565

Revision 359df750 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): allow extra arguments to *.delete

Ticket: #25565

Revision 89348efb (diff)
Added by William Grzybowski about 1 year ago

feat(gui): use middleware to delete a user

Ticket: #25565

Revision f7d76807 (diff)
Added by William Grzybowski about 1 year ago

feat(gui): delete group using middleware

Ticket: #25565

Revision 46c12815 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): implement `delete_users` for group.delete

Ticket: #25565

Revision 94357cf3 (diff)
Added by William Grzybowski about 1 year ago

rm(gui): validation now present in middleware

Ticket: #25565

Revision f1ac34d1 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add more options to service Config and a helper method

Ticket: #25565

Revision eec01006 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): provide a common implementation for CRUDService.query

Ticket: #25565

Revision f41f3ec2 (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared): do not register referenced schema of inherited service

Ticket: #25565

Revision f04f51f4 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add `datastore_extend` Config attribute

Ticket: #25565

Revision 959bbf46 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): use CRUDService helpers in user.* and group.*

Ticket: #25565

Revision 78637e63 (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared): unused imports

Ticket: #25565

Revision f2702e5e (diff)
Added by William Grzybowski about 1 year ago

rm(notifier): now unused methods

Ticket: #25565

Revision 429f2b2d (diff)
Added by William Grzybowski about 1 year ago

feat(gui): get next user id using middleware

Ticket: #25565

Revision d240f769 (diff)
Added by William Grzybowski about 1 year ago

feat(gui): get next group id from middleware

Ticket: #25565

Revision 3bdf901f (diff)
Added by William Grzybowski about 1 year ago

rm(notifier): more now unused user/group methods

Ticket: #25565

Revision b65c3afb (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared): do not update password if not provided

Ticket: #25565

Revision ef3f7cbe (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): invert logic to avoid an indentation level

Ticket: #25565

Revision b5e1ea27 (diff)
Added by William Grzybowski about 1 year ago

rm(gui): delete method in the wrong class

Ticket: #25565

Revision 5f4b3526 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): common user.{create,update} validation

Ticket: #25565

Revision 50f8e8db (diff)
Added by William Grzybowski about 1 year ago

feat(gui): map middleware and django form fields

Ticket: #25565

Revision fb28d354 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): remove code duplication in group validation

Use a common validation method.

Ticket: #25565

Revision e33a2b50 (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared): `groups` is already guaranteed to be in `user`

Ticket: #25565

Revision 18b39f9b (diff)
Added by William Grzybowski about 1 year ago

rm(middlewared): unused var

Ticket: #25565

Revision 0b9a20b8 (diff)
Added by William Grzybowski about 1 year ago

rm(gui): unused modules

Ticket: #25565

Revision eb71b546 (diff)
Added by William Grzybowski about 1 year ago

fix(gui/middlewared): do not allow some builtin attributes to be changed

Ticket: #25565
Ticket: #23615

Revision 5d299ec5 (diff)
Added by William Grzybowski about 1 year ago

feat(gui): use group.create to greate a new group

Ticket: #25565

Revision 4001acf1 (diff)
Added by William Grzybowski about 1 year ago

rm(notifier): now unused methods

Ticket: #25565

Revision bc5b3738 (diff)
Added by William Grzybowski about 1 year ago

rm(notifier): unused imports (caught by travis)

Ticket: #25565

Revision 5f515756 (diff)
Added by William Grzybowski about 1 year ago

feat(gui): remove "Change E-mail" button

That operation can already be done in Modify User dialog.

Ticket: #25565

Revision 0197e686 (diff)
Added by William Grzybowski about 1 year ago

rm(gui): deprecated code

Ticket: #25565

Revision da353c3a (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared/account): inverted logic in home dir validation

Ticket: #25565

Revision 87b99444 (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared/account): allow root to set sshpubkey

Ticket: #25565

Revision 55652e65 (diff)
Added by William Grzybowski about 1 year ago

fix(gui): update form instance

Ticket: #25565

Revision 0eb02919 (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared/account): copy skel files to new user home

Ticket: #25565

Revision d4248946 (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared/account): copy skel files every time

It could be the home dir was already created (e.g. dataset)

Ticket: #25565

Revision 2948c330 (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared): only copy skel if home dir exists

Ticket: #25565

Revision 5786df31 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add prefix option to datastore.insert

Ticket: #25565

Revision 82043b19 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): first pass for user.create

Ticket: #25565

Revision 73fdacf8 (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared): make a copy of data to not change it in place

Ticket: #25565

Revision 7e7c61e6 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): make sure homedir is valid and set hashes

Ticket: #25565

Revision 4ee58fc8 (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared): full_name is required

Ticket: #25565

Revision 74641d05 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): do not allow question mark in password

Ticket: #25565

Revision 79ac2c69 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): validate password

Ticket: #25565

Revision dbf1a63d (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): make sure sshpubkey is only used when valid

Ticket: #25565

Revision b7ca4e94 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): validate username

Ticket: #25565

Revision d2541154 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): generate smb hash instead of pdbedit

Ticket: #25565

Revision 4fa2cee8 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): home mode default and use existing group if any

Ticket: #25565

Revision c98dd101 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): chmod home dir on update

Ticket: #25565

Revision bf9f0b5f (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add sudo and groups to user.create

Ticket: #25565

Revision 78316717 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): update sshpubkey on create and fix create attributes

Ticket: #25565

Revision bd206759 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add comment about smbhash format

Ticket: #25565

Revision 10c7803c (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared): setting home mode

Ticket: #25565

Revision 30108b12 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): improvements to user

- Validate home dir
- Get correct group if provided in update
- Copy home dir if changed

Ticket: #25565

Revision e2fe362e (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): return `groups` attribute in user.query

Ticket: #25565

Revision 0c2ae08d (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): common method to set groups

Ticket: #25565

Revision 60d88437 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): validate full name and number of groups

Ticket: #25565

Revision 23254268 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): make sure username does not already exist

Ticket: #25565

Revision d924d906 (diff)
Added by William Grzybowski about 1 year ago

feat(gui): first pass in using middleware to create/update user

Ticket: #25565

Revision 40154848 (diff)
Added by William Grzybowski about 1 year ago

rm(notifier): unused user_create

Ticket: #25565

Revision 2e102eac (diff)
Added by William Grzybowski about 1 year ago

fix(gui): syntax error and unused vars

Ticket: #25565

Revision 9a04570f (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add ValidationError exception

Ticket: #25565

Revision 977a26de (diff)
Added by William Grzybowski about 1 year ago

feat(gui): handle ValidationErrors from middleware in freeadmin code path

Ticket: #25565

Revision 9b4dfd82 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add support for multiple validation errors

Ticket: #25565

Revision 894cc2ca (diff)
Added by William Grzybowski about 1 year ago

feat(gui): allow multiple errors for `__all__`

Ticket: #25565

Revision 4a72a2c9 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): use ValidationErrors for user.create

Ticket: #25565

Revision cd8425bf (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): implement user.delete

Ticket: #25565

Revision ecf1cbde (diff)
Added by William Grzybowski about 1 year ago

rm(gui): validation done in middleware

Ticket: #25565

Revision a07de2ef (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): common methods to set password

Ticket: #25565

Revision 87a6b9fe (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): do not required uid (implementing get_next_uid)

Ticket: #25565

Revision c6763560 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add `__str__` to ValidationErrors

Ticket: #25565

Revision d55fee92 (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared): updating user without group attribute

Ticket: #25565

Revision 0b579e4c (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add schema for user.update

Ticket: #25565

Revision bbf89685 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): CRUD tests for user

Ticket: #25565

Revision a47e44fb (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): do not allow to delete a builtin user

Ticket: #25565

Revision 802963b0 (diff)
Added by William Grzybowski about 1 year ago

feat(gui): group_create is now accepted in user.update

Ticket: #25565

Revision 761ae89f (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared): updating password

Ticket: #25565

Revision c191a726 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): prepare API to delete group on user.delete

Ticket: #25565

Revision 7a8c7b6c (diff)
Added by William Grzybowski about 1 year ago

feat(gui): use middleware to change password

Ticket: #25565

Revision e154a863 (diff)
Added by William Grzybowski about 1 year ago

feat(gui): set root password on GUI using middleware

Ticket: #25565

Revision 98df5769 (diff)
Added by William Grzybowski about 1 year ago

rm(notifier): user_changepassword is no longer used

Ticket: #25565

Revision 059ed951 (diff)
Added by William Grzybowski about 1 year ago

fix(gui): bsdUserGroupMixin is not used in some classes

Ticket: #25565

Revision e3e10a74 (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared): add error property to ValidationErrors

Ticket: #25565

Revision fcbdca80 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add group.create method

Ticket: #25565

Revision 31ef0aa1 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add group.update

Ticket: #25565

Revision 1186bd41 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): implement group.delete

Ticket: #25565

Revision 0f8da8a6 (diff)
Added by William Grzybowski about 1 year ago

feat(gui): delete group using middleware

Ticket: #25565

Revision b5250916 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): create group from user.create

Ticket: #25565

Revision 16c5de33 (diff)
Added by William Grzybowski about 1 year ago

fix(gui): group delete and adjust user create attributes

Ticket: #25565

Revision 131a9076 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): improvements on group create

- Create group on user.create
- Allow empty gid on group create

Ticket: #25565

Revision d9a36131 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): implement `delete_group` on user.delete

Ticket: #25565

Revision 171211b1 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): move method (non python private comes first)

Ticket: #25565

Revision c460b69f (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): fix group.update to work without all attributes

Ticket: #25565

Revision 5c85601a (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add group CRUD tests

Ticket: #25565

Revision ab1e4598 (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared): make user.create test to create a group

Ticket: #25565

Revision f68f8530 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): delete from samba, DC and cifs guest

Ticket: #25565

Revision 02d3031b (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): validate group name

Ticket: #25565

Revision 482c2c13 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): run groupmap_delete when group changes

Ticket: #25565

Revision 076b9869 (diff)
Added by William Grzybowski about 1 year ago

feat(gui): remove now unused mixin and create/update using middleware

Ticket: #25565

Revision bc356da3 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): allow extra arguments to *.delete

Ticket: #25565

Revision 3847a894 (diff)
Added by William Grzybowski about 1 year ago

feat(gui): use middleware to delete a user

Ticket: #25565

Revision c23992cf (diff)
Added by William Grzybowski about 1 year ago

feat(gui): delete group using middleware

Ticket: #25565

Revision f5d57a2e (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): implement `delete_users` for group.delete

Ticket: #25565

Revision 88fb8d95 (diff)
Added by William Grzybowski about 1 year ago

rm(gui): validation now present in middleware

Ticket: #25565

Revision ef942128 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add more options to service Config and a helper method

Ticket: #25565

Revision 7e686cf3 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): provide a common implementation for CRUDService.query

Ticket: #25565

Revision b06f8727 (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared): do not register referenced schema of inherited service

Ticket: #25565

Revision 0eec082b (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): add `datastore_extend` Config attribute

Ticket: #25565

Revision 96b2e0b8 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): use CRUDService helpers in user.* and group.*

Ticket: #25565

Revision 0188f996 (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared): unused imports

Ticket: #25565

Revision aa9508cc (diff)
Added by William Grzybowski about 1 year ago

rm(notifier): now unused methods

Ticket: #25565

Revision 3aa65d9a (diff)
Added by William Grzybowski about 1 year ago

feat(gui): get next user id using middleware

Ticket: #25565

Revision a113b626 (diff)
Added by William Grzybowski about 1 year ago

feat(gui): get next group id from middleware

Ticket: #25565

Revision 61334175 (diff)
Added by William Grzybowski about 1 year ago

rm(notifier): more now unused user/group methods

Ticket: #25565

Revision 8052aae6 (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared): do not update password if not provided

Ticket: #25565

Revision e23d2fb5 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): invert logic to avoid an indentation level

Ticket: #25565

Revision 72b35e54 (diff)
Added by William Grzybowski about 1 year ago

rm(gui): delete method in the wrong class

Ticket: #25565

Revision 73e71a66 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): common user.{create,update} validation

Ticket: #25565

Revision 4adca72c (diff)
Added by William Grzybowski about 1 year ago

feat(gui): map middleware and django form fields

Ticket: #25565

Revision 1e5ce382 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared): remove code duplication in group validation

Use a common validation method.

Ticket: #25565

Revision 57af62c1 (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared): `groups` is already guaranteed to be in `user`

Ticket: #25565

Revision 5ab0d73f (diff)
Added by William Grzybowski about 1 year ago

rm(middlewared): unused var

Ticket: #25565

Revision fee256d6 (diff)
Added by William Grzybowski about 1 year ago

rm(gui): unused modules

Ticket: #25565

Revision b2cabd5b (diff)
Added by William Grzybowski about 1 year ago

fix(gui/middlewared): do not allow some builtin attributes to be changed

Ticket: #25565
Ticket: #23615

Revision e1c7ff4c (diff)
Added by William Grzybowski about 1 year ago

feat(gui): use group.create to greate a new group

Ticket: #25565

Revision c475cf31 (diff)
Added by William Grzybowski about 1 year ago

rm(notifier): now unused methods

Ticket: #25565

Revision 603dc966 (diff)
Added by William Grzybowski about 1 year ago

rm(notifier): unused imports (caught by travis)

Ticket: #25565

Revision 480a5111 (diff)
Added by William Grzybowski about 1 year ago

feat(gui): remove "Change E-mail" button

That operation can already be done in Modify User dialog.

Ticket: #25565

Revision 5d9cab30 (diff)
Added by William Grzybowski about 1 year ago

rm(gui): deprecated code

Ticket: #25565

Revision e1b211db (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared/account): inverted logic in home dir validation

Ticket: #25565

Revision 02cfd170 (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared/account): allow root to set sshpubkey

Ticket: #25565

Revision 06b84c70 (diff)
Added by William Grzybowski about 1 year ago

fix(gui): update form instance

Ticket: #25565

Revision 2e0bed01 (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared/account): copy skel files to new user home

Ticket: #25565

Revision 8ccf0ac5 (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared/account): copy skel files every time

It could be the home dir was already created (e.g. dataset)

Ticket: #25565

Revision aa25e0e4 (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared): only copy skel if home dir exists

Ticket: #25565

History

#1 Updated by William Grzybowski about 1 year ago

  • Status changed from Screened to Fix In Progress

#2 Updated by William Grzybowski about 1 year ago

  • Status changed from Fix In Progress to Ready For Release

#3 Updated by Dru Lavigne about 1 year ago

  • Subject changed from Move up users logic to middlewared to Add users logic to middlewared

#4 Updated by William Grzybowski about 1 year ago

  • Parent task set to #25917

#5 Updated by Dru Lavigne about 1 year ago

  • Target version changed from 11.1 to 11.1-BETA1

#6 Updated by Dru Lavigne 12 months ago

  • Status changed from Ready For Release to Resolved

#7 Updated by Bonnie Follweiler 12 months ago

  • Needs QA changed from Yes to No
  • QA Status Test Passes FreeNAS added
  • QA Status deleted (Not Tested)

#8 Updated by Joe Maloney 6 months ago

  • Needs Automation changed from No to Yes

Also available in: Atom PDF