| Port details |
- samba422 Free SMB/CIFS and AD/DC server and client for Unix
- 4.22.3_2 net
=0 Package not present on quarterly.This port was created during this quarter. It will be in the next quarterly branch but not the current one. - Maintainer: samba@FreeBSD.org
 - Port Added: 2025-10-22 14:33:05
- Last Update: 2025-11-01 03:17:43
- Commit Hash: 6241b96
- 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:
- samba4*
- ldb-*
- ldb2[0-9]-*
- To install the port:
- cd /usr/ports/net/samba422/ && make install clean
- To add the package, run one of these commands:
- pkg install net/samba422
- pkg install samba422
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: samba422
- Flavors: there is no flavor information for this port.
- distinfo:
- TIMESTAMP = 1752217501
SHA256 (samba-4.22.3.tar.gz) = 8fd7092629a3596d935cd7567d934979f94272918ec3affd0cc807934ecf22ba
SIZE (samba-4.22.3.tar.gz) = 42869744
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
- libtasn1>=3.8 : security/libtasn1
- p5-Parse-Yapp>=0 : devel/p5-Parse-Yapp
- libarchive>=3.1.2 : archivers/libarchive
- cmocka>=1.1.3 : sysutils/cmocka
- talloc243>=2.4.3 : devel/talloc243
- tevent017>=0.17 : devel/tevent017
- tdb1413>=1.4.13 : databases/tdb1413
- lmdb>=0.9.16 : databases/lmdb
- py311-markdown>=3.3.7 : textproc/py-markdown@py311
- py311-dnspython>=2.2.1 : dns/py-dnspython@py311
- docbook.xsl : textproc/docbook-xsl
- xsltproc : textproc/libxslt
- pkgconf>=1.3.0_1 : devel/pkgconf
- gettext-runtime>=0.22_1 : devel/gettext-runtime
- bison : devel/bison
- python3.11 : lang/python311
- perl5>=5.42.r<5.43 : lang/perl5.42
- Test dependencies:
-
- bash : shells/bash
- tshark : net/wireshark@nox11
- python3.11 : lang/python311
- Runtime dependencies:
-
- jansson>=2.10 : devel/jansson
- libtasn1>=3.8 : security/libtasn1
- libarchive>=3.1.2 : archivers/libarchive
- talloc243>=2.4.3 : devel/talloc243
- tevent017>=0.17 : devel/tevent017
- tdb1413>=1.4.13 : databases/tdb1413
- lmdb>=0.9.16 : databases/lmdb
- py311-markdown>=3.3.7 : textproc/py-markdown@py311
- py311-dnspython>=2.2.1 : dns/py-dnspython@py311
- python3.11 : lang/python311
- Library dependencies:
-
- libiconv.so : converters/libiconv
- libunwind.so : devel/libunwind
- libreadline.so : devel/readline
- libpopt.so : devel/popt
- libinotify.so : devel/libinotify
- libgnutls.so : security/gnutls
- libgcrypt.so : security/libgcrypt
- libsunacl.so : sysutils/libsunacl
- libicui18n.so : devel/icu
- libicuuc.so : devel/icu
- libavahi-client.so : net/avahi-app
- libintl.so : devel/gettext-runtime
- libfam.so.0 : devel/gamin
- libldap.so.2 : net/openldap26-client
- There are no ports dependent upon this port
Configuration Options:
- ===> The following configuration options are available for samba422-4.22.3_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
====> 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
ZEROCONF_NONE=off: Zeroconf support is absent
AVAHI=on: Zeroconf support via Avahi
MDNSRESPONDER=off: Zeroconf support via mDNSResponder
===> Use 'make config' to modify these settings
- Options name:
- net_samba422
- USES:
- compiler:c++11-lang iconv localbase:ldflags perl5 pkgconfig shebangfix waf gettext-runtime fam 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.22.3_2 01 Nov 2025 03:17:43
    |
