Bug 281262 (samba421) - net/samba421: Add Samba 4.21
Summary: net/samba421: Add Samba 4.21
Status: Closed Overcome By Events
Alias: samba421
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: FreeBSD Samba Team (mail alias)
URL:
Keywords:
Depends on: samba420
Blocks:
  Show dependency treegraph
 
Reported: 2024-09-04 08:23 UTC by Mateusz Piotrowski
Modified: 2025-10-22 14:39 UTC (History)
12 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mateusz Piotrowski freebsd_committer freebsd_triage 2024-09-04 08:23:26 UTC
Samba 4.21 is out:

https://wiki.samba.org/index.php/Release_Planning_for_Samba_4.21
Comment 1 Mateusz Piotrowski freebsd_committer freebsd_triage 2024-09-04 13:20:01 UTC
I took a look at the release notes. It seems like there are some changes around the handling of the LDB dependency.
Comment 2 sandeep 2025-01-03 10:12:39 UTC
Hi Mateusz/ @jhixson@FreeBSD.org

How is the samba 4.21 with respect to
0100-Fix-pathref-handling-for-FreeBSD-13plus.patch?

I am looking to build samba 4.21 on FreeBSD 13.3 as part of my work.
Thanks.
Comment 3 Michael Osipov freebsd_committer freebsd_triage 2025-01-03 18:24:51 UTC
Please note https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280533 to avoid duplicate work!
Comment 4 Mateusz Piotrowski freebsd_committer freebsd_triage 2025-01-21 14:13:23 UTC
(In reply to sandeep from comment #2)
Hey, I've not tested that yet.
Comment 5 Michael Osipov freebsd_committer freebsd_triage 2025-01-21 16:32:04 UTC
The pathref handling in 4.19 has been reverted to the default behavior with fdescfs.
Comment 6 ykla 2025-04-17 07:26:59 UTC
What's about it now?
Comment 7 Mateusz Piotrowski freebsd_committer freebsd_triage 2025-04-17 09:13:02 UTC
(In reply to ykla from comment #6)
I've not heard of any progress on this PR since the last comment.  Are you working on it?
Comment 8 Jack 2025-06-23 10:35:54 UTC
samba 4.22 is out now
Comment 9 Michael Osipov freebsd_committer freebsd_triage 2025-06-23 10:40:50 UTC
(In reply to Jack from comment #8)

That's depressing. Either they are moving too fast or we too slow. It took me quite some time to make 4.19 working...I don't consider 4.20 as really usable (IMHO).
Comment 10 Jack 2025-06-23 10:46:48 UTC
(In reply to Michael Osipov from comment #9)
yea, 4.20 seems to be broken, i had to revert back to 4.19 and was hoping the newer versions would have better success
Comment 11 Michael Osipov freebsd_committer freebsd_triage 2025-06-23 10:56:34 UTC
(In reply to Jack from comment #10)

I wouldn't assume that because there is a huge bunch patches we apply downstream and they all need to reviewed for 4.22. Hard work.
Comment 12 ml 2025-06-23 11:41:36 UTC
(In reply to Jack from comment #10)

That's not going to happen magically.
Until all the patches we have are fixed for 4.20 and ported to 4.21, hoping 4.21 would work out of the box is an illusion.

Also, IMHO, we are lacking some sort of test suite that can ensure we don't fall into regressions.
I have no idea, unfortunately, on how to create it.
Comment 13 ykla 2025-06-23 21:36:01 UTC
I believe the issue might be that most CI systems don't support FreeBSD, such as GitHub, GitLab, and some self-hosted CI platforms. Could the FreeBSD Foundation possibly engage in active and effective outreach?
Comment 14 ml 2025-07-08 09:35:30 UTC
(In reply to ml from comment #12)

Today two new versions of Samba were released (4.21.7 and 4.21.8): this was needed as MS changed the way their DCs work, so any older Samba AD member won't work anymore with a MS DC.
I'm not sure Samba 4.20 will ever be patched for this.

I've got Samba 4.20 working (see #284623).
Perhaps the same could be applied to 4.21?

Luckily I don't work with any MS AD DC, but if someone does, it would be interesting if [s]he could try and report back.
Comment 15 Patrik Hildingsson 2025-07-29 06:20:58 UTC
(In reply to ml from comment #14)
I do have MS AD DC and I can confirm that winbind stopped working after I applied the July 2025 patch to the DC.
Comment 16 dewayne 2025-08-15 02:49:36 UTC
(In reply to ml from comment #14)
FYI I believe that there is an unofficial patch for 4.20.  There's also some discussion re earlier (ie unsupported) versions.

Useful links:
https://www.samba.org/samba/history/samba-4.22.3.html 
https://bugzilla.samba.org/show_bug.cgi?id=15876
https://attachments.samba.org/attachment.cgi?id=18670
Comment 17 Mateusz Piotrowski freebsd_committer freebsd_triage 2025-10-22 14:39:24 UTC
4.22 has landed. I'm closing this ticket as overcome by events since it is unlikely that the FreeBSD Samba Team will spend cycles porting 4.21 at this point.