Commit a9647a9
committed
[sonic-utilities] Add user management CLI commands
Add comprehensive CLI interface for SONiC local user management:
- config user add/modify/delete - User lifecycle management
- config user add-ssh-key/remove-ssh-key - SSH key management
- config user import-existing - Import system users to SONiC
- show user [username] - Display user information and status
- show user roles - Display available roles and permissions
Features:
- Role-based access control (administrator/operator)
- Secure password handling with confirmation prompts
- SSH key format validation and management
- CONFIG_DB integration for persistent configuration
- Comprehensive input validation and error handling
- Complete test suite with unit and integration tests
Commands integrate with userd daemon for system-level user operations.1 parent 2657ee3 commit a9647a9
File tree
7 files changed
+3483
-1
lines changed- config
- show
- tests
- mock_tables
7 files changed
+3483
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
1560 | 1561 | | |
1561 | 1562 | | |
1562 | 1563 | | |
| 1564 | + | |
1563 | 1565 | | |
1564 | 1566 | | |
1565 | 1567 | | |
| |||
0 commit comments