NethServer / nethsecurity

NethSecurity image and build environment
https://www.nethsecurity.org/
Other
90 stars 6 forks source link

Improve LDAP configuration and authentication consistency #627

Closed gsanchietti closed 1 week ago

gsanchietti commented 2 weeks ago

Enhance LDAP configuration to address inconsistencies between Samba AD and MS AD, clarify field usage, and improve migration processes.

Purpose of the feature

Current problems

Proposed solution Frontend changes:

  1. Rename "User CN field" to "User display name attribute"
  2. Add tooltip for "User display name attribute": "Display name attribute for the user. The display name typically represents the user's full name like 'John Doe'. Example: 'displayName' for Active Directory or 'cn' for NethServer OpenLDAP"
  3. Add tooltip for "User attribute field": "LDAP attribute that corresponds to the user's identity. This attribute is used to uniquely identify users within the LDAP directory. Example: 'uid' for OpenLDAP or 'sAMAccountname' for Active Directory"

Backend changes:

  1. Implement a new library for parsing LDAP responses to ensure more consistent decoding
  2. Update migration processes to handle Samba AD and MS AD consistently

Other changes:

  1. Update documentation to reflect new field names and provide clear guidance on configuration for different LDAP systems
  2. Conduct thorough QA testing to ensure compatibility and consistency across various LDAP setups

See also

gsanchietti commented 2 weeks ago

Migration testing package for NS7: nethserver-firewall-migration-0.0.19-1.2.gfd6fcf6.ns7.noarch.rpm

github-actions[bot] commented 2 weeks ago

Testing image version: 23.05.3-ns.1.0.1-70-g9ef0f6b

gsanchietti commented 2 weeks ago

Test case 1

Test case 2

Test case 3

Test case 4

Test case 5 (migration)

Test case 6 (migration)

Test case 7

Test case 8

Test case 9

github-actions[bot] commented 1 week ago

Testing image version: 8-23.05.3-ns.1.0.1-71-g7211cc2

gsanchietti commented 1 week ago

Test cases 1,2,3,4,5,6 verified by Luca D and @cotosso

gsanchietti commented 1 week ago

Verified