BSD Ports

net/samba425 4.25.0_5 FreeBSD

Free SMB/CIFS and AD/DC server and client for Unix

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Port added
Last update
Commit
d5267ac859
License
GPLv3+
Categories
net
Package size
16439.0 KiB, 93556.3 KiB installed

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.

Install

Binary package:

pkg install samba425

From the ports tree:

cd /usr/ports/net/samba425/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	samba425>0:net/samba425

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest4.25.04.25.0_1--4.25.0_4
FreeBSD:14:quarterly--n/a--
FreeBSD:15:latest4.25.0_14.25.0_4n/a--
FreeBSD:15:quarterly--n/an/an/a
FreeBSD:16:latest-4.25.0_4n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

Library 10

Test 2

The full lists below include those, and their dependencies in turn.

Build dependencies 95
Run dependencies 79

No port depends on this one.

Configuration

Options name: net_samba425

OptionDefaultDescription
ADSonActive Directory client
AD_DConActive Directory Domain Controller(implies PYTHON3)
AVAHIonZeroconf support via Avahi
BUNDLED_CMOCKAoffBundle cmocka instead of depending on a standalone port
BUNDLED_TALLOCoffBundle talloc instead of depending on a standalone port
BUNDLED_TDBoffBundle TDB instead of depending on a standalone port
BUNDLED_TEVENToffBundle Tevent instead of depending on a standalone port
CLUSTERoffClustering support
CUPSoffCUPS printing system support
DEVELOPERoffWith developer framework
DOCSonBuild and/or install documentation
FAMonFile Alteration Monitor
FRUITonMacOSX and TimeMachine support
GLUSTERFSoffGlusterFS support
GPGMEoffGpgME support
GSSAPI_BUILTINonGSSAPI support via bundled Heimdal
GSSAPI_MIToffGSSAPI support via security/krb5
LDAPonLDAP client
LMDB0onUse LMDB 0.9 library
LMDB1offUse LMDB 1.0 library
MANPAGESonBuild and/or install manual pages
MDNSRESPONDERoffZeroconf support via mDNSResponder
MEMORY_DEBUGoffDebug memory allocator
PROFILEonProfiling data
PYTHON3onPython 3.x bindings or support
QUOTASonDisk quota support
SYSLOGonSyslog logging support
TESToffBuild and/or run tests
UTMPonUTMP accounting
ZEROCONF_NONEoffZeroconf support is absent
USES
compiler:c++11-lang cpe gettext-runtime iconv localbase:ldflags ncurses perl5 pkgconfig samba:self shebangfix waf
Service scripts
samba_server
Conflicts with
ldb2[0-9]-* samba4*

Message after installing

How to start: http://wiki.samba.org/index.php/Samba4/HOWTO

* Your configuration is: /usr/local/etc/smb4.conf

* All the relevant databases are under: /var/db/samba4

* All the logs are under: /var/log/samba4

* Provisioning script is: /usr/local/bin/samba-tool

For the working DNS updates you will need to either build dns/bind9*
with the enabled GSSAPI(GSSAPI_MIT5 is recommended) or install
dns/samba-nsupdate package, which is preconfigured with such a support.

You will need to specify location of the 'nsupdate' command in the
smb4.conf file:

    nsupdate command = /usr/local/bin/samba-nsupdate -g

For additional documentation check: https://wiki.samba.org/index.php/User_Documentation

Port related bug reports can go to the https://gitlab.com/samba-freebsd/ports/-/issues or
to the FreeBSD Bugzilla https://bugs.freebsd.org/

All Samba related bug reports should go to the: https://bugzilla.samba.org/

Files

