[PR #506] [MERGED] New additions #590

Closed
opened 2026-02-27 15:59:16 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/retspen/webvirtcloud/pull/506
Author: @Info-IIG
Created: 6/16/2022
Status: Merged
Merged: 6/20/2022
Merged by: @catborise

Base: masterHead: develop


📝 Commits (6)

  • c817d3e Add permission can view instances
  • de2dce7 Added Technicians group
  • 32eb91f Automatic input first name last name and email with ldap
  • 02b02d3 Added DRBD status
  • e26a114 Added ldap password encryption
  • 052610d Added permission can snapshot instances

📊 Changes

12 files changed (+153 additions, -24 deletions)

View changed files

📝 README.md (+12 -2)
admin/migrations/0003_create_group_technicians.py (+15 -0)
📝 console/views.py (+1 -1)
📝 instances/models.py (+3 -0)
📝 instances/templates/allinstances.html (+1 -1)
📝 instances/templates/allinstances_index_grouped.html (+5 -0)
📝 instances/templates/allinstances_index_nongrouped.html (+4 -0)
📝 instances/templates/instance.html (+1 -1)
📝 instances/views.py (+48 -5)
webvirtcloud/.dec_ldap_pwd.sh (+18 -0)
📝 webvirtcloud/ldapbackend.py (+38 -11)
📝 webvirtcloud/settings.py.template (+7 -3)

📄 Description

Hi,

There are some additions :

1) Added permission to see all instances
The goal is to be able to give the right to a user in a group to see all the instances.

2) Added Technicians group
The goal is to be able to automatically add users from the LDAP directory to the Technicians group based on the cn and to assign specific permissions afterwards.

3) Automatic input first name last name and email with ldap
The goal is to add automatically the last name, the first name and the email when creating a user from the LDAP directory.

4) Added DRBD status
My infrastructure is composed of a cluster of 2 nodes with a DRBD to replicate the storage. So I added the retrieval of the role and state of the disks in webvirtcloud by ssh.

5) Added ldap password encryption
The goal was to encrypt the password of the user who has the LDAP search rights. I added a script to decrypt the password which is run at the LDAP_MASTER_PW parameter. The procedure to encrypt the password is written in the README.

6) Added permission can snapshot instances
The objective was to be able to manage per user the right to make snapshots for all instances.

Thanks.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/retspen/webvirtcloud/pull/506 **Author:** [@Info-IIG](https://github.com/Info-IIG) **Created:** 6/16/2022 **Status:** ✅ Merged **Merged:** 6/20/2022 **Merged by:** [@catborise](https://github.com/catborise) **Base:** `master` ← **Head:** `develop` --- ### 📝 Commits (6) - [`c817d3e`](https://github.com/retspen/webvirtcloud/commit/c817d3e61a2d5d5326ad2bf11975d7dbdf2bad88) Add permission can view instances - [`de2dce7`](https://github.com/retspen/webvirtcloud/commit/de2dce7573d8b513ee433982335aa94ab751ae4d) Added Technicians group - [`32eb91f`](https://github.com/retspen/webvirtcloud/commit/32eb91f53f173194338421cd6dc11660de01becb) Automatic input first name last name and email with ldap - [`02b02d3`](https://github.com/retspen/webvirtcloud/commit/02b02d3321c98fb0a1e9cc3dbe6af293f78cb219) Added DRBD status - [`e26a114`](https://github.com/retspen/webvirtcloud/commit/e26a114c44c2008351dd9c5198d5795c4674265d) Added ldap password encryption - [`052610d`](https://github.com/retspen/webvirtcloud/commit/052610dd215b761399577b6d555ecdc5b90a0536) Added permission can snapshot instances ### 📊 Changes **12 files changed** (+153 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+12 -2) ➕ `admin/migrations/0003_create_group_technicians.py` (+15 -0) 📝 `console/views.py` (+1 -1) 📝 `instances/models.py` (+3 -0) 📝 `instances/templates/allinstances.html` (+1 -1) 📝 `instances/templates/allinstances_index_grouped.html` (+5 -0) 📝 `instances/templates/allinstances_index_nongrouped.html` (+4 -0) 📝 `instances/templates/instance.html` (+1 -1) 📝 `instances/views.py` (+48 -5) ➕ `webvirtcloud/.dec_ldap_pwd.sh` (+18 -0) 📝 `webvirtcloud/ldapbackend.py` (+38 -11) 📝 `webvirtcloud/settings.py.template` (+7 -3) </details> ### 📄 Description Hi, There are some additions : **1) Added permission to see all instances** The goal is to be able to give the right to a user in a group to see all the instances. **2) Added Technicians group** The goal is to be able to automatically add users from the LDAP directory to the Technicians group based on the cn and to assign specific permissions afterwards. **3) Automatic input first name last name and email with ldap** The goal is to add automatically the last name, the first name and the email when creating a user from the LDAP directory. **4) Added DRBD status** My infrastructure is composed of a cluster of 2 nodes with a DRBD to replicate the storage. So I added the retrieval of the role and state of the disks in webvirtcloud by ssh. **5) Added ldap password encryption** The goal was to encrypt the password of the user who has the LDAP search rights. I added a script to decrypt the password which is run at the LDAP_MASTER_PW parameter. The procedure to encrypt the password is written in the README. **6) Added permission can snapshot instances** The objective was to be able to manage per user the right to make snapshots for all instances. Thanks. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 15:59:16 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtcloud#590
No description provided.