Closed DavidePrincipi closed 1 year ago
Important notices
For each test case
w32tm /resync
Useful commands
Get the samba version installed in nsdc
nsdc-run -e -- samba -V
Get the samba running status
systemctl -M nsdc status samba
Test case 1
New installation. Enable nethserver-testing repo with the commands below, then configure a local AD account provider.
mkdir -p /etc/e-smith/templates-custom/etc/nethserver/eorepo.conf/
echo nethserver-testing > /etc/e-smith/templates-custom/etc/nethserver/eorepo.conf/99testing
signal-event software-repos-save
Test case 2
Update existing installation.
yum update --enablerepo=nethserver-testing nethserver-dc
Test case 3
Restore an old configuration backup.
in 7.9.2009/testing
:
During development I found a little regression bug:
é
)Workaround:
Thanks to @nrauso for reporting a regression while restoring the DC
Sep 30 10:47:34 mynscom7 esmith::event[3114]: ---> Package ns-samba.x86_64 0:4.16.5-1.ns7 will be installed
Sep 30 10:47:34 mynscom7 esmith::event[3114]: --> Processing Dependency: libgnutls.so.30(GNUTLS_3_4)(64bit) for package: ns-samba-4.16.5-1.ns7.x86_64
Sep 30 10:47:34 mynscom7 esmith::event[3114]: --> Processing Dependency: libgnutls.so.30(GNUTLS_3_6_10)(64bit) for package: ns-samba-4.16.5-1.ns7.x86_64
Sep 30 10:47:34 mynscom7 esmith::event[3114]: --> Processing Dependency: libgnutls.so.30(GNUTLS_3_6_3)(64bit) for package: ns-samba-4.16.5-1.ns7.x86_64
Sep 30 10:47:34 mynscom7 esmith::event[3114]: --> Processing Dependency: libgnutls.so.30()(64bit) for package: ns-samba-4.16.5-1.ns7.x86_64
Sep 30 10:47:34 mynscom7 esmith::event[3114]: --> Finished Dependency Resolution
Sep 30 10:47:34 mynscom7 esmith::event[3114]: Error: Package: ns-samba-4.16.5-1.ns7.x86_64 (/ns-samba-M6f19bog5.x86_64)
Sep 30 10:47:34 mynscom7 esmith::event[3114]: Requires: libgnutls.so.30()(64bit)
Sep 30 10:47:34 mynscom7 esmith::event[3114]: Error: Package: ns-samba-4.16.5-1.ns7.x86_64 (/ns-samba-M6f19bog5.x86_64)
Sep 30 10:47:34 mynscom7 esmith::event[3114]: Requires: libgnutls.so.30(GNUTLS_3_6_3)(64bit)
Sep 30 10:47:34 mynscom7 esmith::event[3114]: Error: Package: ns-samba-4.16.5-1.ns7.x86_64 (/ns-samba-M6f19bog5.x86_64)
Sep 30 10:47:34 mynscom7 esmith::event[3114]: Requires: libgnutls.so.30(GNUTLS_3_6_10)(64bit)
Sep 30 10:47:34 mynscom7 esmith::event[3114]: Error: Package: ns-samba-4.16.5-1.ns7.x86_64 (/ns-samba-M6f19bog5.x86_64)
Sep 30 10:47:34 mynscom7 esmith::event[3114]: Requires: libgnutls.so.30(GNUTLS_3_4)(64bit)
Sep 30 10:47:34 mynscom7 esmith::event[3114]: You could try using --skip-broken to work around the problem
Sep 30 10:47:34 mynscom7 esmith::event[3114]: You could try running: rpm -Va --nofiles --nodigest
Edit: updated test case 3
Test case 1: verified Test case 2: verified Test case 3 (with the new nethserver-backup-config package): verified
bonus track 1: tested GPOs deployment, too bonus track 2: tested Account Provider upgrade in the NethServer upgrade procedure scenario bonus track 3: tested Windows 10 retrocompatibility
I had an issue with Webtop, symptom login failed:
2022-10-03 09:59:25 [ERROR] c.s.s.auth.directory.LdapDirectory - LdapError
org.ldaptive.LdapException: javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 531, v1db1]
at org.ldaptive.provider.ProviderUtils.throwOperationException(ProviderUtils.java:55)
at org.ldaptive.provider.jndi.JndiConnection.processNamingException(JndiConnection.java:619)
at org.ldaptive.provider.jndi.JndiConnection.simpleBind(JndiConnection.java:261)
at org.ldaptive.provider.jndi.JndiConnection.bind(JndiConnection.java:203)
at org.ldaptive.BindOperation.invoke(BindOperation.java:28)
This is the procedure I applied to downgrade the RPM from testing:
yum downgrade --noplugins nethserver-dc
systemctl stop nsdc
cd /var/lib/machines/ ; mv nsdc nsdc.old
restore-config
The authentication exception refers to user ldapservice
.
The error code 531
leads to this PR https://github.com/NethServer/nethserver-dc/pull/71
By removing its userWorkstations
attribute, the login succeedes. In nsdc shell run
$ ldbmodify -v -i -H /var/lib/samba/private/sam.ldb <<EOF
dn: CN=ldapservice,CN=Users,DC=ad,DC=dp,DC=nethserver,DC=net
changetype: modify
replace: userWorkstations
EOF
in 7.9.2009/testing
:
Test case 4
Test case 4: verified
Tested on suggested packages, even in disaster recovery
scenario.
Tried:
Samba 4.9
to Samba 4.16
: okSamba 4.16
to Samba 4.16
: okSamba 4.9
to Samba 4.9
for retrocompatibility (using new backup-config
package): ok@DavidePrincipi: Thanks for this big improvement that I have requested a long time ago!
It was reported a regression of the backup-data
command/procedure.
In /var/log/backup/*.log
Ran into unknown state (hex char: 29) at /usr/share/perl5/vendor_perl/NethServer/Backup.pm line 252.
The backup ends with success. The message is only annoying.
The message originates from the upstream bug https://rt.cpan.org/Public/Bug/Display.html?id=91150, since Samba DC 4.16 processes use )
in their titles. For instance run:
ps -afx -o pid,comm | grep -- \)
Older bug (related) https://rt.cpan.org/Public/Bug/Display.html?id=61946
Packages:
See also
https://community.nethserver.org/t/ran-into-unknown-state-from-backup-pm-line-252/20840
In nethserver-testing
After update to 22H2, Windows 11 clients cannot join or log in anymore to AD domain.
Steps to reproduce
Expected behavior
Join the domain / continue to log in.
Actual behavior
The Windows client cannot join the domain. If the client was already joined, the user cannot login.
Components
nethserver-dc-1.8.4-1.ns7.x86_64
See also