Manual pages 117
  • cifsdd(8)
  • dbwrap_tool(1)
  • eventlogadm(8)
  • gentest(1)
  • idmap_ad(8)
  • idmap_autorid(8)
  • idmap_hash(8)
  • idmap_ldap(8)
  • idmap_nss(8)
  • idmap_rfc2307(8)
  • idmap_rid(8)
  • idmap_script(8)
  • idmap_tdb(8)
  • idmap_tdb2(8)
  • ldb(3)
  • ldbadd(1)
  • ldbdel(1)
  • ldbedit(1)
  • ldbmodify(1)
  • ldbrename(1)
  • ldbsearch(1)
  • libsmbclient(7)
  • lmhosts(5)
  • locktest(1)
  • log2pcap(1)
  • masktest(1)
  • mdsearch(1)
  • mvxattr(1)
  • ndrdump(1)
  • net(8)
  • nmbd(8)
  • nmblookup(1)
  • ntlm_auth(1)
  • oLschema2ldif(1)
  • pam_winbind(8)
  • pam_winbind.conf(5)
  • pdbedit(8)
  • profiles(1)
  • regdiff(1)
  • regpatch(1)
  • regshell(1)
  • regtree(1)
  • rpcclient(1)
  • samba(7)
  • samba(8)
  • samba-bgqd(8)
  • samba-dcerpcd(8)
  • samba-log-parser(1)
  • samba-regedit(8)
  • samba-talloc(3)
  • samba-tdbbackup(8)
  • samba-tdbdump(8)
  • samba-tdbrestore(8)
  • samba-tdbtool(8)
  • samba-tool(8)
  • samba_downgrade_db(8)
  • sharesec(1)
  • smb.conf(5)
  • smb4.conf(5)
  • smbcacls(1)
  • smbclient(1)
  • smbcontrol(1)
  • smbcquotas(1)
  • smbd(8)
  • smbget(1)
  • smbpasswd(5)
  • smbpasswd(8)
  • smbspool(8)
  • smbspool_krb5_wrapper(8)
  • smbstatus(1)
  • smbtar(1)
  • smbtree(1)
  • testparm(1)
  • traffic_learner(7)
  • traffic_replay(7)
  • vfs_acl_tdb(8)
  • vfs_acl_xattr(8)
  • vfs_aio_fork(8)
  • vfs_aio_pthread(8)
  • vfs_aio_ratelimit(8)
  • vfs_audit(8)
  • vfs_cacheprime(8)
  • vfs_cap(8)
  • vfs_catia(8)
  • vfs_commit(8)
  • vfs_crossrename(8)
  • vfs_default_quota(8)
  • vfs_dirsort(8)
  • vfs_expand_msdfs(8)
  • vfs_extd_audit(8)
  • vfs_fake_perms(8)
  • vfs_freebsd(8)
  • vfs_full_audit(8)
  • vfs_linux_xfs_sgid(8)
  • vfs_media_harmony(8)
  • vfs_offline(8)
  • vfs_preopen(8)
  • vfs_readahead(8)
  • vfs_readonly(8)
  • vfs_recycle(8)
  • vfs_shadow_copy(8)
  • vfs_shadow_copy2(8)
  • vfs_shell_snap(8)
  • vfs_streams_depot(8)
  • vfs_streams_xattr(8)
  • vfs_syncops(8)
  • vfs_time_audit(8)
  • vfs_unityed_media(8)
  • vfs_virusfilter(8)
  • vfs_widelinks(8)
  • vfs_worm(8)
  • vfs_xattr_tdb(8)
  • vfs_zfsacl(8)
  • wbinfo(1)
  • winbind_krb5_locator(8)
  • winbindd(8)
  • wspsearch(1)
pkg-plist 480
  • bin/cifsdd
  • bin/dbwrap_tool
  • bin/dumpmscat
  • bin/gentest
  • bin/locktest
  • bin/masktest
  • bin/mdsearch
  • bin/mvxattr
  • bin/ndrdump
  • bin/net
  • bin/nmblookup
  • bin/ntlm_auth
  • bin/oLschema2ldif
  • bin/pdbedit
  • bin/profiles
  • bin/regdiff
  • bin/regpatch
  • bin/regshell
  • bin/regtree
  • bin/rpcclient
  • bin/samba-log-parser
  • bin/samba-regedit
  • bin/samba-tool
  • bin/sharesec
  • bin/smbcacls
  • bin/smbclient
  • bin/smbcontrol
  • bin/smbcquotas
  • bin/smbget
  • bin/smbpasswd
  • bin/smbspool
  • bin/smbstatus
  • bin/smbtar
  • bin/smbtree
  • bin/testparm
  • bin/vfstest
  • bin/wbinfo
  • bin/wspsearch
  • sbin/eventlogadm
  • sbin/nmbd
  • sbin/smbd
  • sbin/winbindd
  • include/samba4/credentials.h
  • include/samba4/dcerpc.h
  • include/samba4/gen_ndr/ndr_samr_c.h
  • include/samba4/ldb.h
  • include/samba4/ldb_errors.h
  • include/samba4/ldb_handlers.h
  • include/samba4/ldb_module.h
  • include/samba4/ldb_version.h
  • include/samba4/param.h
  • include/samba4/policy.h
  • include/samba4/util/tevent_ntstatus.h
  • include/samba4/util/tevent_unix.h
  • include/samba4/util/tevent_werror.h
  • include/samba4/util/talloc_keep_secret.h
  • include/samba4/charset.h
  • include/samba4/core/doserr.h
  • include/samba4/core/error.h
  • include/samba4/core/hresult.h
  • include/samba4/core/ntstatus_gen.h
  • include/samba4/core/ntstatus.h
  • include/samba4/core/werror_gen.h
  • include/samba4/core/werror.h
  • include/samba4/smb_ldap.h
  • include/samba4/smbldap.h
  • include/samba4/dcesrv_core.h
  • include/samba4/domain_credentials.h
  • include/samba4/gen_ndr/atsvc.h
  • include/samba4/gen_ndr/auth.h
  • include/samba4/gen_ndr/claims.h
  • include/samba4/gen_ndr/dcerpc.h
  • include/samba4/gen_ndr/drsblobs.h
  • include/samba4/gen_ndr/drsuapi.h
  • include/samba4/gen_ndr/krb5pac.h
  • include/samba4/gen_ndr/lsa.h
  • include/samba4/gen_ndr/misc.h
  • include/samba4/gen_ndr/nbt.h
  • include/samba4/gen_ndr/ndr_atsvc.h
  • include/samba4/gen_ndr/ndr_dcerpc.h
  • include/samba4/gen_ndr/ndr_drsblobs.h
  • include/samba4/gen_ndr/ndr_drsuapi.h
  • include/samba4/gen_ndr/ndr_krb5pac.h
  • include/samba4/gen_ndr/ndr_misc.h
  • include/samba4/gen_ndr/ndr_nbt.h
  • include/samba4/gen_ndr/ndr_samr.h
  • include/samba4/gen_ndr/ndr_svcctl_c.h
  • include/samba4/gen_ndr/ndr_svcctl.h
  • include/samba4/gen_ndr/netlogon.h
  • include/samba4/gen_ndr/samr.h
  • include/samba4/gen_ndr/security.h
  • include/samba4/gen_ndr/server_id.h
  • include/samba4/gen_ndr/svcctl.h
  • include/samba4/ldb_wrap.h
  • include/samba4/libsmbclient.h
  • include/samba4/lookup_sid.h
  • include/samba4/machine_sid.h
  • include/samba4/ndr.h
  • include/samba4/ndr/ndr_dcerpc.h
  • include/samba4/ndr/ndr_drsblobs.h

