Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User domain cluster UI page: handle mail field #7349

Open
gsanchietti opened this issue Mar 14, 2025 · 2 comments
Open

User domain cluster UI page: handle mail field #7349

gsanchietti opened this issue Mar 14, 2025 · 2 comments
Labels
testing Packages are available from testing repositories

Comments

@gsanchietti
Copy link
Member

With an internal LDAP or Active Directory instance, users can be notified when their password is about to expire.
The mail field and the password expired information is not present inside the cluster UI, but it's available inside the User Portal.

Proposed solution:

  • Add a password expired attribute so the admin can see problematic users.
  • Show the mail address in the user list.
  • Manage mail address during add or edit user, ensuring the mail is validated and can be removed.

See also
This feature request builds upon the solution discussed in issue #7229 and aims to integrate the discussed changes into the cluster web interface for better usability.

@gsanchietti
Copy link
Member Author

Testing images:

  • core: 3.6.2-dev.2
  • samba:2.4.1-dev.1
  • openldap: 2.3.1-dev.1

Install the custom core image:

curl https://raw.githubusercontent.com/NethServer/ns8-core/main/core/install.sh > install.sh 
bash install.sh ghcr.io/nethserver/core:3.6.2-dev.2
create-cluster rl1.leader.cluster0.gs.nethserver.net:55820 10.5.4.0/24 Nethesis,1234

Setup custom images for Samba and OpenLDAP:

redis-cli hset cluster/override/modules samba ghcr.io/nethserver/samba:2.4.1-dev.1
redis-cli hset cluster/override/modules openldap ghcr.io/nethserver/openldap:2.3.1-dev.1

@gsanchietti
Copy link
Member Author

Test case 1: OpenLDAP, user list

  • Install a clean machine, see installation instruction on this comment
  • Install and configure an internal OpenLDAP
  • Go to the User & Groups page
  • Verify the administrator user has a non-expiry tag

Test case 2: OpenLDAP, user add

  • After test case 1
  • Create a new user and set a mail address
  • Try to add an invalid address, an error must be displayed
  • Add a valid mail address and save
  • Verify the mail is shown inside the user list

Test case 3: OpenLDAP, user edit

  • After test case 2
  • Remove the mail address from the user and save
  • Verify the mail field has been removed

Test case 4: Samba, user list

  • Repeat test case 1 with Samba

Test case 5: Samba, user list

  • Repeat test case 2 with Samba

Test case 6: Samba, user list

  • Repeat test case 3 with Samba

Test case 7: OpenLDAP, expired users

  • Move the date into the future date --set="+2 years"
  • Access the OpenLDAP user list
  • Verify expired users have a special tag

Test case 8: Samba, expired users

  • After test case 7
  • Access the Samba user list
  • Verify expired users have a special tag

@gsanchietti gsanchietti removed their assignment Mar 17, 2025
@gsanchietti gsanchietti added the testing Packages are available from testing repositories label Mar 17, 2025
@nethbot nethbot moved this from In Progress to Testing in NethServer Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Packages are available from testing repositories
Projects
Status: Testing
Development

No branches or pull requests

1 participant