| Port details |
- samba424 Free SMB/CIFS and AD/DC server and client for Unix
- 4.24.7_2 net
=1 4.24.7Version of this port present on the latest quarterly branch. - Maintainer: samba@FreeBSD.org
 - Port Added: 2026-08-26 07:36:07
- Last Update: 2026-10-07 05:34:25
- Commit Hash: 1104ee4
- People watching this port, also watch:: p5-OrePAN2, py312-pycparser, ladspa, p5-Net-HTTP, python
- License: GPLv3+
- WWW:
- https://gitlab.com/samba-freebsd/
- Description:
- Samba4 is an attempt to implement an Active Directory compatible Domain
Controller.
In short, you can join a WinNT, Win2000, WinXP or Win 2003 - 2016 member
server to a Samba4 domain, and it will behave much as it does in AD,
including Kerberos domain logins where applicable.
¦ ¦ ¦ ¦ 
- Manual pages:
-
- pkg-plist: as obtained via:
make generate-plist - USE_RC_SUBR (Service Scripts)
-
- Dependency lines:
-
- Conflicts:
- CONFLICTS_INSTALL:
- To install the port:
- cd /usr/ports/net/samba424/ && make install clean
- To add the package, run one of these commands:
- pkg install net/samba424
- pkg install samba424
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: samba424
- Flavors: there is no flavor information for this port.
- distinfo:
- TIMESTAMP = 1789549136
SHA256 (samba-4.24.7.tar.gz) = 45b7747a47452eff2b2159a44cc63eb43690d339fd1069088e023a015fed06c7
SIZE (samba-4.24.7.tar.gz) = 43450847
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- jansson>=2.10 : devel/jansson
- libarchive>=3.1.2 : archivers/libarchive
- libtasn1>=3.8 : security/libtasn1
- p5-Parse-Yapp>=0 : devel/p5-Parse-Yapp
- lmdb0>=0.9.16<1 : databases/lmdb0
- py312-dnspython>=2.2.1 : dns/py-dnspython@py312
- py312-markdown>=3.3.7 : textproc/py-markdown@py312
- cmocka>=1.1.3 : sysutils/cmocka
- talloc244>=2.4.4 : devel/talloc244
- tdb1415>=1.4.15 : databases/tdb1415
- tevent017>=0.17.1 : devel/tevent017
- docbook.xsl : textproc/docbook-xsl
- xsltproc : textproc/libxslt
- gettext-runtime>=0.26 : devel/gettext-runtime
- pkgconf>=1.3.0_1 : devel/pkgconf
- bison : devel/bison
- python3.12 : lang/python312
- perl5>=5.42.r<5.43 : lang/perl5.42
- Test dependencies:
-
- bash : shells/bash
- tshark : net/wireshark@nox11
- cmocka>=1.1.3 : sysutils/cmocka
- python3.12 : lang/python312
- Runtime dependencies:
-
- jansson>=2.10 : devel/jansson
- libarchive>=3.1.2 : archivers/libarchive
- libtasn1>=3.8 : security/libtasn1
- lmdb0>=0.9.16<1 : databases/lmdb0
- py312-dnspython>=2.2.1 : dns/py-dnspython@py312
- py312-markdown>=3.3.7 : textproc/py-markdown@py312
- talloc244>=2.4.4 : devel/talloc244
- tdb1415>=1.4.15 : databases/tdb1415
- tevent017>=0.17.1 : devel/tevent017
- python3.12 : lang/python312
- Library dependencies:
-
- libgcrypt.so : security/libgcrypt
- libgnutls.so : security/gnutls
- libiconv.so : converters/libiconv
- libicui18n.so : devel/icu
- libicuuc.so : devel/icu
- libinotify.so : devel/libinotify
- libpopt.so : devel/popt
- libreadline.so : devel/readline
- libsunacl.so : sysutils/libsunacl
- libunwind.so : devel/libunwind
- libavahi-client.so : net/avahi-app
- libfam.so.0 : devel/gamin
- libintl.so : devel/gettext-runtime
- libldap.so.2 : databases/openldap26-client
- There are no ports dependent upon this port
Configuration Options:
- ===> The following configuration options are available for samba424-4.24.7_2:
ADS=on: Active Directory client
AD_DC=on: Active Directory Domain Controller(implies PYTHON3)
CLUSTER=off: Clustering support
CUPS=off: CUPS printing system support
DOCS=on: Build and/or install documentation
FAM=on: File Alteration Monitor
GPGME=off: GpgME support
LDAP=on: LDAP client
MANPAGES=on: Build and/or install manual pages
PROFILE=on: Profiling data
PYTHON3=on: Python 3.x bindings or support
QUOTAS=on: Disk quota support
SYSLOG=on: Syslog logging support
UTMP=on: UTMP accounting
====> Bundled dependencies
BUNDLED_CMOCKA=off: Bundle cmocka instead of depending on a standalone port
BUNDLED_TALLOC=off: Bundle talloc instead of depending on a standalone port
BUNDLED_TDB=off: Bundle TDB instead of depending on a standalone port
BUNDLED_TEVENT=off: Bundle Tevent instead of depending on a standalone port
====> Testing, debugging, and development
DEVELOPER=off: With developer framework
MEMORY_DEBUG=off: Debug memory allocator
TEST=off: Build and/or run tests
====> VFS modules
FRUIT=on: MacOSX and TimeMachine support
GLUSTERFS=off: GlusterFS support
====> GSSAPI Security API support: you have to select exactly one of them
GSSAPI_BUILTIN=on: GSSAPI support via bundled Heimdal
GSSAPI_MIT=off: GSSAPI support via security/krb5
====> Zero configuration networking: you have to select exactly one of them
AVAHI=on: Zeroconf support via Avahi
MDNSRESPONDER=off: Zeroconf support via mDNSResponder
ZEROCONF_NONE=off: Zeroconf support is absent
====> LMDB version to use: you can only select none or one of them
LMDB0=on: Use LMDB 0.9 library
LMDB1=off: Use LMDB 1.0 library
===> Use 'make config' to modify these settings
- Options name:
- net_samba424
- USES:
- compiler:c++11-lang cpe gettext-runtime iconv localbase:ldflags ncurses perl5 pkgconfig samba:self shebangfix waf bison ldap python
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|
| Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
| Commit | Credits | Log message |
4.24.7_2 07 Oct 2026 05:34:25
    |