The first 100 are listed.

distinfo 1
FileSizeSHA256
samba-4.25.0.tar.gz4.3571277e+072e2cb7296833b35b8f7a7fb76045e0c57adc0c2cd03264b37df5d58e40f28437
Master sites 2
  • SAMBA/samba/stable
  • SAMBA/samba/rc

Commit history 7

DateCommitCreditsLog message
d5267ac859 Xavier Beaudouin net/samba4*: fix lmdb breakage
PR: 299660 Reported by: Matthew Wener <[email protected]> Sponsored by: Klara, Inc.
85ba298b7e Baptiste Daroussin databases/lmdb: allow to install both 0.x and 1.x together
LMDB 1.0 and the legacy 0.9 ABI cannot be mixed, the datanase format are incompatibles as well. Rename or relocate everything databases/lmdb0 installs so that it no longer overlaps with databases/lmdb: - the utilities are now mdb_copy0, mdb_dump0, mdb_load0 and mdb_stat0 - the header is include/lmdb0/lmdb.h - the linker name is liblmdb0.so, the shared object keeps its ABI name liblmdb.so.0 so already linked programs are unaffected - the pkg-config file is lmdb0.pc A compatibility prefix holding the previous layout is also installed under ${PREFIX}/lmdb0/ (include/, lib/ and libdata/pkgconfig/) so that build systems which expect to find lmdb.h and -llmdb relative to a single directory only need a path change. Now all ports should migrate to lmdb 1.X and use the lmdb 0.9 port to ease …
c33a58c521 Dimitry Andric net/samba425: avoid SIGFPE in streams_xattr_get_ea_value_fsp
As reported in https://bugzilla.samba.org/show_bug.cgi?id=16278, upstream commit 5fa43440ebd3 ("vfs: Implement larger streams in multiple xattrs"), results in many signal 8 (SIGFPE) crashes in smbd child processes on FreeBSD, if the streams_xattr vfs module is loaded. This is because streams_xattr_get_ea_value_fsp() can divide by zero, if the "max xattrs per stream" is left at its default value. Apply the upstream fix to avoid the crashes. PR: 299446 Obtained from: https://gitlab.com/samba-team/samba/-/commit/21f8b339 MFH: 2026Q4 Approved by: samba (kiwi)
b3c9e621b0 Michael Osipov net/samba425: restore missing get_quota vfstest command (cmd_vfs.c)
The combined patch adding a "get_quota" command to vfstest (present identically in net/samba419, 420, 422, 423, and 424) touches two files: source3/torture/cmd_vfs.c (the command implementation and its vfs_commands[] registration) and source3/torture/wscript_build (installs vfstest instead of building it selftest-only). Only the wscript_build half survived into samba425 — the cmd_vfs.c half was dropped. Restored patch-source3_torture_cmd__vfs.c, adapted (not just copied verbatim) to the real samba-4.25.0 upstream API: SMB_VFS_GET_QUOTA() dropped its explicit conn parameter and now takes an fsp directly, and the file resolution pattern changed from synthetic_smb_fname() to synthetic_pathref()+smb_fname->fsp (mirroring the sibling …
17a68ff96c Xavier Beaudouin net/samba425: fix building with CLUSTER
PR: 299196 Sponsored by: Klara, Inc. Reported by: Vladimir Druzenko <[email protected]>

The latest 5 of 7 in the history this site was built from.