Yasuhiro Kimura (yasu)  |
net/samba422: Make ADS option imply LDAP option
If ADS option is on and LDAP option is off, build fails at configure
phase as below.
need ber_sockbuf_add_io() and LDAP_OPT_SOCKBUF for SASL and TLS support
Active Directory support not available: LDAP support is not available.
Active Directory support not found. Use --without-ads for building without
Active Directory support. ADS support improves communication with Active
Directory domain controllers.
(complete log in
/wrkdirs/usr/ports/net/samba422/work/samba-4.22.3/bin/config.log)
===> Script "configure" failed unexpectedly.
Please report the problem to samba@FreeBSD.org [maintainer] and attach the
"/wrkdirs/usr/ports/net/samba422/work/samba-4.22.3/bin/config.log" including
the output of the failure of your make command. Also, it might be a good idea
to provide an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea). (Only the first 15 lines of the commit message are shown above ) |
4.22.3_2 24 Oct 2025 00:02:25
    |
Yasuhiro Kimura (yasu)  |
net/samba422: Fix plist error after commit 6c23ee846dd4
After commit 6c23ee846dd4 plist error happens with default options
setting as below.
====> Checking for pkg-plist issues (check-plist)
===> Parsing plist
===> Checking for items in STAGEDIR missing from pkg-plist
===> Checking for items in pkg-plist which are not in STAGEDIR
Error: Missing: lib/samba4/modules/ldb/ldap.so
===> Error: Plist issues found.
*** Error code 1
Stop.
make: stopped in /usr/ports/net/samba422
While here, use %%SAMBA4_MODULEDIR%% for path of
lib/samba4/modules/ldb/ldap.so and sort plist.
Fixes: 6c23ee846dd4 net/samba422: Fix plist when AD_DC and LDAP are OFF |
4.22.3_2 23 Oct 2025 08:52:38
    |
Mateusz Piotrowski (0mp)  |
net/samba422: Fix pkg-plist when building without PYTHON3
The build fails at the packaging step because it tries to
include a file that doesn't exist without PYTHON3.
PR: 290439
Reported by: Toshimichi Masubuchi
Sponsored by: Klara, Inc. (0mp)
Co-authored-by: Toshimichi Masubuchi <t.masub@gmail.com> |
4.22.3_1 23 Oct 2025 08:52:38
    |
Mateusz Piotrowski (0mp)  |
net/samba422: Fix plist when AD_DC and LDAP are OFF
PR: 290441
Reported by: Trond Endrestøl
Sponsored by: Klara, Inc. (0mp)
Co-authored-by: Trond Endrestøl <Trond.Endrestol@ximalas.info> |
4.22.3 22 Oct 2025 14:24:59
    |
Mateusz Piotrowski (0mp)  |
net/samba422: Do not keep ldb private
Since version 4.22, Samba requires ldb to be bundled. This is
problematic for packaging because ldb is also used by ports such as
security/sssd2. In the past, we used a standalone ldb port to address
that.
Luckily, it turns out that Samba can turn its private libraries into
public ones via its configure script. This commit makes Samba's ldb
public.
PR: 289272
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D52377 |
4.22.3 22 Oct 2025 14:24:37
    |
Mateusz Piotrowski (0mp)  |
net/samba422: Update to 4.22.3
Most of this patch is Andrej Ebert's work. I fixed some of the remaining
issues and prepared it for landing in the ports tree under sponsorship
from Klara, Inc.
Changes in the port include:
- There's an unconditional dependency on devel/icu now,
since Samba pulls it in if it's in the build environment and
complains afterwards if icu is bumped without a Samba rebuild.
- Remove GSSAPI Builtin converters/p5-JSON build dependency,
it's not needed since 4.20 as per upstream:
https://www.samba.org/samba/history/samba-4.20.0.html (Only the first 15 lines of the commit message are shown above ) |
4.20.7_10 22 Oct 2025 14:23:29
    |
Mateusz Piotrowski (0mp)  |
net/samba422: Repocopy from net/samba420
PR: 287985
Reported by: Andrej Ebert <andrej@ebert.su>
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D52167 |