BSD Ports

net/samba419 4.19.9_2 MidnightBSD

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

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Last update
Commit
895d6f76b9
License
gpl3+
Categories
net

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.

In the other systems

SystemPortVersion
MidnightBSDnet/samba4194.19.9_2
FreeBSDnet/samba4194.19.9_14
GhostBSDnet/samba4194.19.9_13

Install

Binary package:

mport install samba419

From mports:

cd /usr/mports/net/samba419 && make install clean

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

RUN_DEPENDS=	samba419>0:net/samba419

Dependencies

As this port's Makefile names them.

Build 4

Library 8

Runtime 3

Test 2

Build dependencies 12
Run dependencies 11

No port depends on this one.

Configuration

Options name: net_samba419

OptionDefaultDescription
ADSonActive Directory client(implies LDAP)
AD_DConActive Directory Domain Controller(implies PYTHON3)
AVAHIon
CLUSTERoffClustering support
CUPSoff
DOCSon
FAMonFile Alteration Monitor
FRUITonMacOSX and TimeMachine support
GLUSTERFSoffGlusterFS support
GPGMEoffGpgME support
GSSAPI_BUILTINonGSSAPI support via bundled Heimdal
GSSAPI_MIToff
LDAPonLDAP client
MANPAGESon
MDNSRESPONDERoff
PROFILEonProfiling data
PYTHON3on
QUOTASonDisk quota support
SYSLOGon
UTMPonUTMP accounting
ZEROCONF_NONEoffZeroconf support is absent
USES
cpe compiler:c++11-lang iconv localbase:ldflags perl5 pkgconfig shebangfix waf gettext-runtime
Service scripts
samba_server
Conflicts with
samba4*

Files

Manual pages 114
  • 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)
  • 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-ldbadd(1)
  • samba-ldbdel(1)
  • samba-ldbedit(1)
  • samba-ldbmodify(1)
  • samba-ldbrename(1)
  • samba-ldbsearch(1)
  • 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_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)
pkg-plist 463
  • 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/vlp
  • bin/wbinfo
  • sbin/eventlogadm
  • sbin/nmbd
  • sbin/smbd
  • sbin/winbindd
  • 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/credentials.h
  • include/samba4/dcerpc.h
  • include/samba4/dcesrv_core.h
  • include/samba4/smb_ldap.h
  • include/samba4/smbldap.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_c.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
  • include/samba4/ndr/ndr_drsuapi.h
  • include/samba4/ndr/ndr_krb5pac.h
  • include/samba4/ndr/ndr_nbt.h
  • include/samba4/ndr/ndr_svcctl.h
  • include/samba4/netapi.h
  • include/samba4/param.h
  • include/samba4/passdb.h
  • include/samba4/rpc_common.h
  • include/samba4/samba/session.h
  • include/samba4/samba/version.h
  • include/samba4/share.h

The first 100 are listed.

distinfo 1
FileSizeSHA256
samba-4.19.9.tar.gz4.1877221e+0771ed406444714c90bb9d36c576d807b67af15449f297e91106d42b3ca2fa5549
Master sites 2
  • SAMBA/samba/stable
  • SAMBA/samba/rc

Commit history 3

DateCommitCreditsLog message
895d6f76b9 Lucas Holt net/samba419: fix staging path doubling in post-install (#1491)
With the platform detection fixed in c608a5c175 (#1486) and `sysutils/libsunacl` updated in 9e4227c587 (#1488), `net/samba419` compiled but failed while staging: ``` ln: .../work/fake-inst-amd64/usr/mports/net/samba419/work/fake-inst-amd64/usr/local/share/man/man5/smb4.conf.5.gz: No such file or directory ``` Note the doubled path. ## Cause `Mk/components/fake/vars.mk` sets, for the fake stage: ```make FAKE_SETUP= TRUE_PREFIX=${TRUE_PREFIX} PREFIX=${FAKE_DESTDIR}${TRUE_PREFIX} ... ``` So `${PREFIX}` is *already* redirected in the plain `post-install` chain, and writing `${FAKE_DESTDIR}${PREFIX}` prefixes it a second time. The port has never built on MidnightBSD, so this was never exercised. ## What changed Dropped the redundant prefix for `${PREFIX}`, `${DOCSDIR}` and …
c608a5c175 Lucas Holt net/samba419: fix MidnightBSD platform detection and libutil clash (#1486)
Two MidnightBSD-specific build problems in `net/samba419`. **Neither is sufficient on its own to make samba build yet** — see *Status* below — but both are real, independent bugs worth fixing on their own merits. ## 1. Platform detection samba dispatches on `sys.platform`, which is **`midnightbsd4`** here, using substring tests: ```python host_os = sys.platform ... elif (host_os.rfind('freebsd') > -1): ``` `"midnightbsd4"` does not contain `"freebsd"`, so MidnightBSD **fell through every platform branch** in `source3/wscript` and `nsswitch/wscript_build`. The visible symptom was configure aborting: ``` sendfile support not found but it was requested ! ``` but it was also silently skipping: - the `FREEBSD` define - `STAT_ST_BLOCKSIZE` …
f225e7dd80 Lucas Holt net/samba4{16,19}: stop USES= from clobbering cpe
Both ports set "USES= cpe" near the top and then, ~85 lines later, assign "USES=" again with the real build dependencies. The second plain assignment overwrites the first, so cpe never reached the resolved USES and CPE_STR came out empty. The ports declared a CPE_VENDOR and CPE_PRODUCT that were never used. mport audit matches by CPE, so Samba was invisible to it. With the later assignment changed to USES+=, net/samba419 now resolves cpe:2.3:a:samba:samba:4.19.9 and the audit API reports 63 CVEs against that version, including CVE-2016-2124 and CVE-2019-10218. Checked the rest of the tree for the same pattern: the only other ports with a plain USES= after one mentioning cpe are devel/py-Jinja2, where the two assignments are in mutually exclusive .if branches, and …