Xavier Beaudouin (kiwi)  Author: Jordan Ostreff |
net/samba424: add LMDB selection options (LMDB0 / LMDB1)
This patch introduces a new radio option group (LMDBG1) to allow
selecting between LMDB 0.9 (databases/lmdb0) and LMDB
1.0 (databases/lmdb), following the pattern used in mail/postfix.
Summary of changes:
- Introduced LMDBG1 radio option group with LMDB0 and LMDB1 choices.
- Kept LMDB0 (databases/lmdb0) as the default selection for backward
compatibility.
- Updated _LMDB_DEPENDS logic for AD_DC / DEVELOPER builds to respect
the selected LMDB version.
- Guarded FORTIFY_UNSAFE with .ifnmake portclippy to silence portclippy
warnings.
PR: 299146
Co-authored-by: vvd
Approved by: samba (kiwi) |
4.24.7_1 30 Sep 2026 11:16:52
    |
Xavier Beaudouin (kiwi)  |
net/samba42[234Ø: fix on ZFS STATUS_INTERNAL_ERROR, Input/output error from
vfs_freebsd.c
Replace strlcpy() to memmove() in vfs_freebsd.c.
PR: 292618
Reported by: Dave Baukus <daveb@spectralogic.com>
Sponsored by: Klara, Inc |
4.24.7 29 Sep 2026 12:36:53
    |
Xavier Beaudouin (kiwi)  Author: Jordan Ostreff |
net/samba424: update to 4.25.7
Fixes:
BUG 16097: POSIX ACL backend silently discards erros when processing NT
ACLs with non-canonical ordering
BUG 16225: dns client problems related to EDNS usage
BUG 15988: Samba internal DNS service doesn't handle switch from UDP to TCP
when packet is larger than 4k
BUG 15988: Samba internal DNS service doesn't handle switch from UDP to TCP
when packet is larger than 4k
BUG 16194: autobuild failures need to be reported in a more verbose way
BUG 16223: DNS scavenging happens even if fAging is FALSE
BUG 16226: samba-tool dns zoneoptions $DC_SERVER_IP
_msdcs.addom.samba.example.com -P --aging=1 gives
WERR_INTERNAL_DB_ERROR
BUG 16144: Incorrect behavior on stream create-disposition when prior
handle is closed
BUG 16082: An inactive node can run recovery resulting in inconsistent
databases
BUG 16225: dns client problems related to EDNS usage
BUG 16225: dns client problems related to EDNS usage
PR: 298432
Approved by: samba (kiwi) |
4.24.6_6 29 Sep 2026 10:26:37
    |
Xavier Beaudouin (kiwi)  Author: Michael Osipov |
net/samba424: restore missing FreeBSD fdescfs support in lib/system.c
net/samba419, net/samba420, net/samba422 and net/samba423 all carried
a patch (originally 0028-s3-lib-system-add-FreeBSD-proc_fd_pattern.patch
by Timur I. Bakeyev, adapted for Samba 4.20 by Andrea Venturoli) that
teaches sys_have_proc_fds()/sys_proc_fd_path() in source3/lib/system.c
to recognize FreeBSD's fdescfs mount as an equivalent to Linux's
/proc/self/fd. This patch was dropped when net/samba424 was created
and was never carried forward.
Without it, upstream's sys_have_proc_fds() only ever checks
"/proc/self/fd/0", which does not exist on stock FreeBSD, so
fsp->fsp_flags.have_proc_fds is always false. That flag gates the
race-free pathref-fd-to-path resolution branches in
patch-source3_modules_vfs__zfsacl.c and patch-source3_modules_vfs__freebsd.c, (Only the first 15 lines of the commit message are shown above ) |
4.24.6_5 29 Sep 2026 09:36:09
    |
Xavier Beaudouin (kiwi)  Author: Michael Osipov |
net/samba424: fix sys_proc_fd_path() buffer type in vfs_freebsd.c
At all 5 call sites, vfs_freebsd.c declared a plain "char buf[PATH_MAX]"
and passed its address to sys_proc_fd_path(fd, &buf). Samba 4.24
changed that function's signature to
"char *sys_proc_fd_path(int fd, struct sys_proc_fd_path_buf *buf)",
so "&buf" here has type "char (*)[PATH_MAX]", not the expected
"struct sys_proc_fd_path_buf *" - a type mismatch left over from an
incomplete migration of this patch to the new API (the sibling
patch-source3_modules_vfs__zfsacl.c was already updated correctly).
Change all 5 declarations to "struct sys_proc_fd_path_buf buf;" to
match the current signature.
PR: 298884
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Approved by: samba (kiwi) |
4.24.6_4 29 Sep 2026 08:08:12
    |
Xavier Beaudouin (kiwi)  Author: Michael Osipov |
net/samba424: fix swapped paths/targetdir args in join.py provision_fill call
patch-python_samba_provision_____init____.py extends provision_fill()'s
signature to provision_fill(..., paths, targetdir, schema=None, ...),
but the DCJoinContext call site in patch-python_samba_join.py passed
the two positional arguments in the opposite order (targetdir, paths).
This silently bound paths to a plain targetdir string and targetdir to
the ProvisionPaths object, which would raise AttributeError as soon as
provision_fill() accesses paths.netlogon/paths.sysvol.
Present identically since net/samba422 (join.py was not touched at all
in net/samba419) and carried forward unnoticed through samba423 and
samba424. Only reachable via the AD DC subdomain-join code path
(DCJoinContext), not via a fresh/root-domain provision.
PR: 298883
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Aproved by: samba (kiwi) |
4.24.6_3 29 Sep 2026 07:32:11
    |
Xavier Beaudouin (kiwi)  Author: Michael Osipov |
net/samba424: fix dropped %%GDB_CMD%% and %%SAMBA4_CONFIG%% placeholders
patch-buildtools_scripts_abi__gen.sh hardcoded the abi_gen.sh gdb
invocation to "true" instead of the %%GDB_CMD%% placeholder that the
port's post-patch target substitutes via _GDB_CMD. This made the
Makefile's REINPLACE_CMD for %%GDB_CMD%% a dead no-op and silently
disabled real gdb-based ABI/symbol-version checking under the
DEVELOPER option, even though the devel/gdb dependency is still pulled
in for that option.
patch-dynconfig_wscript hardcoded the CONFIGFILE path to smb4.conf
instead of the %%SAMBA4_CONFIG%% placeholder, making the corresponding
REINPLACE_CMD for %%SAMBA4_CONFIG%% a dead no-op too. Harmless in
practice since _SAMBA_CONFIG already equals smb4.conf, but it silently
removes the ability to reconfigure the config file name through the
mechanism the Makefile provides for it.
Restore both placeholders so the existing substitution logic in the
Makefile actually takes effect again.
PR: 298882
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Approved by: samba (kiwi) |
4.24.6_2 31 Aug 2026 03:36:48
    |
Xavier Beaudouin (kiwi)  |
net/samba424: fix fortity and when python3 is disabled
Samba 4.24 doesn't build with Fortify feature.
When Python3 is disabled fix the cleanup commands
PR: 294595
Reported by: Rafe <mondo.debater_0q@icloud.com>
Reported by: Denis Shaposhnikov <dsh@bamus.cz>
Approved by: samba (kiwi)
Sponsored by: Klara, Inc. |
4.24.6_2 31 Aug 2026 02:45:34
    |
Xavier Beaudouin (kiwi)  |
net/samba424: fix mampage plist
vfs fruit and glusterfs had bad plist entries. This fix this.
Reported by: Paul <paul604@protonmail.ch>
Approved by: samba (kiwi)
Sponsored by: Klara, Inc. |
4.24.6_1 27 Aug 2026 09:29:18
    |
Xavier Beaudouin (kiwi)  |
net/samba424: fix building of ctdb
When using some option, the ctdb doesn't build because of
non existant ENODATA on FreeBSD.
PR: 294595
Reported by: Vladimir Druzenko
Approved by: samba (kiwi)
Sponsored by: Klara, Inc. |
4.24.6 26 Aug 2026 07:32:03
    |
Xavier Beaudouin (kiwi)  Author: Jordan Ostreff |
net/samba424: Add new port
New Samba branch 4.24
PR: 294595
Reviewed by: kiwi
Approved by: samba (kiwi) |