FreeBSD Bugzilla – Attachment 222494 Details for
Bug 252164
net/samba413: update 4.13.1 -> 4.13.4, samba412 and 411 need updates, too
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Testing base for update to Samba 4.13.4
inofficial_samba413-OLN.shar (text/plain), 536.83 KB, created by
Harald Schmalzbauer
on 2021-02-16 18:05:52 UTC
(
hide
)
Description:
Testing base for update to Samba 4.13.4
Filename:
MIME Type:
Creator:
Harald Schmalzbauer
Created:
2021-02-16 18:05:52 UTC
Size:
536.83 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># inofficial/samba413 ># inofficial/samba413/Makefile ># inofficial/samba413/pkg-descr ># inofficial/samba413/distinfo ># inofficial/samba413/pkg-plist ># inofficial/samba413/files ># inofficial/samba413/files/patch-buildtools_wafsamba_wscript ># inofficial/samba413/files/patch-nsswitch_wscript__build ># inofficial/samba413/files/patch-buildtools_wafsamba_samba__autoconf.py ># inofficial/samba413/files/patch-source4_heimdal_lib_roken_rand.c ># inofficial/samba413/files/patch-source3_smbd_utmp.c ># inofficial/samba413/files/patch-source3_winbindd_wscript__build ># inofficial/samba413/files/man ># inofficial/samba413/files/man/ntlm_auth4.1 ># inofficial/samba413/files/man/masktest.1 ># inofficial/samba413/files/man/ltdbtool.1 ># inofficial/samba413/files/man/ldbadd.1 ># inofficial/samba413/files/man/talloc.3 ># inofficial/samba413/files/man/gentest.1 ># inofficial/samba413/files/man/regpatch.1 ># inofficial/samba413/files/man/ctdb-statistics.7 ># inofficial/samba413/files/man/tdbbackup.8 ># inofficial/samba413/files/man/ctdb-tunables.7 ># inofficial/samba413/files/man/locktest.1 ># inofficial/samba413/files/man/onnode.1 ># inofficial/samba413/files/man/ctdbd.1 ># inofficial/samba413/files/man/tdbrestore.8 ># inofficial/samba413/files/man/ctdb-script.options.5 ># inofficial/samba413/files/man/ctdbd_wrapper.1 ># inofficial/samba413/files/man/mdfind.1 ># inofficial/samba413/files/man/vfs_freebsd.8 ># inofficial/samba413/files/man/ctdb.7 ># inofficial/samba413/files/man/smbtorture.1 ># inofficial/samba413/files/man/nmblookup.1 ># inofficial/samba413/files/man/ctdb_diagnostics.1 ># inofficial/samba413/files/man/regtree.1 ># inofficial/samba413/files/man/ldbedit.1 ># inofficial/samba413/files/man/regshell.1 ># inofficial/samba413/files/man/ctdb.sysconfig.5 ># inofficial/samba413/files/man/ctdb.conf.5 ># inofficial/samba413/files/man/samba-gpupdate.8 ># inofficial/samba413/files/man/nmblookup4.1 ># inofficial/samba413/files/man/ntlm_auth.1 ># inofficial/samba413/files/man/regdiff.1 ># inofficial/samba413/files/man/ldbrename.1 ># inofficial/samba413/files/man/ldbsearch.1 ># inofficial/samba413/files/man/tdbtool.8 ># inofficial/samba413/files/man/ping_pong.1 ># inofficial/samba413/files/man/ndrdump.1 ># inofficial/samba413/files/man/oLschema2ldif.1 ># inofficial/samba413/files/man/ldbdel.1 ># inofficial/samba413/files/man/tdbdump.8 ># inofficial/samba413/files/man/ctdb.1 ># inofficial/samba413/files/man/ldbmodify.1 ># inofficial/samba413/files/patch-source3_modules_vfs__fruit.c ># inofficial/samba413/files/patch-source3_registry_tests_test__regfio.c ># inofficial/samba413/files/patch-source3_wscript ># inofficial/samba413/files/patch-buildtools_scripts_abi__gen.sh ># inofficial/samba413/files/patch-dwrap ># inofficial/samba413/files/patch-dynconfig_wscript ># inofficial/samba413/files/patch-source3_wscript__build ># inofficial/samba413/files/patch-source3_include_includes.h ># inofficial/samba413/files/patch-source3_modules_vfs__virusfilter__utils.c ># inofficial/samba413/files/patch-source4_kdc_kdc-service-mit.c ># inofficial/samba413/files/patch-buildtools_wafsamba_samba__install.py ># inofficial/samba413/files/pkg-message.in ># inofficial/samba413/files/patch-mdns ># inofficial/samba413/files/README.FreeBSD.in ># inofficial/samba413/files/patch-source3_lib_util.c ># inofficial/samba413/files/patch-lib_ldb_ldb__key__value_ldb__kv__cache.c ># inofficial/samba413/files/patch-lib_ldb_wscript ># inofficial/samba413/files/patch-lib_util_wscript__build ># inofficial/samba413/files/patch-source3_utils_net.c ># inofficial/samba413/files/patch-lib_talloc_wscript ># inofficial/samba413/files/patch-lib_talloc_talloc.c ># inofficial/samba413/files/patch-third__party_wscript ># inofficial/samba413/files/patch-lib_replace_wscript ># inofficial/samba413/files/patch-lib_tdb_wscript ># inofficial/samba413/files/patch-source3_librpc_crypto_gse.c ># inofficial/samba413/files/patch-source3_utils_net__time.c ># inofficial/samba413/files/patch-source3_smbd_quotas.c ># inofficial/samba413/files/patch-examples_pdb_wscript__build ># inofficial/samba413/files/patch-buildtools_wafsamba_wafsamba.py ># inofficial/samba413/files/patch-source3_lib_sysquotas__4B.c ># inofficial/samba413/files/patch-source3_torture_cmd__vfs.c ># inofficial/samba413/files/patch-listen-backlog ># inofficial/samba413/files/patch-source3_modules_vfs__streams__xattr.c ># inofficial/samba413/files/patch-vfs_freebsd ># inofficial/samba413/files/patch-ctdb_wscript ># inofficial/samba413/files/0001-Zfs-provision-1.patch ># inofficial/samba413/files/samba_server.in ># >echo c - inofficial/samba413 >mkdir -p inofficial/samba413 > /dev/null 2>&1 >echo x - inofficial/samba413/Makefile >sed 's/^X//' >inofficial/samba413/Makefile << '195d1a2bbf011c7545d4c0feedc76c08' >X# Created by: timur@FreeBSD.org >X# $FreeBSD: head/net/samba413/Makefile 553940 2020-11-03 00:56:26Z jbeich $ >X >XPORTNAME= ${SAMBA4_BASENAME}413 >XPORTVERSION= ${SAMBA4_VERSION} >X#PORTREVISION= 1 >XCATEGORIES?= net >XMASTER_SITES= SAMBA/samba/stable SAMBA/samba/rc >XDISTNAME= ${SAMBA4_DISTNAME} >X >X# Overwrite official port's attributes with this inofficial ones >XPKGNAMESUFFIX= -OLN >XCATEGORIES= inofficial net >XVALID_CATEGORIES+= inofficial >X >XMAINTAINER= timur@FreeBSD.org >XCOMMENT= Free SMB/CIFS and AD/DC server and client for Unix >X >XLICENSE= GPLv3+ >XLICENSE_FILE= ${WRKSRC}/COPYING >X >XIGNORE_NONTHREAD_PYTHON= needs port lang/python${PYTHON_SUFFIX} to be build with THREADS support >XCONFLICTS_INSTALL?= samba4-4.0.* samba4[1-9]-4.* samba41[0-24-9]-4.1* p5-Parse-Pidl-4.* >X >XUSES= cpe >X >XEXTRA_PATCHES+= ${PATCHDIR}/0001-Zfs-provision-1.patch:-p1 >X >XSAMBA4_BASENAME= samba >XSAMBA4_PORTNAME= ${SAMBA4_BASENAME}4 >XSAMBA4_VERSION= 4.13.4 >XSAMBA4_DISTNAME= ${SAMBA4_BASENAME}-${SAMBA4_VERSION:S|.p|pre|:S|.r|rc|:S|.t|tp|:S|.a|alpha|} >X >XWRKSRC?= ${WRKDIR}/${DISTNAME} >X >XCPE_VENDOR= samba >XCPE_PRODUCT= samba >X# Directories >XVARDIR= ${DESTDIR}/var >XSAMBA4_RUNDIR= ${VARDIR}/run/${SAMBA4_PORTNAME} >XSAMBA4_LOGDIR= ${VARDIR}/log/${SAMBA4_PORTNAME} >XSAMBA4_LOCKDIR= ${VARDIR}/db/${SAMBA4_PORTNAME} >XSAMBA4_BINDDNSDIR= ${SAMBA4_LOCKDIR}/bind-dns >XSAMBA4_PRIVATEDIR= ${SAMBA4_LOCKDIR}/private >XSAMBA4_PAMDIR= ${PREFIX}/lib >XSAMBA4_LIBDIR= ${PREFIX}/lib/${SAMBA4_PORTNAME} >XSAMBA4_INCLUDEDIR= ${PREFIX}/include/${SAMBA4_PORTNAME} >XSAMBA4_CONFDIR= ${PREFIX}/etc >XSAMBA4_CONFIG= smb4.conf >X >XCONFIGURE_ARGS+= --mandir="${MANPREFIX}/man" \ >X --sysconfdir="${SAMBA4_CONFDIR}" \ >X --includedir="${SAMBA4_INCLUDEDIR}" \ >X --datadir="${DATADIR}" \ >X --libdir="${SAMBA4_LIBDIR}" \ >X --with-privatelibdir="${SAMBA4_LIBDIR}/private" \ >X --with-pammodulesdir="${SAMBA4_PAMDIR}" \ >X --with-modulesdir="${SAMBA4_MODULEDIR}" \ >X --with-pkgconfigdir="${PKGCONFIGDIR}" \ >X --localstatedir="${VARDIR}" \ >X --with-piddir="${SAMBA4_RUNDIR}" \ >X --with-sockets-dir="${SAMBA4_RUNDIR}" \ >X --with-privileged-socket-dir="${SAMBA4_RUNDIR}" \ >X --with-lockdir="${SAMBA4_LOCKDIR}" \ >X --with-statedir="${SAMBA4_LOCKDIR}" \ >X --with-cachedir="${SAMBA4_LOCKDIR}" \ >X --with-bind-dns-dir=${SAMBA4_BINDDNSDIR} \ >X --with-privatedir="${SAMBA4_PRIVATEDIR}" \ >X --with-logfilebase="${SAMBA4_LOGDIR}" >X# XXX: Flags >XCONFIGURE_ENV+= PTHREAD_LDFLAGS="-lpthread" >X >XUSES+= compiler:c++11-lang iconv localbase:ldflags \ >X perl5 pkgconfig shebangfix ssl waf gettext-runtime >XUSE_PERL5= build >XUSE_LDCONFIG= ${SAMBA4_LIBDIR} >XWAF_CMD= buildtools/bin/waf >XCONFIGURE_LOG= bin/config.log >X >XPKGCONFIGDIR?= ${PREFIX}/libdata/pkgconfig >XPKGCONFIGDIR_REL?= ${PKGCONFIGDIR:S,^${PREFIX}/,,} >XPLIST_SUB+= PKGCONFIGDIR=${PKGCONFIGDIR_REL} >XSUB_LIST+= PKGCONFIGDIR=${PKGCONFIGDIR_REL} >X############################################################################## >XOPTIONS_SUB= yes >X >XOPTIONS_DEFINE= AD_DC ADS CLUSTER CUPS DOCS FAM GPGME \ >X LDAP NTVFS PROFILE QUOTAS SPOTLIGHT SYSLOG UTMP >X# This shouldn't be default in the release >XOPTIONS_DEFINE+= DEVELOPER MANDOC >X#OPTIONS_DEFINE+= MEMORY_DEBUG >X >XOPTIONS_GROUP= VFS >XOPTIONS_GROUP_VFS= FRUIT GLUSTERFS >X >XOPTIONS_SINGLE= GSSAPI ZEROCONF >X >XOPTIONS_SINGLE_GSSAPI= GSSAPI_BUILTIN GSSAPI_MIT >X#GSSAPI_HEIMDAL >XOPTIONS_SINGLE_ZEROCONF= ZEROCONF_NONE AVAHI MDNSRESPONDER >X >XOPTIONS_RADIO= DNS >XOPTIONS_RADIO_DNS= NSUPDATE BIND911 BIND916 >X# Make those default options >XOPTIONS_DEFAULT= AD_DC ADS DOCS FAM LDAP \ >X QUOTAS SYSLOG UTMP PROFILE \ >X FRUIT GSSAPI_BUILTIN AVAHI >X############################################################################## >XAD_DC_DESC= Active Directory Domain Controller >XADS_DESC= Active Directory client(implies LDAP) >XCLUSTER_DESC= Clustering support >XDEVELOPER_DESC= With developer framework(implies NTVFS) >XFAM_DESC= File Alteration Monitor >XGPGME_DESC= GpgME support >XLDAP_DESC= LDAP client >XLIBZFS_DESC= LibZFS >XSPOTLIGHT_DESC= Spotlight server-side search support >XMANDOC_DESC= Build manpages from DOCBOOK templates >XMEMORY_DEBUG_DESC= Debug memory allocator >XNTVFS_DESC= Build *DEPRECATED* NTVFS file server >XPICKY_DEVELOPER_DESC= Treat compiler warnings as errors(implies DEVELOPER) >XPROFILE_DESC= Profiling data >XQUOTAS_DESC= Disk quota support >XUTMP_DESC= UTMP accounting >X >XVFS_DESC= VFS modules >XGLUSTERFS_DESC= GlusterFS support >XFRUIT_DESC= MacOSX and TimeMachine support >X >XGSSAPI_BUILTIN_DESC= GSSAPI support via bundled Heimdal >X >XZEROCONF_DESC= Zero configuration networking >XZEROCONF_NONE_DESC= Zeroconf support is absent >X >XDNS_DESC= DNS frontend >XBIND911_DESC= Use Bind 9.11 as AD DC DNS server frontend >XBIND916_DESC= Use Bind 9.16 as AD DC DNS server frontend >XNSUPDATE_DESC= Use samba NSUPDATE utility for AD DC >X############################################################################## >X# XXX: Unconditional dependencies which can't be switched off(if present in >X# the system) >X >X# Iconv(picked up unconditionaly) >XLIB_DEPENDS+= libiconv.so:converters/libiconv >X# unwind >XLIB_DEPENDS+= libunwind.so:devel/libunwind >X# Readline(sponsored by Python) >X# XXX: USES=readline pollutes CPPFLAGS, so we explicitly put dependency >XLIB_DEPENDS+= libreadline.so:devel/readline >X# ICU by cifsdd >XLIB_DEPENDS+= libicui18n.so:devel/icu >X# popt >XLIB_DEPENDS+= libpopt.so:devel/popt >X# inotify >XLIB_DEPENDS+= libinotify.so:devel/libinotify >X# GNUTLS >XLIB_DEPENDS+= libgnutls.so:security/gnutls >XLIB_DEPENDS+= libgcrypt.so:security/libgcrypt >X# NFSv4 ACL glue >XLIB_DEPENDS+= libsunacl.so:sysutils/libsunacl >X# Jansson >XBUILD_DEPENDS+= jansson>=2.10:devel/jansson >XRUN_DEPENDS+= jansson>=2.10:devel/jansson >X# tasn1 >XBUILD_DEPENDS+= libtasn1>=3.8:security/libtasn1 >XRUN_DEPENDS+= libtasn1>=3.8:security/libtasn1 >X# External Samba dependencies >X# Needed for IDL compiler >XBUILD_DEPENDS+= p5-Parse-Yapp>=0:devel/p5-Parse-Yapp >X# Libarchive >XSAMBA4_BUNDLED_LIBS+= !libarchive >XBUILD_DEPENDS+= libarchive>=3.1.2:archivers/libarchive >XRUN_DEPENDS+= libarchive>=3.1.2:archivers/libarchive >X >X### Bundled libraries >XSAMBA4_BUNDLED_CMOCKA?= no >XSAMBA4_BUNDLED_TALLOC?= no >XSAMBA4_BUNDLED_TEVENT?= no >XSAMBA4_BUNDLED_TDB?= no >XSAMBA4_BUNDLED_LDB?= yes >X# cmocka >X.if defined(SAMBA4_BUNDLED_CMOCKA) && ${SAMBA4_BUNDLED_CMOCKA} == yes >XSAMBA4_BUNDLED_LIBS+= cmocka >XCONFLICTS_INSTALL+= cmocka-1.* >XPLIST_SUB+= SAMBA4_BUNDLED_CMOCKA="" >XSUB_LIST+= SAMBA4_BUNDLED_CMOCKA="" >X.else >XSAMBA4_BUNDLED_LIBS+= !cmocka >XBUILD_DEPENDS+= cmocka>=1.1.3:sysutils/cmocka >XTEST_DEPENDS+= cmocka>=1.1.3:sysutils/cmocka >XPLIST_SUB+= SAMBA4_BUNDLED_CMOCKA="@comment " >XSUB_LIST+= SAMBA4_BUNDLED_CMOCKA="@comment " >X.endif >X# talloc >X.if defined(SAMBA4_BUNDLED_TALLOC) && ${SAMBA4_BUNDLED_TALLOC} == yes >XSAMBA4_BUNDLED_LIBS+= talloc >XCONFLICTS_INSTALL+= talloc-* talloc1-* >XPLIST_SUB+= SAMBA4_BUNDLED_TALLOC="" >XSUB_LIST+= SAMBA4_BUNDLED_TALLOC="" >X.else >XSAMBA4_BUNDLED_LIBS+= !talloc >XBUILD_DEPENDS+= talloc>=2.3.1:devel/talloc >XRUN_DEPENDS+= talloc>=2.3.1:devel/talloc >XPLIST_SUB+= SAMBA4_BUNDLED_TALLOC="@comment " >XSUB_LIST+= SAMBA4_BUNDLED_TALLOC="@comment " >X.endif >X# tevent >X.if defined(SAMBA4_BUNDLED_TEVENT) && ${SAMBA4_BUNDLED_TEVENT} == yes >XSAMBA4_BUNDLED_LIBS+= tevent >XCONFLICTS_INSTALL+= tevent-* tevent1-* >XPLIST_SUB+= SAMBA4_BUNDLED_TEVENT="" >XSUB_LIST+= SAMBA4_BUNDLED_TEVENT="" >X.else >XSAMBA4_BUNDLED_LIBS+= !tevent >XBUILD_DEPENDS+= tevent>=0.10.2:devel/tevent >XRUN_DEPENDS+= tevent>=0.10.2:devel/tevent >XPLIST_SUB+= SAMBA4_BUNDLED_TEVENT="@comment " >XSUB_LIST+= SAMBA4_BUNDLED_TEVENT="@comment " >X.endif >X# tdb >X.if defined(SAMBA4_BUNDLED_TDB) && ${SAMBA4_BUNDLED_TDB} == yes >XSAMBA4_BUNDLED_LIBS+= tdb >XCONFLICTS_INSTALL+= tdb-* tdb1-* >XPLIST_SUB+= SAMBA4_BUNDLED_TDB="" >XSUB_LIST+= SAMBA4_BUNDLED_TDB="" >X.else >XSAMBA4_BUNDLED_LIBS+= !tdb >XBUILD_DEPENDS+= tdb>=1.4.3:databases/tdb >XRUN_DEPENDS+= tdb>=1.4.3:databases/tdb >XPLIST_SUB+= SAMBA4_BUNDLED_TDB="@comment " >XSUB_LIST+= SAMBA4_BUNDLED_TDB="@comment " >X.endif >X# ldb >X.if defined(SAMBA4_BUNDLED_LDB) && ${SAMBA4_BUNDLED_LDB} == yes >XSAMBA4_BUNDLED_LDB= yes >XSAMBA4_BUNDLED_LIBS+= ldb >XPLIST_SUB+= SAMBA4_BUNDLED_LDB="" >XSUB_LIST+= SAMBA4_BUNDLED_LDB="" >XSAMBA4_MODULEDIR= ${SAMBA4_LIBDIR}/modules >X.else >XSAMBA4_BUNDLED_LIBS+= !ldb >XBUILD_DEPENDS+= ldb22>=2.2.0:databases/ldb22 >XRUN_DEPENDS+= ldb22>=2.2.0:databases/ldb22 >XPLIST_SUB+= SAMBA4_BUNDLED_LDB="@comment " >XSUB_LIST+= SAMBA4_BUNDLED_LDB="@comment " >XSAMBA4_MODULEDIR= ${PREFIX}/lib/shared-modules >X.endif >X >X.if (defined(SAMBA4_BUNDLED_TALLOC) && ${SAMBA4_BUNDLED_TALLOC} == yes) \ >X || (defined(SAMBA4_BUNDLED_TDB) && ${SAMBA4_BUNDLED_TDB} == yes) \ >X || (defined(SAMBA4_BUNDLED_LDB) && ${SAMBA4_BUNDLED_LDB} == yes) \ >X || (defined(SAMBA4_BUNDLED_TEVENT) && ${SAMBA4_BUNDLED_TEVENT} == yes) >XSAMBA4_BUNDLED_LIBS+= replace >X.endif >X# Don't use external libcom_err >XSAMBA4_BUNDLED_LIBS+= com_err >X# Set the test environment variables >XTEST_USES= python >XTEST_ENV+= PYTHON="${PYTHON_CMD}" \ >X SHA1SUM=/sbin/sha1 \ >X SHA256SUM=/sbin/sha256 \ >X MD5SUM=/sbin/md5 \ >X PYTHONDONTWRITEBYTECODE=1 >X >XTEST_DEPENDS+= bash:shells/bash \ >X tshark:net/tshark >X# External Python modules >XTEST_BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}iso8601>=0.1.11:devel/py-iso8601@${PY_FLAVOR} >XTEST_RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}iso8601>=0.1.11:devel/py-iso8601@${PY_FLAVOR} >X############################################################################## >XCONFIGURE_ARGS+= \ >X --with-pam \ >X --with-iconv \ >X --with-winbind \ >X --with-regedit \ >X --disable-rpath \ >X --without-lttng \ >X --without-gettext \ >X --enable-pthreadpool \ >X --without-fake-kaserver \ >X --without-systemd \ >X --with-libarchive \ >X --with-acl-support \ >X --with-sendfile-support \ >X --disable-ctdb-tests >X# ${ICONV_CONFIGURE_BASE} >X############################################################################## >XFRUIT_PREVENTS= ZEROCONF_NONE >XFRUIT_PREVENTS_MSG= MacOSX support requires Zeroconf(AVAHI or MDNSRESPONDER) >XFRUIT_VARS= SAMBA4_MODULES+=vfs_fruit >XFRUIT_PLIST_FILES+= man/man8/vfs_fruit.8.gz >X >XGLUSTERFS_CONFIGURE_ENABLE= glusterfs >XGLUSTERFS_LIB_DEPENDS= libglusterfs.so:net/glusterfs >XGLUSTERFS_VARS= SAMBA4_MODULES+=vfs_glusterfs >XGLUSTERFS_PLIST_FILES+= man/man8/vfs_glusterfs.8.gz >X############################################################################## >XZEROCONF_NONE_VARS= MAKE_ENV+=ZEROCONF=none >X >XAVAHI_CONFIGURE_ENABLE= avahi >XAVAHI_LIB_DEPENDS= libavahi-client.so:net/avahi-app >XAVAHI_VARS= SAMBA4_SERVICES+=avahi_daemon >X >XMDNSRESPONDER_CONFIGURE_ENABLE= dnssd >XMDNSRESPONDER_LIB_DEPENDS= libdns_sd.so:net/mDNSResponder >XMDNSRESPONDER_VARS= SAMBA4_SERVICES+=mdnsd >X############################################################################## >XBIND911_RUN_DEPENDS= bind911>=9.11.0.0:dns/bind911 >XBIND916_RUN_DEPENDS= bind916>=9.16.0.0:dns/bind916 >XNSUPDATE_RUN_DEPENDS= samba-nsupdate:dns/samba-nsupdate >X############################################################################## >XMEMORY_DEBUG_IMPLIES= DEBUG >XMEMORY_DEBUG_CONFIGURE_ENV= ADDITIONAL_CFLAGS="-DENABLE_JEMALLOC `pkg-config --cflags jemalloc`" ADDITIONAL_LDFLAGS="`pkg-config --libs jemalloc`" >XMEMORY_DEBUG_LIB_DEPENDS= libjemalloc.so.2:devel/jemalloc >X# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194046 >XGDB_CMD?= ${LOCALBASE}/bin/gdb >X# https://bugzilla.samba.org/show_bug.cgi?id=8969 >XPICKY_DEVELOPER_IMPLIES= DEVELOPER >XPICKY_DEVELOPER_CONFIGURE_ON= --picky-developer >X >XDEVELOPER_IMPLIES= NTVFS >XDEVELOPER_CONFIGURE_ON= --enable-developer --enable-selftest --abi-check-disable >XDEVELOPER_CONFIGURE_ENV= WAF_CMD_FORMAT=string >XDEVELOPER_RUN_DEPENDS= ${SAMBA4_LMDB_DEPENDS} >XDEVELOPER_BUILD_DEPENDS= ${GDB_CMD}:devel/gdb \ >X ${SAMBA4_LMDB_DEPENDS} >XDEVELOPER_TEST_DEPENDS= ${GDB_CMD}:devel/gdb >XDEVELOPER_VARS_OFF= GDB_CMD=true >X# XXX: Mostly used in conjuction with the DEVELOPER option, don't enable it >X# if you don't know what you are doing >XNTVFS_IMPLIES= AD_DC >XNTVFS_CONFIGURE_WITH= ntvfs-fileserver >XNTVFS_PLIST_FILES= ${SAMBA4_MODULEDIR}/service/smb.so \ >X lib/samba4/private/libntvfs-samba4.so >X############################################################################## >XCLUSTER_CONFIGURE_WITH= cluster-support >X >XCUPS_CONFIGURE_ENABLE= cups iprint >XCUPS_LIB_DEPENDS= libcups.so:print/cups >XCUPS_PLIST_FILES+= libexec/samba/smbspool_krb5_wrapper \ >X man/man8/smbspool_krb5_wrapper.8.gz >X# https://bugzilla.samba.org/show_bug.cgi?id=9545 >XFAM_USES= fam >XFAM_CONFIGURE_WITH= fam >X >XGPGME_CONFIGURE_WITH= gpgme >XGPGME_LIB_DEPENDS= libgpgme.so:security/gpgme >X >XPROFILE_CONFIGURE_WITH= profiling-data >X >XQUOTAS_CONFIGURE_WITH= quotas >X >XSPOTLIGHT_CONFIGURE_ENABLE= spotlight >XSPOTLIGHT_BUILD_DEPENDS= tracker>=1.4.1:sysutils/tracker >XSPOTLIGHT_RUN_DEPENDS= tracker>=1.4.1:sysutils/tracker >X# ICU >XSPOTLIGHT_LIB_DEPENDS+= libicuuc.so:devel/icu >XSPOTLIGHT_USES= bison gnome >XSPOTLIGHT_USE= gnome=glib20 >X >XSYSLOG_CONFIGURE_WITH= syslog >X >XUTMP_CONFIGURE_WITH= utmp >X >XAD_DC_CONFIGURE_OFF= --without-ad-dc >XAD_DC_BUILD_DEPENDS= ${SAMBA4_LMDB_DEPENDS} >XAD_DC_RUN_DEPENDS= ${SAMBA4_LMDB_DEPENDS} >X >XADS_IMPLIES= LDAP >XADS_CONFIGURE_WITH= ads dnsupdate >X >XLDAP_CONFIGURE_WITH= ldap >XLDAP_CONFIGURE_ON= --with-openldap=${LOCALBASE} >XLDAP_USE= OPENLDAP=yes >XLDAP_VARS= SAMBA4_MODULES+=idmap_ldap >X >XGSSAPI_MIT_CONFIGURE_ON= --with-system-mitkrb5 ${GSSAPIBASEDIR} \ >X --with-system-mitkdc=${GSSAPIBASEDIR}/sbin/krb5kdc \ >X --with-experimental-mit-ad-dc >XGSSAPI_MIT_USES= gssapi:mit >X >XGSSAPI_HEIMDAL_CONFIGURE_ON= --with-system-heimdalkrb5 ${GSSAPIBASEDIR} >XGSSAPI_HEIMDAL_USES= gssapi:heimdal >XGSSAPI_HEIMDAL_PREVENTS= AD_DC >XGSSAPI_HEIMDAL_PREVENTS_MSG= GSSAPI_HEIMDAL and AD_DC enable conflicting options >X >XLIBZFS_CONFIGURE_WITH= libzfs >XLIBZFS_VARS= SAMBA4_MODULES+=vfs_zfs_space >X >XMANDOC_BUILD_DEPENDS= ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:textproc/docbook-xsl \ >X xsltproc:textproc/libxslt >XMANDOC_CONFIGURE_ENV_OFF= XSLTPROC="true" >X >X############################################################################## >X.include <bsd.port.options.mk> >X############################################################################## >X >X.if !defined(WANT_EXP_MODULES) || empty(WANT_EXP_MODULES) >XWANT_EXP_MODULES= vfs_cacheprime >X.endif >X >X.if ${WANT_EXP_MODULES:Mvfs_snapper} >X# snapper needs dbus >XLIB_DEPENDS+= libdbus-1.so:devel/dbus >XLIB_DEPENDS+= libdbus-glib-1.so:devel/dbus-glib >X.endif >X >XSAMBA4_MODULES+= vfs_freebsd >X >XSAMBA4_MODULES+= idmap_nss idmap_autorid idmap_rid idmap_hash idmap_tdb idmap_tdb2 idmap_script nss-info_hash >X# List of extra modules taken from RHEL build >X# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197320 >X.if ${PORT_OPTIONS:MADS} >XSAMBA4_MODULES+= idmap_ad idmap_rfc2307 nss-info_template nss-info_rfc2307 nss-info_sfu nss-info_sfu20 >X.endif >X >X.if ${PORT_OPTIONS:MDEVELOPER} >XSAMBA4_MODULES+= auth_skel pdb_test gpext_security gpext_registry gpext_scripts perfcount_test \ >X vfs_fake_dfq vfs_skel_opaque vfs_skel_transparent vfs_shadow_copy_test vfs_fake_acls \ >X vfs_nfs4acl_xattr vfs_error_inject vfs_delay_inject >X.endif >X# Python bindings >X.if defined(NO_PYTHON) >XUSES+= python:build,test >XCONFIGURE_ARGS+= --disable-python >XPLIST_SUB+= SAMBA4_PYTHON="@comment " >XSUB_LIST+= SAMBA4_PYTHON="@comment " >X.else >XUSES+= python:3.6+ >XPLIST_SUB+= SAMBA4_PYTHON="" >XSUB_LIST+= SAMBA4_PYTHON="" >X# Don't cache Python modules >XCONFIGURE_ARGS+= --nopycache >XMAKE_ENV+= PYTHONDONTWRITEBYTECODE=1 >X >X. if defined(SAMBA4_BUNDLED_TALLOC) && ${SAMBA4_BUNDLED_TALLOC} == yes >XSAMBA4_BUNDLED_LIBS+= pytalloc-util >X. else >XSAMBA4_BUNDLED_LIBS+= !pytalloc-util >X. endif >X >X. if defined(SAMBA4_BUNDLED_TEVENT) && ${SAMBA4_BUNDLED_TEVENT} == yes >XSAMBA4_BUNDLED_LIBS+= pytevent >X. else >XSAMBA4_BUNDLED_LIBS+= !pytevent >X. endif >X >X. if defined(SAMBA4_BUNDLED_TDB) && ${SAMBA4_BUNDLED_TDB} == yes >XSAMBA4_BUNDLED_LIBS+= pytdb >X. else >XSAMBA4_BUNDLED_LIBS+= !pytdb >X. endif >X >X. if defined(SAMBA4_BUNDLED_LDB) && ${SAMBA4_BUNDLED_LDB} == yes >XSAMBA4_BUNDLED_LIBS+= pyldb pyldb-util >X. else >XSAMBA4_BUNDLED_LIBS+= !pyldb !pyldb-util >X. endif >X# samba-tool requires those for *upgrade >X. if ${PORT_OPTIONS:MAD_DC} >XRUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}dnspython>=1.15.0:dns/py-dnspython@${PY_FLAVOR} >XRUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}markdown>=2.6.11:textproc/py-markdown@${PY_FLAVOR} >X. if ${PORT_OPTIONS:MGPGME} >XRUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}gpgme>=1.14.0:security/py-gpgme@${PY_FLAVOR} >X. endif >X. endif >X.endif >X >X.if defined(WANT_EXP_MODULES) && !empty(WANT_EXP_MODULES) >XSAMBA4_MODULES+= ${WANT_EXP_MODULES} >X.endif >X >X.if defined(SAMBA4_BUNDLED_LIBS) && !empty(SAMBA4_BUNDLED_LIBS) >XCONFIGURE_ARGS+= --bundled-libraries="${SAMBA4_BUNDLED_LIBS:Q:C|(\\\\ )+|,|g:S|\\||g}" >X.endif >X >X.if defined(SAMBA4_MODULES) && !empty(SAMBA4_MODULES) >XCONFIGURE_ARGS+= --with-shared-modules="${SAMBA4_MODULES:C|-|_|:Q:C|(\\\\ )+|,|g:S|\\||g}" >X.endif >X# XXX: Hack for nss-info_* -> nss_info/* modules >X# Add selected modules to the plist >X.for module in ${SAMBA4_MODULES} >XPLIST_FILES+= ${SAMBA4_MODULEDIR}/${module:C|_|/|:C|-|_|}.so >X.endfor >X >X.if defined(WITH_DEBUG) >XCONFIGURE_ARGS+= --verbose --enable-debug >XMAKE_ARGS+= --verbose >XDEBUG_FLAGS?= -g -ggdb3 -O0 >X.endif >X >X############################################################################## >X.include <bsd.port.pre.mk> >X############################################################################## >X# Implemented in the gcrypt on AMD64 >X.if ${ARCH} == "amd64" >XCONFIGURE_ARGS+= --accel-aes=intelaesni >X.else >XCONFIGURE_ARGS+= --accel-aes=none >X.endif >X >X# Only for 64-bit architectures >X.if ${ARCH} != armv6 && ${ARCH} != armv7 && ${ARCH} != i386 && ${ARCH} != mips && ${ARCH} != powerpc && ${ARCH} != powerpcspe >X. if defined(SAMBA4_BUNDLED_LDB) && ${SAMBA4_BUNDLED_LDB} == yes && (${PORT_OPTIONS:MAD_DC} || ${PORT_OPTIONS:MDEVELOPER}) >X# LMDB >XSAMBA4_LMDB_DEPENDS= lmdb>=0.9.16:databases/lmdb >XPLIST_FILES+= lib/samba4/private/libldb-mdb-int-samba4.so \ >X ${SAMBA4_MODULEDIR}/ldb/mdb.so >X. endif >X.endif >X >X.if ${PORT_OPTIONS:MGSSAPI_MIT} >XPLIST_FILES+= ${SAMBA4_MODULEDIR}/krb5/winbind_krb5_localauth.so \ >X man/man8/winbind_krb5_localauth.8.gz >X. if ${PORT_OPTIONS:MAD_DC} >XPLIST_FILES+= lib/samba4/krb5/plugins/kdb/samba.so >X. endif >X.endif >X# for libexecinfo: (so that __builtin_frame_address() finds the top of the stack) >XCFLAGS_amd64+= -fno-omit-frame-pointer >X# No fancy color error messages >XCONFIGURE_ENV+= NOCOLOR=yes WAF_LOG_FORMAT='%(c1)s%(zone)s%(c2)s %(message)s' >XMAKE_ENV+= NOCOLOR=yes WAF_LOG_FORMAT='%(c1)s%(zone)s%(c2)s %(message)s' >X.if ${CHOSEN_COMPILER_TYPE} == clang >XCFLAGS+= -fno-color-diagnostics >X.endif >X# Allow rpcgen to find proper CPP >XMAKE_ENV+= RPCGEN_CPP="${CPP}" >X#.if ${readline_ARGS} == port >X#CFLAGS+= -D_FUNCTION_DEF >X#.endif >X >X# Make sure that the right version of Python is used by the tools >X# https://bugzilla.samba.org/show_bug.cgi?id=7305 >XSHEBANG_FILES= ${PATCH_WRKSRC}/source4/scripting/bin/* ${PATCH_WRKSRC}/selftest/* >X >XSAMBA4_SUB= SAMBA4_LOGDIR="${SAMBA4_LOGDIR}" \ >X SAMBA4_RUNDIR="${SAMBA4_RUNDIR}" \ >X SAMBA4_LOCKDIR="${SAMBA4_LOCKDIR}" \ >X SAMBA4_MODULEDIR="${SAMBA4_MODULEDIR}" \ >X SAMBA4_BINDDNSDIR="${SAMBA4_BINDDNSDIR}" \ >X SAMBA4_PRIVATEDIR="${SAMBA4_PRIVATEDIR}" \ >X SAMBA4_CONFDIR="${SAMBA4_CONFDIR}" \ >X SAMBA4_CONFIG="${SAMBA4_CONFIG}" \ >X SAMBA4_SERVICES="${SAMBA4_SERVICES}" >X >XPLIST_SUB+= ${SAMBA4_SUB} >XSUB_LIST+= ${SAMBA4_SUB} >X >XUSE_RC_SUBR= samba_server >XSUB_FILES= pkg-message README.FreeBSD >X >XPORTDOCS= README.FreeBSD >X >Xpost-extract: >X @${RM} -r ${WRKSRC}/pidl/lib/Parse/Yapp >X >Xpost-patch: >X @${REINPLACE_CMD} -e 's|$${PKGCONFIGDIR}|${PKGCONFIGDIR}|g' \ >X ${PATCH_WRKSRC}/buildtools/wafsamba/pkgconfig.py >X @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ >X ${PATCH_WRKSRC}/buildtools/wafsamba/wafsamba.py >X @${REINPLACE_CMD} -e 's|%%GDB_CMD%%|${GDB_CMD}|g' \ >X ${PATCH_WRKSRC}/buildtools/scripts/abi_gen.sh >X @${REINPLACE_CMD} -e 's|%%SAMBA4_CONFIG%%|${SAMBA4_CONFIG}|g' \ >X ${PATCH_WRKSRC}/dynconfig/wscript >X >X# Use threading (or multiprocessing) but not thread (renamed in python 3+). >Xpre-configure: >X.if ! ${PORT_OPTIONS:MAD_DC} && ${PORT_OPTIONS:MNTVFS} >X @${ECHO_CMD}; \ >X ${ECHO_MSG} "===> NTVFS option requires AD_DC to be set"; \ >X ${ECHO_CMD}; \ >X ${FALSE} >X.endif >X @if ! ${PYTHON_CMD} -c "import multiprocessing;" 2>/dev/null; then \ >X ${ECHO_CMD}; \ >X ${ECHO_MSG} "===> ${PKGNAME} "${IGNORE_NONTHREAD_PYTHON:Q}.; \ >X ${ECHO_CMD}; \ >X ${FALSE}; \ >X fi >X >Xpre-build-MANDOC-off: >X ${MKDIR} ${BUILD_WRKSRC}/bin/default/docs-xml/ >X ${CP} -rp ${BUILD_WRKSRC}/docs/manpages ${BUILD_WRKSRC}/bin/default/docs-xml/ >X.for man in libcli/nbt/man/nmblookup4.1 \ >X librpc/tools/ndrdump.1 \ >X source4/lib/registry/man/regdiff.1 \ >X source4/lib/registry/man/regpatch.1 \ >X source4/lib/registry/man/regshell.1 \ >X source4/lib/registry/man/regtree.1 \ >X source4/scripting/man/samba-gpupdate.8 \ >X source4/torture/man/gentest.1 \ >X source4/torture/man/locktest.1 \ >X source4/torture/man/masktest.1 \ >X source4/torture/man/smbtorture.1 \ >X source4/utils/man/ntlm_auth4.1 \ >X source4/utils/oLschema2ldif/oLschema2ldif.1 \ >X lib/tdb/man/tdbdump.8 \ >X lib/tdb/man/tdbbackup.8 \ >X lib/tdb/man/tdbtool.8 \ >X lib/talloc/man/talloc.3 \ >X lib/tdb/man/tdbrestore.8 \ >X lib/ldb/man/ldbadd.1 \ >X lib/ldb/man/ldbsearch.1 \ >X lib/ldb/man/ldbmodify.1 \ >X lib/ldb/man/ldbrename.1 \ >X lib/ldb/man/ldbdel.1 \ >X lib/ldb/man/ldbedit.1 \ >X docs-xml/manpages/vfs_freebsd.8 >X ${MKDIR} `dirname ${BUILD_WRKSRC}/bin/default/${man}` >X ${INSTALL_MAN} ${FILESDIR}/man/`basename ${man}` ${BUILD_WRKSRC}/bin/default/${man} >X.endfor >X.if ${PORT_OPTIONS:MCLUSTER} >X ${MKDIR} ${BUILD_WRKSRC}/bin/default/ctdb/ >X. for man in ctdb_diagnostics.1 ctdb.1 ctdbd_wrapper.1 ctdbd.1 ltdbtool.1 onnode.1 ping_pong.1 \ >X ctdb.conf.5 ctdb.sysconfig.5 ctdb-script.options.5 \ >X ctdb.7 ctdb-statistics.7 ctdb-tunables.7 >X ${INSTALL_MAN} ${FILESDIR}/man/${man} ${BUILD_WRKSRC}/bin/default/ctdb/ >X. endfor >X.endif >X >Xpost-install-rm-junk: >X ${RM} -r ${STAGEDIR}${PYTHON_SITELIBDIR}/samba/third_party >X ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name __pycache__ \ >X -type d -print0 | ${XARGS} -0 -n 1 -t ${RM} -r >X >Xpost-install-fix-manpages: >X.for f in vfs_aio_linux.8 vfs_btrfs.8 vfs_ceph.8 vfs_gpfs.8 >X ${RM} ${STAGEDIR}${PREFIX}/man/man8/${f} >X.endfor >X.if defined(SAMBA4_BUNDLED_LDB) && ${SAMBA4_BUNDLED_LDB} == yes >X. for f in ldbadd.1 ldbdel.1 ldbedit.1 ldbmodify.1 ldbrename.1 ldbsearch.1 >X ${MV} ${STAGEDIR}${PREFIX}/man/man1/${f} ${STAGEDIR}${PREFIX}/man/man1/samba-${f} >X. endfor >X.endif >X.if defined(SAMBA4_BUNDLED_TDB) && ${SAMBA4_BUNDLED_TDB} == yes >X. for f in tdbbackup.8 tdbdump.8 tdbrestore.8 tdbtool.8 >X ${MV} ${STAGEDIR}${PREFIX}/man/man8/${f} ${STAGEDIR}${PREFIX}/man/man8/samba-${f} >X. endfor >X.endif >X >Xpost-install: post-install-rm-junk post-install-fix-manpages >X ${LN} -sf smb.conf.5.gz ${STAGEDIR}${PREFIX}/man/man5/smb4.conf.5.gz >X# Run post-install script >X.for dir in ${SAMBA4_LOGDIR} ${SAMBA4_RUNDIR} ${SAMBA4_LOCKDIR} ${SAMBA4_MODULEDIR} >X ${INSTALL} -d -m 0755 "${STAGEDIR}${dir}" >X.endfor >X ${INSTALL} -d -m 0750 "${STAGEDIR}${SAMBA4_BINDDNSDIR}" >X ${INSTALL} -d -m 0750 "${STAGEDIR}${SAMBA4_PRIVATEDIR}" >X.for dir in auth bind9 gensec gpext idmap ldb nss_info pdb perfcount process_model service vfs >X ${INSTALL} -d -m 0755 "${STAGEDIR}${SAMBA4_MODULEDIR}/${dir}" >X.endfor >X.if !defined(WITH_DEBUG) >X -${FIND} ${STAGEDIR}${PREFIX}/bin ${STAGEDIR}${PREFIX}/sbin ${STAGEDIR}${PREFIX}/libexec \ >X -type f -print0 | ${XARGS} -0 -n 1 -t ${STRIP_CMD} >X -${FIND} ${STAGEDIR}${PREFIX}/lib -name '*.so*' \ >X -type f -print0 | ${XARGS} -0 -n 1 -t ${STRIP_CMD} >X.endif >X >Xpost-install-FRUIT-off: >X ${RM} ${STAGEDIR}${SAMBA4_MODULEDIR}/vfs/fruit.so >X ${RM} ${STAGEDIR}${PREFIX}/man/man8/vfs_fruit.8 >X >Xpost-install-DOCS-on: >X ${MKDIR} ${STAGEDIR}${DOCSDIR} >X.for doc in ${PORTDOCS} >X ${INSTALL_DATA} ${WRKDIR}/${doc} ${STAGEDIR}${DOCSDIR} >X.endfor >X >Xpost-install-CLUSTER-on: >X ${LN} -nfs ../../../../share/ctdb/events/legacy/00.ctdb.script ${STAGEDIR}${PREFIX}/etc/ctdb/events/legacy/00.ctdb.script >X ${LN} -nfs ../../../../share/ctdb/events/legacy/10.interface.script ${STAGEDIR}${PREFIX}/etc/ctdb/events/legacy/10.interface.script >X ${LN} -nfs ../../../../share/ctdb/events/legacy/05.system.script ${STAGEDIR}${PREFIX}/etc/ctdb/events/legacy/05.system.script >X ${LN} -nfs ../../../../share/ctdb/events/legacy/01.reclock.script ${STAGEDIR}${PREFIX}/etc/ctdb/events/legacy/01.reclock.script >X >X.include <bsd.port.post.mk> >195d1a2bbf011c7545d4c0feedc76c08 >echo x - inofficial/samba413/pkg-descr >sed 's/^X//' >inofficial/samba413/pkg-descr << '380269d7233409d49e6abf359f4f6ae0' >XSamba4 is an attempt to implement an Active Directory compatible Domain >XController. >X >XIn short, you can join a WinNT, Win2000, WinXP or Win 2003 - 2016 member >Xserver to a Samba4 domain, and it will behave much as it does in AD, >Xincluding Kerberos domain logins where applicable. >X >XWWW: https://www.samba.org/ >380269d7233409d49e6abf359f4f6ae0 >echo x - inofficial/samba413/distinfo >sed 's/^X//' >inofficial/samba413/distinfo << 'a05c50d821c2a2385543316424e70b07' >XTIMESTAMP = 1613406726 >XSHA256 (samba-4.13.4.tar.gz) = a1b34c63f7100cc8626902d80f335c7cb0b45d4707dd3c4b010f7a28ed615c78 >XSIZE (samba-4.13.4.tar.gz) = 18429050 >a05c50d821c2a2385543316424e70b07 >echo x - inofficial/samba413/pkg-plist >sed 's/^X//' >inofficial/samba413/pkg-plist << 'd2efca8b4fdcd4a395d758d6c8d3b39a' >Xbin/cifsdd >Xbin/dbwrap_tool >Xbin/dumpmscat >Xbin/findsmb >Xbin/gentest >Xbin/locktest >Xbin/masktest >Xbin/mdfind >Xbin/mvxattr >Xbin/ndrdump >Xbin/net >Xbin/nmblookup >Xbin/ntlm_auth >Xbin/oLschema2ldif >Xbin/pdbedit >Xbin/profiles >Xbin/regdiff >Xbin/regpatch >Xbin/regshell >Xbin/regtree >Xbin/rpcclient >X%%SAMBA4_BUNDLED_LDB%%bin/samba-ldbadd >X%%SAMBA4_BUNDLED_LDB%%bin/samba-ldbdel >X%%SAMBA4_BUNDLED_LDB%%bin/samba-ldbdump >X%%SAMBA4_BUNDLED_LDB%%bin/samba-ldbedit >X%%SAMBA4_BUNDLED_LDB%%bin/samba-ldbmodify >X%%SAMBA4_BUNDLED_LDB%%bin/samba-ldbrename >X%%SAMBA4_BUNDLED_LDB%%bin/samba-ldbsearch >Xbin/samba-regedit >X%%AD_DC%%bin/samba-tool >Xbin/sharesec >Xbin/smbcacls >Xbin/smbclient >Xbin/smbcontrol >Xbin/smbcquotas >Xbin/smbget >Xbin/smbpasswd >Xbin/smbspool >Xbin/smbstatus >Xbin/smbtar >X%%SAMBA4_PYTHON%%bin/smbtorture >Xbin/smbtree >Xbin/testparm >Xbin/vfstest >Xbin/wbinfo >Xetc/rc.d/samba_server >Xinclude/samba4/charset.h >Xinclude/samba4/core/doserr.h >Xinclude/samba4/core/error.h >Xinclude/samba4/core/hresult.h >Xinclude/samba4/core/ntstatus.h >Xinclude/samba4/core/ntstatus_gen.h >Xinclude/samba4/core/werror.h >Xinclude/samba4/core/werror_gen.h >Xinclude/samba4/credentials.h >Xinclude/samba4/dcerpc.h >X%%AD_DC%%include/samba4/dcerpc_server.h >Xinclude/samba4/dcesrv_core.h >Xinclude/samba4/domain_credentials.h >Xinclude/samba4/gen_ndr/atsvc.h >Xinclude/samba4/gen_ndr/auth.h >Xinclude/samba4/gen_ndr/dcerpc.h >Xinclude/samba4/gen_ndr/drsblobs.h >Xinclude/samba4/gen_ndr/drsuapi.h >Xinclude/samba4/gen_ndr/krb5pac.h >Xinclude/samba4/gen_ndr/lsa.h >Xinclude/samba4/gen_ndr/misc.h >Xinclude/samba4/gen_ndr/nbt.h >Xinclude/samba4/gen_ndr/ndr_atsvc.h >Xinclude/samba4/gen_ndr/ndr_dcerpc.h >Xinclude/samba4/gen_ndr/ndr_drsblobs.h >Xinclude/samba4/gen_ndr/ndr_drsuapi.h >Xinclude/samba4/gen_ndr/ndr_krb5pac.h >Xinclude/samba4/gen_ndr/ndr_misc.h >Xinclude/samba4/gen_ndr/ndr_nbt.h >Xinclude/samba4/gen_ndr/ndr_samr.h >Xinclude/samba4/gen_ndr/ndr_samr_c.h >Xinclude/samba4/gen_ndr/ndr_svcctl.h >Xinclude/samba4/gen_ndr/ndr_svcctl_c.h >Xinclude/samba4/gen_ndr/netlogon.h >Xinclude/samba4/gen_ndr/samr.h >Xinclude/samba4/gen_ndr/security.h >Xinclude/samba4/gen_ndr/server_id.h >Xinclude/samba4/gen_ndr/svcctl.h >Xinclude/samba4/ldb_wrap.h >Xinclude/samba4/libsmbclient.h >Xinclude/samba4/lookup_sid.h >Xinclude/samba4/machine_sid.h >Xinclude/samba4/ndr.h >Xinclude/samba4/ndr/ndr_dcerpc.h >Xinclude/samba4/ndr/ndr_drsblobs.h >Xinclude/samba4/ndr/ndr_drsuapi.h >Xinclude/samba4/ndr/ndr_krb5pac.h >Xinclude/samba4/ndr/ndr_nbt.h >Xinclude/samba4/ndr/ndr_svcctl.h >Xinclude/samba4/netapi.h >Xinclude/samba4/param.h >Xinclude/samba4/passdb.h >X%%SAMBA4_PYTHON%%include/samba4/policy.h >Xinclude/samba4/rpc_common.h >Xinclude/samba4/samba/session.h >Xinclude/samba4/samba/version.h >Xinclude/samba4/share.h >Xinclude/samba4/smb2_lease_struct.h >Xinclude/samba4/smb_ldap.h >Xinclude/samba4/smbconf.h >Xinclude/samba4/smbldap.h >Xinclude/samba4/tdr.h >Xinclude/samba4/tsocket.h >Xinclude/samba4/tsocket_internal.h >Xinclude/samba4/util/attr.h >Xinclude/samba4/util/blocking.h >Xinclude/samba4/util/data_blob.h >Xinclude/samba4/util/debug.h >Xinclude/samba4/util/discard.h >Xinclude/samba4/util/fault.h >Xinclude/samba4/util/genrand.h >Xinclude/samba4/util/idtree.h >Xinclude/samba4/util/idtree_random.h >Xinclude/samba4/util/signal.h >Xinclude/samba4/util/string_wrappers.h >Xinclude/samba4/util/substitute.h >Xinclude/samba4/util/tevent_ntstatus.h >Xinclude/samba4/util/tevent_unix.h >Xinclude/samba4/util/tevent_werror.h >Xinclude/samba4/util/tfork.h >Xinclude/samba4/util/time.h >Xinclude/samba4/util_ldb.h >Xinclude/samba4/wbclient.h >Xlib/nss_winbind.so.1 >Xlib/nss_wins.so.1 >Xlib/pam_winbind.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/_ldb_text.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/ldb.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/__init__.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/_glue.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/_ldb.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/auth.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/auth_util.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/colour.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/common.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/compat.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/credentials.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/crypto.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dbchecker.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/__init__.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/atsvc.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/auth.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/base.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/dcerpc.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/dfs.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/dns.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/dnsp.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/dnsserver.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/drsblobs.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/drsuapi.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/echo.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/epmapper.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/idmap.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/initshutdown.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/irpc.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/krb5pac.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/lsa.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/mdssvc.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/messaging.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/mgmt.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/misc.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/nbt.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/netlogon.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/ntlmssp.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/preg.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/samr.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/security.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/server_id.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/smb_acl.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/spoolss.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/srvsvc.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/svcctl.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/unixinfo.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/winbind.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/windows_event_ids.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/winreg.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/winspool.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/witness.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/wkssvc.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/xattr.so >X%%AD_DC%%%%PYTHON_SITELIBDIR%%/samba/dckeytab.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/descriptor.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dnsresolver.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dnsserver.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/domain_update.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/drs_utils.py >X%%AD_DC%%%%PYTHON_SITELIBDIR%%/samba/dsdb.so >X%%AD_DC%%%%PYTHON_SITELIBDIR%%/samba/dsdb_dns.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/emulate/__init__.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/emulate/traffic.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/emulate/traffic_packets.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/forest_update.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/gensec.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/getopt.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/gp_ext_loader.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/gp_parse/__init__.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/gp_parse/gp_aas.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/gp_parse/gp_csv.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/gp_parse/gp_inf.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/gp_parse/gp_ini.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/gp_parse/gp_pol.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/gp_scripts_ext.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/gp_sec_ext.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/gpclass.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/gpo.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/graph.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/hostconfig.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/idmap.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/join.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/kcc/__init__.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/kcc/debug.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/kcc/graph.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/kcc/graph_utils.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/kcc/kcc_utils.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/kcc/ldif_import_export.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/logger.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/mdb_util.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/messaging.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/ms_display_specifiers.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/ms_forest_updates_markdown.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/ms_schema.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/ms_schema_markdown.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/ndr.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/net.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/netbios.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/netcmd/__init__.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/netcmd/common.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/netcmd/computer.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/netcmd/contact.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/netcmd/dbcheck.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/netcmd/delegation.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/netcmd/dns.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/netcmd/domain.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/netcmd/domain_backup.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/netcmd/drs.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/netcmd/dsacl.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/netcmd/forest.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/netcmd/fsmo.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/netcmd/gpo.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/netcmd/group.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/netcmd/ldapcmp.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/netcmd/main.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/netcmd/nettime.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/netcmd/ntacl.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/netcmd/ou.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/netcmd/processes.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/netcmd/pso.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/netcmd/rodc.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/netcmd/schema.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/netcmd/sites.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/netcmd/spn.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/netcmd/testparm.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/netcmd/user.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/netcmd/visualize.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/ntacls.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/ntstatus.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/param.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/policy.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/posix_eadb.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/provision/__init__.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/provision/backend.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/provision/common.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/provision/kerberos.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/provision/kerberos_implementation.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/provision/sambadns.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/registry.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/remove_dc.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/samba3/__init__.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/samba3/libsmb_samba_internal.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/samba3/mdscli.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/samba3/param.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/samba3/passdb.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/samba3/smbd.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/samdb.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/schema.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/sd_utils.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/security.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/sites.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/subnets.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/subunit/__init__.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/subunit/run.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tdb_util.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/__init__.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/audit_log_base.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/audit_log_dsdb.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/audit_log_pass_change.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/auth.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/auth_log.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/auth_log_base.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/auth_log_ncalrpc.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/auth_log_netlogon.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/auth_log_netlogon_bad_creds.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/auth_log_pass_change.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/auth_log_samlogon.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/auth_log_winbind.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/blackbox/__init__.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/blackbox/bug13653.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/blackbox/check_output.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/blackbox/downgradedatabase.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/blackbox/mdfind.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/blackbox/ndrdump.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/blackbox/netads_json.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/blackbox/samba_dnsupdate.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/blackbox/smbcacls.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/blackbox/smbcacls_basic.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/blackbox/smbcontrol.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/blackbox/smbcontrol_process.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/blackbox/traffic_learner.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/blackbox/traffic_replay.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/blackbox/traffic_summary.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/common.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/complex_expressions.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/core.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/credentials.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/__init__.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/array.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/bare.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/dnsserver.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/integer.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/mdssvc.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/misc.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/raw_protocol.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/raw_testcase.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/registry.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/rpc_talloc.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/rpcecho.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/sam.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/srvsvc.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/string_tests.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/testrpc.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/unix.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/dckeytab.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/dns.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/dns_base.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/dns_forwarder.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/dns_forwarder_helpers/server.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/dns_invalid.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/dns_packet.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/dns_tkey.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/dns_wildcard.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/docs.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/domain_backup.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/domain_backup_offline.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/dsdb.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/dsdb_lock.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/dsdb_schema_attributes.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/emulate/__init__.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/emulate/traffic.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/emulate/traffic_packet.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/encrypted_secrets.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/gensec.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/get_opt.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/getdcname.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/glue.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/gpo.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/graph.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/group_audit.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/hostconfig.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/join.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/kcc/__init__.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/kcc/graph.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/kcc/graph_utils.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/kcc/kcc_utils.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/kcc/ldif_import_export.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/krb5/kcrypto.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/krb5/raw_testcase.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/krb5/rfc4120_pyasn1.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/krb5/s4u_tests.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/krb5/simple_tests.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/krb5/xrealm_tests.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/krb5_credentials.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/ldap_raw.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/ldap_referrals.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/libsmb.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/loadparm.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/lsa_string.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/messaging.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/net_join.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/net_join_no_spnego.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/netbios.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/netcmd.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/netlogonsvc.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/ntacls.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/ntacls_backup.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/ntlm_auth.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/ntlm_auth_base.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/ntlm_auth_krb5.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/ntlmdisabled.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/pam_winbind.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/pam_winbind_chauthtok.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/pam_winbind_warn_pwd_expire.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/param.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/password_hash.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/password_hash_fl2003.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/password_hash_fl2008.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/password_hash_gpgme.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/password_hash_ldap.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/password_quality.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/password_test.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/policy.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/posixacl.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/prefork_restart.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/process_limits.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/provision.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/pso.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/py_credentials.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/registry.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/s3idmapdb.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/s3param.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/s3passdb.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/s3registry.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/s3windb.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba3sam.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/__init__.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/base.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/computer.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/contact.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/demote.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/dnscmd.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/drs_clone_dc_data_lmdb_size.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/dsacl.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/forest.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/fsmo.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/gpo.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/group.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/help.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/join.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/join_lmdb_size.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/ntacl.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/ou.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/passwordsettings.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/processes.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/promote_dc_lmdb_size.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/provision_lmdb_size.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/provision_password_check.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/rodc.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/schema.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/sites.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/timecmd.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/user.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/user_check_password_script.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/user_virtualCryptSHA.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/user_virtualCryptSHA_base.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/user_virtualCryptSHA_gpg.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/user_virtualCryptSHA_userPassword.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/user_wdigest.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/visualize.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/visualize_drs.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_upgradedns_lmdb.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samdb.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samdb_api.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/security.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/segfault.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/smb.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/smbd_base.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/smbd_fuzztest.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/source.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/strings.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/subunitrun.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/tdb_util.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/upgrade.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/upgradeprovision.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/upgradeprovisionneeddc.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/usage.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/xattr.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/upgrade.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/upgradehelpers.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/uptodateness.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/werror.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/xattr.py >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/xattr_native.so >X%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/xattr_tdb.so >Xlib/samba4/libdcerpc-binding.so >Xlib/samba4/libdcerpc-binding.so.0 >Xlib/samba4/libdcerpc-samr.so >Xlib/samba4/libdcerpc-samr.so.0 >Xlib/samba4/libdcerpc-server-core.so >Xlib/samba4/libdcerpc-server-core.so.0 >X%%AD_DC%%lib/samba4/libdcerpc-server.so >X%%AD_DC%%lib/samba4/libdcerpc-server.so.0 >Xlib/samba4/libdcerpc.so >Xlib/samba4/libdcerpc.so.0 >Xlib/samba4/libndr-krb5pac.so >Xlib/samba4/libndr-krb5pac.so.0 >Xlib/samba4/libndr-nbt.so >Xlib/samba4/libndr-nbt.so.0 >Xlib/samba4/libndr-standard.so >Xlib/samba4/libndr-standard.so.0 >Xlib/samba4/libndr.so >Xlib/samba4/libndr.so.1 >Xlib/samba4/libnetapi.so >Xlib/samba4/libnetapi.so.0 >Xlib/samba4/libsamba-credentials.so >Xlib/samba4/libsamba-credentials.so.0 >Xlib/samba4/libsamba-errors.so >Xlib/samba4/libsamba-errors.so.1 >Xlib/samba4/libsamba-hostconfig.so >Xlib/samba4/libsamba-hostconfig.so.0 >Xlib/samba4/libsamba-passdb.so >Xlib/samba4/libsamba-passdb.so.0 >X%%SAMBA4_PYTHON%%lib/samba4/libsamba-policy.so >X%%SAMBA4_PYTHON%%lib/samba4/libsamba-policy.so.0 >Xlib/samba4/libsamba-util.so >Xlib/samba4/libsamba-util.so.0 >Xlib/samba4/libsamdb.so >Xlib/samba4/libsamdb.so.0 >Xlib/samba4/libsmbclient.so >Xlib/samba4/libsmbclient.so.0 >Xlib/samba4/libsmbconf.so >Xlib/samba4/libsmbconf.so.0 >X%%LDAP%%lib/samba4/libsmbldap.so >X%%LDAP%%lib/samba4/libsmbldap.so.2 >Xlib/samba4/libtevent-util.so >Xlib/samba4/libtevent-util.so.0 >Xlib/samba4/libwbclient.so >Xlib/samba4/libwbclient.so.0 >X%%AD_DC%%lib/samba4/modules/bind9/dlz_bind9.so >X%%AD_DC%%lib/samba4/modules/bind9/dlz_bind9_10.so >X%%AD_DC%%lib/samba4/modules/bind9/dlz_bind9_11.so >X%%AD_DC%%lib/samba4/modules/bind9/dlz_bind9_12.so >X%%AD_DC%%lib/samba4/modules/bind9/dlz_bind9_14.so >X%%AD_DC%%lib/samba4/modules/bind9/dlz_bind9_16.so >X%%AD_DC%%lib/samba4/modules/bind9/dlz_bind9_9.so >X%%AD_DC%%lib/samba4/modules/gensec/krb5.so >Xlib/samba4/modules/idmap/ad.so >Xlib/samba4/modules/idmap/autorid.so >Xlib/samba4/modules/idmap/hash.so >Xlib/samba4/modules/idmap/ldap.so >Xlib/samba4/modules/idmap/nss.so >Xlib/samba4/modules/idmap/rfc2307.so >Xlib/samba4/modules/idmap/rid.so >Xlib/samba4/modules/idmap/script.so >Xlib/samba4/modules/idmap/tdb.so >Xlib/samba4/modules/idmap/tdb2.so >Xlib/samba4/modules/krb5/winbind_krb5_locator.so >X%%AD_DC%%lib/samba4/modules/ldb/acl.so >X%%AD_DC%%lib/samba4/modules/ldb/aclread.so >X%%AD_DC%%lib/samba4/modules/ldb/anr.so >X%%SAMBA4_BUNDLED_LDB%%lib/samba4/modules/ldb/asq.so >X%%AD_DC%%lib/samba4/modules/ldb/audit_log.so >X%%AD_DC%%%%SAMBA4_BUNDLED_LDB%%lib/samba4/modules/ldb/count_attrs.so >X%%AD_DC%%lib/samba4/modules/ldb/descriptor.so >X%%AD_DC%%lib/samba4/modules/ldb/dirsync.so >X%%AD_DC%%lib/samba4/modules/ldb/dns_notify.so >X%%AD_DC%%lib/samba4/modules/ldb/dsdb_notification.so >X%%AD_DC%%lib/samba4/modules/ldb/encrypted_secrets.so >X%%AD_DC%%lib/samba4/modules/ldb/extended_dn_in.so >X%%AD_DC%%lib/samba4/modules/ldb/extended_dn_out.so >X%%AD_DC%%lib/samba4/modules/ldb/extended_dn_store.so >X%%AD_DC%%lib/samba4/modules/ldb/group_audit_log.so >Xlib/samba4/modules/ldb/ildap.so >X%%AD_DC%%lib/samba4/modules/ldb/instancetype.so >X%%AD_DC%%lib/samba4/modules/ldb/lazy_commit.so >X%%SAMBA4_BUNDLED_LDB%%lib/samba4/modules/ldb/ldb.so >Xlib/samba4/modules/ldb/ldbsamba_extensions.so >X%%AD_DC%%lib/samba4/modules/ldb/linked_attributes.so >X%%AD_DC%%lib/samba4/modules/ldb/mdb.so >X%%AD_DC%%lib/samba4/modules/ldb/new_partition.so >X%%AD_DC%%lib/samba4/modules/ldb/objectclass.so >X%%AD_DC%%lib/samba4/modules/ldb/objectclass_attrs.so >X%%AD_DC%%lib/samba4/modules/ldb/objectguid.so >X%%AD_DC%%lib/samba4/modules/ldb/operational.so >X%%AD_DC%%lib/samba4/modules/ldb/paged_results.so >X%%SAMBA4_BUNDLED_LDB%%lib/samba4/modules/ldb/paged_searches.so >X%%AD_DC%%lib/samba4/modules/ldb/partition.so >X%%AD_DC%%lib/samba4/modules/ldb/password_hash.so >X%%AD_DC%%lib/samba4/modules/ldb/ranged_results.so >X%%SAMBA4_BUNDLED_LDB%%lib/samba4/modules/ldb/rdn_name.so >X%%AD_DC%%lib/samba4/modules/ldb/repl_meta_data.so >X%%AD_DC%%lib/samba4/modules/ldb/resolve_oids.so >X%%AD_DC%%lib/samba4/modules/ldb/rootdse.so >X%%AD_DC%%lib/samba4/modules/ldb/samba3sam.so >X%%AD_DC%%lib/samba4/modules/ldb/samba3sid.so >X%%AD_DC%%lib/samba4/modules/ldb/samba_dsdb.so >X%%AD_DC%%lib/samba4/modules/ldb/samba_secrets.so >X%%AD_DC%%lib/samba4/modules/ldb/samldb.so >X%%SAMBA4_BUNDLED_LDB%%lib/samba4/modules/ldb/sample.so >X%%AD_DC%%lib/samba4/modules/ldb/schema_data.so >X%%AD_DC%%lib/samba4/modules/ldb/schema_load.so >X%%AD_DC%%lib/samba4/modules/ldb/secrets_tdb_sync.so >X%%SAMBA4_BUNDLED_LDB%%lib/samba4/modules/ldb/server_sort.so >X%%AD_DC%%lib/samba4/modules/ldb/show_deleted.so >X%%SAMBA4_BUNDLED_LDB%%lib/samba4/modules/ldb/skel.so >X%%AD_DC%%lib/samba4/modules/ldb/subtree_delete.so >X%%AD_DC%%lib/samba4/modules/ldb/subtree_rename.so >X%%SAMBA4_BUNDLED_LDB%%lib/samba4/modules/ldb/tdb.so >X%%AD_DC%%lib/samba4/modules/ldb/tombstone_reanimate.so >X%%AD_DC%%lib/samba4/modules/ldb/unique_object_sids.so >X%%AD_DC%%lib/samba4/modules/ldb/update_keytab.so >X%%AD_DC%%lib/samba4/modules/ldb/vlv.so >X%%AD_DC%%lib/samba4/modules/ldb/wins_ldb.so >Xlib/samba4/modules/nss_info/hash.so >Xlib/samba4/modules/nss_info/rfc2307.so >Xlib/samba4/modules/nss_info/sfu.so >Xlib/samba4/modules/nss_info/sfu20.so >Xlib/samba4/modules/nss_info/template.so >X%%AD_DC%%lib/samba4/modules/process_model/prefork.so >X%%AD_DC%%lib/samba4/modules/process_model/standard.so >X%%AD_DC%%lib/samba4/modules/service/cldap.so >X%%AD_DC%%lib/samba4/modules/service/dcerpc.so >X%%AD_DC%%lib/samba4/modules/service/dns.so >X%%AD_DC%%lib/samba4/modules/service/dns_update.so >X%%AD_DC%%lib/samba4/modules/service/drepl.so >X%%AD_DC%%lib/samba4/modules/service/kcc.so >X%%AD_DC%%lib/samba4/modules/service/kdc.so >X%%AD_DC%%lib/samba4/modules/service/ldap.so >X%%AD_DC%%lib/samba4/modules/service/nbtd.so >X%%AD_DC%%lib/samba4/modules/service/ntp_signd.so >X%%AD_DC%%lib/samba4/modules/service/s3fs.so >X%%AD_DC%%lib/samba4/modules/service/winbindd.so >X%%AD_DC%%lib/samba4/modules/service/wrepl.so >Xlib/samba4/modules/vfs/acl_tdb.so >Xlib/samba4/modules/vfs/acl_xattr.so >Xlib/samba4/modules/vfs/aio_fork.so >Xlib/samba4/modules/vfs/aio_pthread.so >Xlib/samba4/modules/vfs/audit.so >Xlib/samba4/modules/vfs/cacheprime.so >Xlib/samba4/modules/vfs/cap.so >Xlib/samba4/modules/vfs/catia.so >Xlib/samba4/modules/vfs/commit.so >Xlib/samba4/modules/vfs/crossrename.so >Xlib/samba4/modules/vfs/default_quota.so >Xlib/samba4/modules/vfs/dirsort.so >Xlib/samba4/modules/vfs/expand_msdfs.so >Xlib/samba4/modules/vfs/extd_audit.so >Xlib/samba4/modules/vfs/fake_perms.so >Xlib/samba4/modules/vfs/freebsd.so >Xlib/samba4/modules/vfs/full_audit.so >Xlib/samba4/modules/vfs/linux_xfs_sgid.so >Xlib/samba4/modules/vfs/media_harmony.so >Xlib/samba4/modules/vfs/offline.so >X%%AD_DC%%lib/samba4/modules/vfs/posix_eadb.so >Xlib/samba4/modules/vfs/preopen.so >Xlib/samba4/modules/vfs/readahead.so >Xlib/samba4/modules/vfs/readonly.so >Xlib/samba4/modules/vfs/recycle.so >Xlib/samba4/modules/vfs/shadow_copy.so >Xlib/samba4/modules/vfs/shadow_copy2.so >Xlib/samba4/modules/vfs/shell_snap.so >Xlib/samba4/modules/vfs/streams_depot.so >Xlib/samba4/modules/vfs/streams_xattr.so >Xlib/samba4/modules/vfs/syncops.so >Xlib/samba4/modules/vfs/time_audit.so >Xlib/samba4/modules/vfs/unityed_media.so >Xlib/samba4/modules/vfs/virusfilter.so >Xlib/samba4/modules/vfs/widelinks.so >Xlib/samba4/modules/vfs/worm.so >Xlib/samba4/modules/vfs/xattr_tdb.so >Xlib/samba4/modules/vfs/zfsacl.so >Xlib/samba4/private/libCHARSET3-samba4.so >X%%AD_DC%%%%GSSAPI_BUILTIN%%lib/samba4/private/libHDB-SAMBA4-samba4.so >Xlib/samba4/private/libLIBWBCLIENT-OLD-samba4.so >Xlib/samba4/private/libMESSAGING-SEND-samba4.so >Xlib/samba4/private/libMESSAGING-samba4.so >Xlib/samba4/private/libaddns-samba4.so >Xlib/samba4/private/libads-samba4.so >X%%GSSAPI_BUILTIN%%lib/samba4/private/libasn1-samba4.so.8 >Xlib/samba4/private/libasn1util-samba4.so >Xlib/samba4/private/libauth-samba4.so >Xlib/samba4/private/libauth-unix-token-samba4.so >Xlib/samba4/private/libauth4-samba4.so >Xlib/samba4/private/libauthkrb5-samba4.so >Xlib/samba4/private/libcli-cldap-samba4.so >Xlib/samba4/private/libcli-ldap-common-samba4.so >Xlib/samba4/private/libcli-ldap-samba4.so >Xlib/samba4/private/libcli-nbt-samba4.so >Xlib/samba4/private/libcli-smb-common-samba4.so >Xlib/samba4/private/libcli-spoolss-samba4.so >Xlib/samba4/private/libcliauth-samba4.so >Xlib/samba4/private/libclidns-samba4.so >Xlib/samba4/private/libcluster-samba4.so >Xlib/samba4/private/libcmdline-contexts-samba4.so >Xlib/samba4/private/libcmdline-credentials-samba4.so >X%%GSSAPI_BUILTIN%%lib/samba4/private/libcom_err-samba4.so.0 >Xlib/samba4/private/libcommon-auth-samba4.so >X%%AD_DC%%lib/samba4/private/libdb-glue-samba4.so >Xlib/samba4/private/libdbwrap-samba4.so >Xlib/samba4/private/libdcerpc-samba-samba4.so >Xlib/samba4/private/libdcerpc-samba4.so >X%%AD_DC%%lib/samba4/private/libdfs-server-ad-samba4.so >X%%AD_DC%%lib/samba4/private/libdlz-bind9-for-torture-samba4.so >X%%AD_DC%%lib/samba4/private/libdnsserver-common-samba4.so >X%%AD_DC%%lib/samba4/private/libdsdb-garbage-collect-tombstones-samba4.so >Xlib/samba4/private/libdsdb-module-samba4.so >Xlib/samba4/private/libevents-samba4.so >Xlib/samba4/private/libflag-mapping-samba4.so >Xlib/samba4/private/libgenrand-samba4.so >Xlib/samba4/private/libgensec-samba4.so >Xlib/samba4/private/libgpext-samba4.so >Xlib/samba4/private/libgpo-samba4.so >Xlib/samba4/private/libgse-samba4.so >X%%GSSAPI_BUILTIN%%lib/samba4/private/libgssapi-samba4.so.2 >X%%GSSAPI_BUILTIN%%lib/samba4/private/libhcrypto-samba4.so.5 >X%%GSSAPI_BUILTIN%%lib/samba4/private/libhdb-samba4.so.11 >X%%GSSAPI_BUILTIN%%lib/samba4/private/libheimbase-samba4.so.1 >X%%GSSAPI_BUILTIN%%lib/samba4/private/libheimntlm-samba4.so.1 >Xlib/samba4/private/libhttp-samba4.so >X%%GSSAPI_BUILTIN%%lib/samba4/private/libhx509-samba4.so.5 >Xlib/samba4/private/libidmap-samba4.so >Xlib/samba4/private/libinterfaces-samba4.so >Xlib/samba4/private/libiov-buf-samba4.so >X%%GSSAPI_BUILTIN%%lib/samba4/private/libkdc-samba4.so.2 >X%%GSSAPI_BUILTIN%%lib/samba4/private/libkrb5-samba4.so.26 >Xlib/samba4/private/libkrb5samba-samba4.so >X%%SAMBA4_BUNDLED_LDB%%lib/samba4/private/libldb-cmdline-samba4.so >X%%SAMBA4_BUNDLED_LDB%%lib/samba4/private/libldb-key-value-samba4.so >X%%AD_DC%%lib/samba4/private/libldb-mdb-int-samba4.so >X%%SAMBA4_BUNDLED_LDB%%lib/samba4/private/libldb-tdb-err-map-samba4.so >X%%SAMBA4_BUNDLED_LDB%%lib/samba4/private/libldb-tdb-int-samba4.so >X%%SAMBA4_BUNDLED_LDB%%lib/samba4/private/libldb.so.2 >Xlib/samba4/private/libldbsamba-samba4.so >Xlib/samba4/private/liblibcli-lsa3-samba4.so >Xlib/samba4/private/liblibcli-netlogon3-samba4.so >Xlib/samba4/private/liblibsmb-samba4.so >Xlib/samba4/private/libmessages-dgm-samba4.so >Xlib/samba4/private/libmessages-util-samba4.so >Xlib/samba4/private/libmscat-samba4.so >Xlib/samba4/private/libmsghdr-samba4.so >Xlib/samba4/private/libmsrpc3-samba4.so >Xlib/samba4/private/libndr-samba-samba4.so >Xlib/samba4/private/libndr-samba4.so >Xlib/samba4/private/libnet-keytab-samba4.so >Xlib/samba4/private/libnetif-samba4.so >Xlib/samba4/private/libnpa-tstream-samba4.so >Xlib/samba4/private/libnss-info-samba4.so >X%%AD_DC%%lib/samba4/private/libpac-samba4.so >Xlib/samba4/private/libpopt-samba3-cmdline-samba4.so >Xlib/samba4/private/libpopt-samba3-samba4.so >Xlib/samba4/private/libposix-eadb-samba4.so >Xlib/samba4/private/libprinter-driver-samba4.so >Xlib/samba4/private/libprinting-migrate-samba4.so >X%%AD_DC%%lib/samba4/private/libprocess-model-samba4.so >X%%SAMBA4_PYTHON%%lib/samba4/private/libpyldb-util.so.2 >Xlib/samba4/private/libregistry-samba4.so >Xlib/samba4/private/libreplace-samba4.so >X%%GSSAPI_BUILTIN%%lib/samba4/private/libroken-samba4.so.19 >Xlib/samba4/private/libsamba-cluster-support-samba4.so >Xlib/samba4/private/libsamba-debug-samba4.so >Xlib/samba4/private/libsamba-modules-samba4.so >X%%SAMBA4_PYTHON%%lib/samba4/private/libsamba-net-samba4.so >X%%SAMBA4_PYTHON%%lib/samba4/private/libsamba-python-samba4.so >Xlib/samba4/private/libsamba-security-samba4.so >Xlib/samba4/private/libsamba-sockets-samba4.so >Xlib/samba4/private/libsamba3-util-samba4.so >Xlib/samba4/private/libsamdb-common-samba4.so >X%%AD_DC%%lib/samba4/private/libscavenge-dns-records-samba4.so >Xlib/samba4/private/libsecrets3-samba4.so >Xlib/samba4/private/libserver-id-db-samba4.so >Xlib/samba4/private/libserver-role-samba4.so >X%%AD_DC%%lib/samba4/private/libservice-samba4.so >Xlib/samba4/private/libshares-samba4.so >Xlib/samba4/private/libsmb-transport-samba4.so >Xlib/samba4/private/libsmbclient-raw-samba4.so >Xlib/samba4/private/libsmbd-base-samba4.so >Xlib/samba4/private/libsmbd-shim-samba4.so >X%%LDAP%%lib/samba4/private/libsmbldaphelper-samba4.so >Xlib/samba4/private/libsmbpasswdparser-samba4.so >Xlib/samba4/private/libsocket-blocking-samba4.so >Xlib/samba4/private/libsys-rw-samba4.so >Xlib/samba4/private/libtalloc-report-printf-samba4.so >Xlib/samba4/private/libtalloc-report-samba4.so >Xlib/samba4/private/libtdb-wrap-samba4.so >Xlib/samba4/private/libtime-basic-samba4.so >Xlib/samba4/private/libtorture-samba4.so >Xlib/samba4/private/libtrusts-util-samba4.so >Xlib/samba4/private/libutil-cmdline-samba4.so >Xlib/samba4/private/libutil-reg-samba4.so >Xlib/samba4/private/libutil-setid-samba4.so >Xlib/samba4/private/libutil-tdb-samba4.so >Xlib/samba4/private/libwinbind-client-samba4.so >X%%GSSAPI_BUILTIN%%lib/samba4/private/libwind-samba4.so.0 >Xlib/samba4/private/libxattr-tdb-samba4.so >Xlibdata/ldconfig/samba413-OLN >Xlibdata/pkgconfig/dcerpc.pc >Xlibdata/pkgconfig/dcerpc_samr.pc >X%%AD_DC%%libdata/pkgconfig/dcerpc_server.pc >Xlibdata/pkgconfig/ndr.pc >Xlibdata/pkgconfig/ndr_krb5pac.pc >Xlibdata/pkgconfig/ndr_nbt.pc >Xlibdata/pkgconfig/ndr_standard.pc >Xlibdata/pkgconfig/netapi.pc >Xlibdata/pkgconfig/samba-credentials.pc >Xlibdata/pkgconfig/samba-hostconfig.pc >X%%SAMBA4_PYTHON%%libdata/pkgconfig/samba-policy.pc >Xlibdata/pkgconfig/samba-util.pc >Xlibdata/pkgconfig/samdb.pc >Xlibdata/pkgconfig/smbclient.pc >Xlibdata/pkgconfig/wbclient.pc >Xman/man1/dbwrap_tool.1.gz >Xman/man1/findsmb.1.gz >Xman/man1/gentest.1.gz >Xman/man1/locktest.1.gz >Xman/man1/log2pcap.1.gz >Xman/man1/masktest.1.gz >Xman/man1/mdfind.1.gz >Xman/man1/mvxattr.1.gz >Xman/man1/ndrdump.1.gz >Xman/man1/nmblookup.1.gz >Xman/man1/ntlm_auth.1.gz >Xman/man1/oLschema2ldif.1.gz >Xman/man1/profiles.1.gz >Xman/man1/regdiff.1.gz >Xman/man1/regpatch.1.gz >Xman/man1/regshell.1.gz >Xman/man1/regtree.1.gz >Xman/man1/rpcclient.1.gz >X%%SAMBA4_BUNDLED_LDB%%man/man1/samba-ldbadd.1.gz >X%%SAMBA4_BUNDLED_LDB%%man/man1/samba-ldbdel.1.gz >X%%SAMBA4_BUNDLED_LDB%%man/man1/samba-ldbedit.1.gz >X%%SAMBA4_BUNDLED_LDB%%man/man1/samba-ldbmodify.1.gz >X%%SAMBA4_BUNDLED_LDB%%man/man1/samba-ldbrename.1.gz >X%%SAMBA4_BUNDLED_LDB%%man/man1/samba-ldbsearch.1.gz >Xman/man1/sharesec.1.gz >Xman/man1/smbcacls.1.gz >Xman/man1/smbclient.1.gz >Xman/man1/smbcontrol.1.gz >Xman/man1/smbcquotas.1.gz >Xman/man1/smbget.1.gz >Xman/man1/smbstatus.1.gz >Xman/man1/smbtar.1.gz >X%%SAMBA4_PYTHON%%man/man1/smbtorture.1.gz >Xman/man1/smbtree.1.gz >Xman/man1/testparm.1.gz >Xman/man1/vfstest.1.gz >Xman/man1/wbinfo.1.gz >Xman/man5/lmhosts.5.gz >Xman/man5/pam_winbind.conf.5.gz >Xman/man5/smb.conf.5.gz >Xman/man5/%%SAMBA4_CONFIG%%.5.gz >Xman/man5/smbgetrc.5.gz >Xman/man5/smbpasswd.5.gz >Xman/man7/libsmbclient.7.gz >Xman/man7/samba.7.gz >Xman/man7/traffic_learner.7.gz >Xman/man7/traffic_replay.7.gz >Xman/man8/cifsdd.8.gz >Xman/man8/eventlogadm.8.gz >Xman/man8/idmap_ad.8.gz >Xman/man8/idmap_autorid.8.gz >Xman/man8/idmap_hash.8.gz >Xman/man8/idmap_ldap.8.gz >Xman/man8/idmap_nss.8.gz >Xman/man8/idmap_rfc2307.8.gz >Xman/man8/idmap_rid.8.gz >Xman/man8/idmap_script.8.gz >Xman/man8/idmap_tdb.8.gz >Xman/man8/idmap_tdb2.8.gz >Xman/man8/net.8.gz >Xman/man8/nmbd.8.gz >Xman/man8/pam_winbind.8.gz >Xman/man8/pdbedit.8.gz >X%%SAMBA4_PYTHON%%man/man8/samba-gpupdate.8.gz >Xman/man8/samba-regedit.8.gz >Xman/man8/samba-tool.8.gz >Xman/man8/samba.8.gz >Xman/man8/samba_downgrade_db.8.gz >Xman/man8/smbd.8.gz >Xman/man8/smbpasswd.8.gz >Xman/man8/smbspool.8.gz >Xman/man8/vfs_acl_tdb.8.gz >Xman/man8/vfs_acl_xattr.8.gz >Xman/man8/vfs_aio_fork.8.gz >Xman/man8/vfs_aio_pthread.8.gz >Xman/man8/vfs_audit.8.gz >Xman/man8/vfs_cacheprime.8.gz >Xman/man8/vfs_cap.8.gz >Xman/man8/vfs_catia.8.gz >Xman/man8/vfs_commit.8.gz >Xman/man8/vfs_crossrename.8.gz >Xman/man8/vfs_default_quota.8.gz >Xman/man8/vfs_dirsort.8.gz >Xman/man8/vfs_extd_audit.8.gz >Xman/man8/vfs_fake_perms.8.gz >Xman/man8/vfs_freebsd.8.gz >Xman/man8/vfs_full_audit.8.gz >Xman/man8/vfs_linux_xfs_sgid.8.gz >Xman/man8/vfs_media_harmony.8.gz >Xman/man8/vfs_offline.8.gz >Xman/man8/vfs_preopen.8.gz >Xman/man8/vfs_readahead.8.gz >Xman/man8/vfs_readonly.8.gz >Xman/man8/vfs_recycle.8.gz >Xman/man8/vfs_shadow_copy.8.gz >Xman/man8/vfs_shadow_copy2.8.gz >Xman/man8/vfs_shell_snap.8.gz >Xman/man8/vfs_streams_depot.8.gz >Xman/man8/vfs_streams_xattr.8.gz >Xman/man8/vfs_syncops.8.gz >Xman/man8/vfs_time_audit.8.gz >Xman/man8/vfs_unityed_media.8.gz >Xman/man8/vfs_virusfilter.8.gz >Xman/man8/vfs_widelinks.8.gz >Xman/man8/vfs_worm.8.gz >Xman/man8/vfs_xattr_tdb.8.gz >Xman/man8/vfs_zfsacl.8.gz >Xman/man8/winbind_krb5_locator.8.gz >Xman/man8/winbindd.8.gz >Xsbin/eventlogadm >Xsbin/nmbd >X%%AD_DC%%sbin/samba >X%%SAMBA4_PYTHON%%sbin/samba-gpupdate >X%%AD_DC%%sbin/samba_dnsupdate >X%%AD_DC%%sbin/samba_downgrade_db >X%%AD_DC%%sbin/samba_kcc >X%%AD_DC%%sbin/samba_spnupdate >X%%AD_DC%%sbin/samba_upgradedns >Xsbin/smbd >Xsbin/winbindd >X%%PORTDOCS%%%%DOCSDIR%%/README.FreeBSD >X%%AD_DC%%%%DATADIR%%/samba/admx/en-US/samba.adml >X%%AD_DC%%%%DATADIR%%/samba/admx/samba.admx >X%%AD_DC%%%%DATADIR%%/setup/ad-schema/AD_DS_Attributes__Windows_Server_2012_R2.ldf >X%%AD_DC%%%%DATADIR%%/setup/ad-schema/AD_DS_Attributes__Windows_Server_2016.ldf >X%%AD_DC%%%%DATADIR%%/setup/ad-schema/AD_DS_Classes__Windows_Server_2012_R2.ldf >X%%AD_DC%%%%DATADIR%%/setup/ad-schema/AD_DS_Classes__Windows_Server_2016.ldf >X%%AD_DC%%%%DATADIR%%/setup/ad-schema/Attributes_for_AD_DS__Windows_Server_2008_R2.ldf >X%%AD_DC%%%%DATADIR%%/setup/ad-schema/Attributes_for_AD_DS__Windows_Server_2012.ldf >X%%AD_DC%%%%DATADIR%%/setup/ad-schema/Classes_for_AD_DS__Windows_Server_2008_R2.ldf >X%%AD_DC%%%%DATADIR%%/setup/ad-schema/Classes_for_AD_DS__Windows_Server_2012.ldf >X%%AD_DC%%%%DATADIR%%/setup/ad-schema/MS-AD_Schema_2K8_Attributes.txt >X%%AD_DC%%%%DATADIR%%/setup/ad-schema/MS-AD_Schema_2K8_Classes.txt >X%%AD_DC%%%%DATADIR%%/setup/ad-schema/MS-AD_Schema_2K8_R2_Attributes.txt >X%%AD_DC%%%%DATADIR%%/setup/ad-schema/MS-AD_Schema_2K8_R2_Classes.txt >X%%AD_DC%%%%DATADIR%%/setup/ad-schema/licence.txt >X%%AD_DC%%%%DATADIR%%/setup/adprep/WindowsServerDocs/Forest-Wide-Updates.md >X%%AD_DC%%%%DATADIR%%/setup/adprep/WindowsServerDocs/Sch49.ldf.diff >X%%AD_DC%%%%DATADIR%%/setup/adprep/WindowsServerDocs/Sch50.ldf.diff >X%%AD_DC%%%%DATADIR%%/setup/adprep/WindowsServerDocs/Sch51.ldf.diff >X%%AD_DC%%%%DATADIR%%/setup/adprep/WindowsServerDocs/Sch57.ldf.diff >X%%AD_DC%%%%DATADIR%%/setup/adprep/WindowsServerDocs/Sch59.ldf.diff >X%%AD_DC%%%%DATADIR%%/setup/adprep/WindowsServerDocs/Schema-Updates.md >X%%AD_DC%%%%DATADIR%%/setup/adprep/fix-forest-rev.ldf >X%%AD_DC%%%%DATADIR%%/setup/aggregate_schema.ldif >X%%AD_DC%%%%DATADIR%%/setup/display-specifiers/DisplaySpecifiers-Win2k0.txt >X%%AD_DC%%%%DATADIR%%/setup/display-specifiers/DisplaySpecifiers-Win2k3.txt >X%%AD_DC%%%%DATADIR%%/setup/display-specifiers/DisplaySpecifiers-Win2k3R2.txt >X%%AD_DC%%%%DATADIR%%/setup/display-specifiers/DisplaySpecifiers-Win2k8.txt >X%%AD_DC%%%%DATADIR%%/setup/display-specifiers/DisplaySpecifiers-Win2k8R2.txt >X%%AD_DC%%%%DATADIR%%/setup/dns_update_list >X%%AD_DC%%%%DATADIR%%/setup/extended-rights.ldif >X%%AD_DC%%%%DATADIR%%/setup/idmap_init.ldif >X%%AD_DC%%%%DATADIR%%/setup/krb5.conf >X%%AD_DC%%%%DATADIR%%/setup/named.conf >X%%AD_DC%%%%DATADIR%%/setup/named.conf.dlz >X%%AD_DC%%%%DATADIR%%/setup/named.conf.update >X%%AD_DC%%%%DATADIR%%/setup/named.txt >X%%AD_DC%%%%DATADIR%%/setup/prefixMap.txt >X%%AD_DC%%%%DATADIR%%/setup/provision.ldif >X%%AD_DC%%%%DATADIR%%/setup/provision.reg >X%%AD_DC%%%%DATADIR%%/setup/provision.zone >X%%AD_DC%%%%DATADIR%%/setup/provision_basedn.ldif >X%%AD_DC%%%%DATADIR%%/setup/provision_basedn_modify.ldif >X%%AD_DC%%%%DATADIR%%/setup/provision_basedn_options.ldif >X%%AD_DC%%%%DATADIR%%/setup/provision_basedn_references.ldif >X%%AD_DC%%%%DATADIR%%/setup/provision_computers_add.ldif >X%%AD_DC%%%%DATADIR%%/setup/provision_computers_modify.ldif >X%%AD_DC%%%%DATADIR%%/setup/provision_configuration.ldif >X%%AD_DC%%%%DATADIR%%/setup/provision_configuration_basedn.ldif >X%%AD_DC%%%%DATADIR%%/setup/provision_configuration_modify.ldif >X%%AD_DC%%%%DATADIR%%/setup/provision_configuration_references.ldif >X%%AD_DC%%%%DATADIR%%/setup/provision_dns_accounts_add.ldif >X%%AD_DC%%%%DATADIR%%/setup/provision_dns_add_samba.ldif >X%%AD_DC%%%%DATADIR%%/setup/provision_dnszones_add.ldif >X%%AD_DC%%%%DATADIR%%/setup/provision_dnszones_modify.ldif >X%%AD_DC%%%%DATADIR%%/setup/provision_dnszones_partitions.ldif >X%%AD_DC%%%%DATADIR%%/setup/provision_group_policy.ldif >X%%AD_DC%%%%DATADIR%%/setup/provision_init.ldif >X%%AD_DC%%%%DATADIR%%/setup/provision_partitions.ldif >X%%AD_DC%%%%DATADIR%%/setup/provision_privilege.ldif >X%%AD_DC%%%%DATADIR%%/setup/provision_rootdse_add.ldif >X%%AD_DC%%%%DATADIR%%/setup/provision_rootdse_modify.ldif >X%%AD_DC%%%%DATADIR%%/setup/provision_schema_basedn.ldif >X%%AD_DC%%%%DATADIR%%/setup/provision_schema_basedn_modify.ldif >X%%AD_DC%%%%DATADIR%%/setup/provision_self_join.ldif >X%%AD_DC%%%%DATADIR%%/setup/provision_self_join_config.ldif >X%%AD_DC%%%%DATADIR%%/setup/provision_self_join_modify.ldif >X%%AD_DC%%%%DATADIR%%/setup/provision_self_join_modify_config.ldif >X%%AD_DC%%%%DATADIR%%/setup/provision_self_join_modify_schema.ldif >X%%AD_DC%%%%DATADIR%%/setup/provision_users.ldif >X%%AD_DC%%%%DATADIR%%/setup/provision_users_add.ldif >X%%AD_DC%%%%DATADIR%%/setup/provision_users_modify.ldif >X%%AD_DC%%%%DATADIR%%/setup/provision_well_known_sec_princ.ldif >X%%AD_DC%%%%DATADIR%%/setup/schema_samba4.ldif >X%%AD_DC%%%%DATADIR%%/setup/secrets.ldif >X%%AD_DC%%%%DATADIR%%/setup/secrets_dns.ldif >X%%AD_DC%%%%DATADIR%%/setup/secrets_init.ldif >X%%AD_DC%%%%DATADIR%%/setup/share.ldif >X%%AD_DC%%%%DATADIR%%/setup/spn_update_list >X%%AD_DC%%%%DATADIR%%/setup/ypServ30.ldif >X%%AD_DC%%@dir %%SAMBA4_MODULEDIR%%/service >X%%AD_DC%%@dir %%SAMBA4_MODULEDIR%%/process_model >X@dir %%SAMBA4_MODULEDIR%%/auth >X@dir %%SAMBA4_MODULEDIR%%/gpext >X@dir %%SAMBA4_MODULEDIR%%/pdb >X@dir %%SAMBA4_MODULEDIR%%/perfcount >X@dir %%SAMBA4_BINDDNSDIR%% >X@dir %%SAMBA4_PRIVATEDIR%% >X@dir %%SAMBA4_LOCKDIR%% >X@dir %%SAMBA4_LOGDIR%% >X@dir %%SAMBA4_RUNDIR%% >X@comment unverified inherited block >X%%SPOTLIGHT%%%%DATADIR%%/samba/mdssvc/elasticsearch_mappings.json >X@dir %%SAMBA4_MODULEDIR%%/nss_info >X@dir %%SAMBA4_MODULEDIR%%/ldb >X@dir %%SAMBA4_MODULEDIR%%/idmap >X@dir %%SAMBA4_MODULEDIR%%/gensec >X@dir %%SAMBA4_MODULEDIR%%/bind9 >X@dir %%SAMBA4_MODULEDIR%% >X@dir %%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool >X@dir %%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc >X@dir %%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests/blackbox >X@dir %%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/tests >X@dir %%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/samba3 >X@dir %%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/provision >X@dir %%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/netcmd >X@dir %%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba/dcerpc >X@dir %%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/samba >X%%PKGCONFIGDIR%%/dcerpc.pc >X%%PKGCONFIGDIR%%/dcerpc_samr.pc >X%%AD_DC%%%%PKGCONFIGDIR%%/dcerpc_server.pc >X%%PKGCONFIGDIR%%/ndr.pc >X%%PKGCONFIGDIR%%/ndr_krb5pac.pc >X%%PKGCONFIGDIR%%/ndr_nbt.pc >X%%PKGCONFIGDIR%%/ndr_standard.pc >X%%PKGCONFIGDIR%%/netapi.pc >X%%PKGCONFIGDIR%%/samba-credentials.pc >X%%PKGCONFIGDIR%%/samba-hostconfig.pc >X%%SAMBA4_PYTHON%%%%PKGCONFIGDIR%%/samba-policy%%PYTHON_EXT_SUFFIX%%.pc >X%%PKGCONFIGDIR%%/samba-util.pc >X%%PKGCONFIGDIR%%/samdb.pc >X%%PKGCONFIGDIR%%/smbclient.pc >X%%PKGCONFIGDIR%%/wbclient.pc >X%%SAMBA4_BUNDLED_CMOCKA%%lib/samba4/private/libcmocka-samba4.so >X%%SAMBA4_BUNDLED_TALLOC%%%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/talloc%%PYTHON_EXT_SUFFIX%%.so >X%%SAMBA4_BUNDLED_TALLOC%%%%SAMBA4_PYTHON%%lib/samba4/private/libpytalloc-util.so.2 >X%%SAMBA4_BUNDLED_TALLOC%%lib/samba4/private/libtalloc.so.2 >X%%SAMBA4_BUNDLED_TALLOC%%man/man3/talloc.3.gz >X%%SAMBA4_BUNDLED_TDB%%%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/_tdb_text.py >X%%SAMBA4_BUNDLED_TDB%%%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/tdb%%PYTHON_EXT_SUFFIX%%.so >X%%SAMBA4_BUNDLED_TDB%%bin/samba-tdbbackup >X%%SAMBA4_BUNDLED_TDB%%bin/samba-tdbdump >X%%SAMBA4_BUNDLED_TDB%%bin/samba-tdbrestore >X%%SAMBA4_BUNDLED_TDB%%bin/samba-tdbtool >X%%SAMBA4_BUNDLED_TDB%%lib/samba4/private/libtdb.so.1 >X%%SAMBA4_BUNDLED_TEVENT%%%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/_tevent%%PYTHON_EXT_SUFFIX%%.so >X%%SAMBA4_BUNDLED_TEVENT%%%%SAMBA4_PYTHON%%%%PYTHON_SITELIBDIR%%/tevent.py >X%%SAMBA4_BUNDLED_TEVENT%%lib/samba4/private/libtevent.so.0 >X%%SAMBA4_BUNDLED_TDB%%man/man8/samba-tdbbackup.8.gz >X%%SAMBA4_BUNDLED_TDB%%man/man8/samba-tdbdump.8.gz >X%%SAMBA4_BUNDLED_TDB%%man/man8/samba-tdbrestore.8.gz >X%%SAMBA4_BUNDLED_TDB%%man/man8/samba-tdbtool.8.gz >X%%CLUSTER%%bin/ctdb >X%%CLUSTER%%bin/ctdb_diagnostics >X%%CLUSTER%%bin/ltdbtool >X%%CLUSTER%%bin/onnode >X%%CLUSTER%%bin/ping_pong >X%%CLUSTER%%etc/ctdb/ctdb-crash-cleanup.sh >X%%CLUSTER%%etc/ctdb/debug_locks.sh >X%%CLUSTER%%etc/ctdb/debug-hung-script.sh >X%%CLUSTER%%etc/ctdb/events/legacy/00.ctdb.script >X%%CLUSTER%%etc/ctdb/events/legacy/01.reclock.script >X%%CLUSTER%%etc/ctdb/events/legacy/05.system.script >X%%CLUSTER%%etc/ctdb/events/legacy/10.interface.script >X%%CLUSTER%%etc/ctdb/events/notification/README >X%%CLUSTER%%etc/ctdb/functions >X%%CLUSTER%%etc/ctdb/nfs-checks.d/00.portmapper.check >X%%CLUSTER%%etc/ctdb/nfs-checks.d/10.status.check >X%%CLUSTER%%etc/ctdb/nfs-checks.d/20.nfs.check >X%%CLUSTER%%etc/ctdb/nfs-checks.d/30.nlockmgr.check >X%%CLUSTER%%etc/ctdb/nfs-checks.d/40.mountd.check >X%%CLUSTER%%etc/ctdb/nfs-checks.d/50.rquotad.check >X%%CLUSTER%%etc/ctdb/nfs-checks.d/README >X%%CLUSTER%%etc/ctdb/nfs-linux-kernel-callout >X%%CLUSTER%%etc/ctdb/notify.sh >X%%CLUSTER%%etc/ctdb/statd-callout >X%%CLUSTER%%etc/sudoers.d/ctdb >X%%CLUSTER%%lib/samba4/private/libctdb-event-client-samba4.so >X%%CLUSTER%%libexec/ctdb/ctdb_killtcp >X%%CLUSTER%%libexec/ctdb/ctdb_lock_helper >X%%CLUSTER%%libexec/ctdb/ctdb_lvs >X%%CLUSTER%%libexec/ctdb/ctdb_mutex_fcntl_helper >X%%CLUSTER%%libexec/ctdb/ctdb_natgw >X%%CLUSTER%%libexec/ctdb/ctdb_recovery_helper >X%%CLUSTER%%libexec/ctdb/ctdb_takeover_helper >X%%CLUSTER%%libexec/ctdb/ctdb-config >X%%CLUSTER%%libexec/ctdb/ctdb-event >X%%CLUSTER%%libexec/ctdb/ctdb-eventd >X%%CLUSTER%%libexec/ctdb/ctdb-path >X%%CLUSTER%%libexec/ctdb/smnotify >X%%CLUSTER%%man/man1/ctdb_diagnostics.1.gz >X%%CLUSTER%%man/man1/ctdb.1.gz >X%%CLUSTER%%man/man1/ctdbd_wrapper.1.gz >X%%CLUSTER%%man/man1/ctdbd.1.gz >X%%CLUSTER%%man/man1/ltdbtool.1.gz >X%%CLUSTER%%man/man1/onnode.1.gz >X%%CLUSTER%%man/man1/ping_pong.1.gz >X%%CLUSTER%%man/man5/ctdb-script.options.5.gz >X%%CLUSTER%%man/man5/ctdb.conf.5.gz >X%%CLUSTER%%man/man5/ctdb.sysconfig.5.gz >X%%CLUSTER%%man/man7/ctdb-statistics.7.gz >X%%CLUSTER%%man/man7/ctdb-tunables.7.gz >X%%CLUSTER%%man/man7/ctdb.7.gz >X%%CLUSTER%%sbin/ctdbd >X%%CLUSTER%%sbin/ctdbd_wrapper >X%%CLUSTER%%share/ctdb/events/legacy/00.ctdb.script >X%%CLUSTER%%share/ctdb/events/legacy/01.reclock.script >X%%CLUSTER%%share/ctdb/events/legacy/05.system.script >X%%CLUSTER%%share/ctdb/events/legacy/06.nfs.script >X%%CLUSTER%%share/ctdb/events/legacy/10.interface.script >X%%CLUSTER%%share/ctdb/events/legacy/11.natgw.script >X%%CLUSTER%%share/ctdb/events/legacy/11.routing.script >X%%CLUSTER%%share/ctdb/events/legacy/13.per_ip_routing.script >X%%CLUSTER%%share/ctdb/events/legacy/20.multipathd.script >X%%CLUSTER%%share/ctdb/events/legacy/31.clamd.script >X%%CLUSTER%%share/ctdb/events/legacy/40.vsftpd.script >X%%CLUSTER%%share/ctdb/events/legacy/41.httpd.script >X%%CLUSTER%%share/ctdb/events/legacy/48.netbios.script >X%%CLUSTER%%share/ctdb/events/legacy/49.winbind.script >X%%CLUSTER%%share/ctdb/events/legacy/50.samba.script >X%%CLUSTER%%share/ctdb/events/legacy/60.nfs.script >X%%CLUSTER%%share/ctdb/events/legacy/70.iscsi.script >X%%CLUSTER%%share/ctdb/events/legacy/91.lvs.script >X%%CLUSTER%%@dir /var/lib/ctdb/volatile >X%%CLUSTER%%@dir /var/lib/ctdb/state >X%%CLUSTER%%@dir /var/lib/ctdb/persistent >X%%CLUSTER%%@dir /var/lib/ctdb >X%%CLUSTER%%@dir /var/lib >X%%CLUSTER%%@dir /var/run/ctdb >d2efca8b4fdcd4a395d758d6c8d3b39a >echo c - inofficial/samba413/files >mkdir -p inofficial/samba413/files > /dev/null 2>&1 >echo x - inofficial/samba413/files/patch-buildtools_wafsamba_wscript >sed 's/^X//' >inofficial/samba413/files/patch-buildtools_wafsamba_wscript << 'fedc9500a232726d65ca6b458d330c88' >X--- buildtools/wafsamba/wscript.orig 2020-07-09 09:33:55.000000000 +0000 >X+++ buildtools/wafsamba/wscript 2021-02-15 16:55:47.512487000 +0000 >X@@ -80,12 +80,17 @@ >X help=("private library directory [PREFIX/lib/%s]" % Context.g_module.APPNAME), >X action="store", dest='PRIVATELIBDIR', default=None) >X >X+ opt.add_option('--with-openldap', >X+ help='additional directory to search for OpenLDAP libs', >X+ action='store', dest='ldap_open', default=None, >X+ match = ['Checking for library lber', 'Checking for library ldap']) >X+ >X opt.add_option('--with-libiconv', >X help='additional directory to search for libiconv', >X- action='store', dest='iconv_open', default='/usr/local', >X+ action='store', dest='iconv_open', default=None, >X match = ['Checking for library iconv', 'Checking for iconv_open', 'Checking for header iconv.h']) >X opt.add_option('--without-gettext', >X- help=("Disable use of gettext"), >X+ help=("disable use of gettext"), >X action="store_true", dest='disable_gettext', default=False) >X >X gr = opt.option_group('developer options') >fedc9500a232726d65ca6b458d330c88 >echo x - inofficial/samba413/files/patch-nsswitch_wscript__build >sed 's/^X//' >inofficial/samba413/files/patch-nsswitch_wscript__build << 'd02fd0ad0ca15f39a19d92a7fe8509de' >X--- nsswitch/wscript_build.orig 2019-01-15 10:07:00 UTC >X+++ nsswitch/wscript_build >X@@ -61,12 +61,14 @@ elif (host_os.rfind('freebsd') > -1): >X source='winbind_nss_linux.c winbind_nss_freebsd.c', >X deps='winbind-client', >X realname='nss_winbind.so.1', >X+ install_path='${PAMMODULESDIR}', >X vnum='1') >X >X bld.SAMBA3_LIBRARY('nss_wins', >X source='wins.c wins_freebsd.c', >X deps='''wbclient''', >X realname='nss_wins.so.1', >X+ install_path='${PAMMODULESDIR}', >X vnum='1') >X >X elif (host_os.rfind('netbsd') > -1): >d02fd0ad0ca15f39a19d92a7fe8509de >echo x - inofficial/samba413/files/patch-buildtools_wafsamba_samba__autoconf.py >sed 's/^X//' >inofficial/samba413/files/patch-buildtools_wafsamba_samba__autoconf.py << '29c25c3dc0d326c2da0e0ed967dcfafc' >X--- buildtools/wafsamba/samba_autoconf.py.orig 2020-07-09 09:33:55.000000000 +0000 >X+++ buildtools/wafsamba/samba_autoconf.py 2021-02-15 16:51:53.344711000 +0000 >X@@ -574,7 +574,7 @@ >X >X >X @conf >X-def CHECK_LIB(conf, libs, mandatory=False, empty_decl=True, set_target=True, shlib=False): >X+def CHECK_LIB(conf, libs, mandatory=False, empty_decl=True, set_target=True, shlib=False, msg=None): >X '''check if a set of libraries exist as system libraries >X >X returns the sublist of libs that do exist as a syslib or [] >X@@ -594,11 +594,14 @@ >X ret.append(lib) >X continue >X >X+ if msg is None: >X+ msg = 'Checking for library %s' % lib >X+ >X (ccflags, ldflags, cpppath) = library_flags(conf, lib) >X if shlib: >X- res = conf.check(features='c cshlib', fragment=fragment, lib=lib, uselib_store=lib, cflags=ccflags, ldflags=ldflags, uselib=lib.upper(), mandatory=False) >X+ res = conf.check(features='c cshlib', fragment=fragment, lib=lib, uselib_store=lib, cflags=ccflags, ldflags=ldflags, uselib=lib.upper(), mandatory=False, msg=msg) >X else: >X- res = conf.check(lib=lib, uselib_store=lib, cflags=ccflags, ldflags=ldflags, uselib=lib.upper(), mandatory=False) >X+ res = conf.check(lib=lib, uselib_store=lib, cflags=ccflags, ldflags=ldflags, uselib=lib.upper(), mandatory=False, msg=msg) >X >X if not res: >X if mandatory: >X@@ -962,5 +965,5 @@ >X conf.env.undefined_ldflags = conf.ADD_LDFLAGS('-Wl,-no-undefined', testflags=True) >X >X if (conf.env.undefined_ignore_ldflags == [] and >X- conf.CHECK_LDFLAGS(['-undefined', 'dynamic_lookup'])): >X+ conf.CHECK_LDFLAGS(['-undefined', 'dynamic_lookup'] + conf.env.WERROR_CFLAGS)): >X conf.env.undefined_ignore_ldflags = ['-undefined', 'dynamic_lookup'] >29c25c3dc0d326c2da0e0ed967dcfafc >echo x - inofficial/samba413/files/patch-source4_heimdal_lib_roken_rand.c >sed 's/^X//' >inofficial/samba413/files/patch-source4_heimdal_lib_roken_rand.c << '22e6538fad7140f1372ae5d4360ade3d' >X--- source4/heimdal/lib/roken/rand.c.orig 2019-01-15 10:07:00 UTC >X+++ source4/heimdal/lib/roken/rand.c >X@@ -37,7 +37,6 @@ void ROKEN_LIB_FUNCTION >X rk_random_init(void) >X { >X #if defined(HAVE_ARC4RANDOM) >X- arc4random_stir(); >X #elif defined(HAVE_SRANDOMDEV) >X srandomdev(); >X #elif defined(HAVE_RANDOM) >22e6538fad7140f1372ae5d4360ade3d >echo x - inofficial/samba413/files/patch-source3_smbd_utmp.c >sed 's/^X//' >inofficial/samba413/files/patch-source3_smbd_utmp.c << 'cff8041bb9d36fb32f8ebbcc420a8c11' >X--- source3/smbd/utmp.c.orig 2019-01-15 10:07:00 UTC >X+++ source3/smbd/utmp.c >X@@ -257,7 +257,7 @@ static char *uw_pathname(TALLOC_CTX *ctx >X Update utmp file directly. No subroutine interface: probably a BSD system. >X ****************************************************************************/ >X >X-static void pututline_my(const char *uname, struct utmp *u, bool claim) >X+static void pututline_my(const char *uname, STRUCT_UTMP *u, bool claim) >X { >X DEBUG(1,("pututline_my: not yet implemented\n")); >X /* BSD implementor: may want to consider (or not) adjusting "lastlog" */ >X@@ -271,7 +271,7 @@ static void pututline_my(const char *una >X Credit: Michail Vidiassov <master@iaas.msu.ru> >X ****************************************************************************/ >X >X-static void updwtmp_my(const char *wname, struct utmp *u, bool claim) >X+static void updwtmp_my(const char *wname, STRUCT_UTMP *u, bool claim) >X { >X int fd; >X struct stat buf; >X@@ -303,7 +303,7 @@ static void updwtmp_my(const char *wname >X if ((fd = open(wname, O_WRONLY|O_APPEND, 0)) < 0) >X return; >X if (fstat(fd, &buf) == 0) { >X- if (write(fd, (char *)u, sizeof(struct utmp)) != sizeof(struct utmp)) >X+ if (write(fd, (char *)u, sizeof(STRUCT_UTMP)) != sizeof(STRUCT_UTMP)) >X (void) ftruncate(fd, buf.st_size); >X } >X (void) close(fd); >X@@ -314,12 +314,12 @@ static void updwtmp_my(const char *wname >X Update via utmp/wtmp (not utmpx/wtmpx). >X ****************************************************************************/ >X >X-static void utmp_nox_update(struct utmp *u, bool claim) >X+static void utmp_nox_update(STRUCT_UTMP *u, bool claim) >X { >X char *uname = NULL; >X char *wname = NULL; >X #if defined(PUTUTLINE_RETURNS_UTMP) >X- struct utmp *urc; >X+ STRUCT_UTMP *urc; >X #endif /* PUTUTLINE_RETURNS_UTMP */ >X >X uname = uw_pathname(talloc_tos(), "utmp", ut_pathname); >X@@ -376,127 +376,52 @@ static void utmp_nox_update(struct utmp >X } >X } >X >X-/**************************************************************************** >X- Copy a string in the utmp structure. >X-****************************************************************************/ >X >X-static void utmp_strcpy(char *dest, const char *src, size_t n) >X-{ >X- size_t len = 0; >X >X- memset(dest, '\0', n); >X- if (src) >X- len = strlen(src); >X- if (len >= n) { >X- memcpy(dest, src, n); >X- } else { >X- if (len) >X- memcpy(dest, src, len); >X- } >X-} >X+ >X >X /**************************************************************************** >X Update via utmpx/wtmpx (preferred) or via utmp/wtmp. >X ****************************************************************************/ >X >X-static void sys_utmp_update(struct utmp *u, const char *hostname, bool claim) >X+static void sys_utmp_update(STRUCT_UTMP *u, const char *hostname, bool claim) >X { >X-#if !defined(HAVE_UTMPX_H) >X- /* No utmpx stuff. Drop to non-x stuff */ >X- utmp_nox_update(u, claim); >X-#elif !defined(HAVE_PUTUTXLINE) >X- /* Odd. Have utmpx.h but no "pututxline()". Drop to non-x stuff */ >X- DEBUG(1,("utmp_update: have utmpx.h but no pututxline() function\n")); >X- utmp_nox_update(u, claim); >X-#elif !defined(HAVE_GETUTMPX) >X- /* Odd. Have utmpx.h but no "getutmpx()". Drop to non-x stuff */ >X- DEBUG(1,("utmp_update: have utmpx.h but no getutmpx() function\n")); >X- utmp_nox_update(u, claim); >X-#elif !defined(HAVE_UPDWTMPX) >X- /* Have utmpx.h but no "updwtmpx()". Drop to non-x stuff */ >X- DEBUG(1,("utmp_update: have utmpx.h but no updwtmpx() function\n")); >X- utmp_nox_update(u, claim); >X-#else >X- char *uname = NULL; >X- char *wname = NULL; >X- struct utmpx ux, *uxrc; >X- >X- getutmpx(u, &ux); >X- >X-#if defined(HAVE_UX_UT_SYSLEN) >X- if (hostname) >X- ux.ut_syslen = strlen(hostname) + 1; /* include end NULL */ >X- else >X- ux.ut_syslen = 0; >X-#endif >X-#if defined(HAVE_UX_UT_HOST) >X- utmp_strcpy(ux.ut_host, hostname, sizeof(ux.ut_host)); >X-#endif >X- >X- uname = uw_pathname(talloc_tos(), "utmpx", ux_pathname); >X- wname = uw_pathname(talloc_tos(), "wtmpx", wx_pathname); >X- if (uname && wname) { >X- DEBUG(2,("utmp_update: uname:%s wname:%s\n", uname, wname)); >X- } >X+ STRUCT_UTMP *urc; >X >X- /* >X- * Check for either uname or wname being empty. >X- * Some systems, such as Redhat 6, have a "utmpx.h" which doesn't >X- * define default filenames. >X- * Also, our local installation has not provided an override. >X- * Drop to non-x method. (E.g. RH6 has good defaults in "utmp.h".) >X- */ >X- if (!uname || !wname || (strlen(uname) == 0) || (strlen(wname) == 0)) { >X- utmp_nox_update(u, claim); >X- } else { >X- utmpxname(uname); >X- setutxent(); >X- uxrc = pututxline(&ux); >X- endutxent(); >X- if (uxrc == NULL) { >X- DEBUG(2,("utmp_update: pututxline() failed\n")); >X- return; >X- } >X- updwtmpx(wname, &ux); >X+ setutxent(); >X+ urc = pututxline(u); >X+ endutxent(); >X+ if (urc == NULL) { >X+ DEBUG(2,("utmp_update: pututxline() failed\n")); >X+ return; >X } >X-#endif /* HAVE_UTMPX_H */ >X } >X >X #if defined(HAVE_UT_UT_ID) >X /**************************************************************************** >X Encode the unique connection number into "ut_id". >X ****************************************************************************/ >X- >X-static int ut_id_encode(int i, char *fourbyte) >X+static void ut_id_encode(char *buf, int id, size_t buf_size) >X { >X- int nbase; >X- const char *ut_id_encstr = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; >X- >X-/* >X- * 'ut_id_encstr' is the character set on which modulo arithmetic is done. >X- * Example: digits would produce the base-10 numbers from '001'. >X- */ >X- nbase = strlen(ut_id_encstr); >X+ const char ut_id_encstr[] = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; >X >X- fourbyte[0] = ut_id_encstr[i % nbase]; >X- i /= nbase; >X- fourbyte[1] = ut_id_encstr[i % nbase]; >X- i /= nbase; >X- fourbyte[3] = ut_id_encstr[i % nbase]; >X- i /= nbase; >X- fourbyte[2] = ut_id_encstr[i % nbase]; >X- i /= nbase; >X+ int nbase = sizeof(ut_id_encstr) - 1; >X+ /* >X+ * 'ut_id_encstr' is the character set on which modulo arithmetic is done. >X+ * Example: digits would produce the base-10 numbers from '001'. >X+ */ >X >X- /* we do not care about overflows as i is a random number */ >X- return 0; >X+ for(int i = 0; i < buf_size; i++) { >X+ buf[i] = ut_id_encstr[id % nbase]; >X+ id /= nbase; >X+ } >X } >X #endif /* defined(HAVE_UT_UT_ID) */ >X >X- >X /* >X fill a system utmp structure given all the info we can gather >X */ >X-static bool sys_utmp_fill(struct utmp *u, >X+static bool sys_utmp_fill(STRUCT_UTMP *u, >X const char *username, const char *hostname, >X const char *id_str, int id_num) >X { >X@@ -509,16 +434,16 @@ static bool sys_utmp_fill(struct utmp *u >X * rather than to try to detect and optimise. >X */ >X #if defined(HAVE_UT_UT_USER) >X- utmp_strcpy(u->ut_user, username, sizeof(u->ut_user)); >X+ strncpy(u->ut_user, username, sizeof(u->ut_user)); >X #elif defined(HAVE_UT_UT_NAME) >X- utmp_strcpy(u->ut_name, username, sizeof(u->ut_name)); >X+ strncpy(u->ut_name, username, sizeof(u->ut_name)); >X #endif >X >X /* >X * ut_line: >X * If size limit proves troublesome, then perhaps use "ut_id_encode()". >X */ >X- utmp_strcpy(u->ut_line, id_str, sizeof(u->ut_line)); >X+ strncpy(u->ut_line, id_str, sizeof(u->ut_line)); >X >X #if defined(HAVE_UT_UT_PID) >X u->ut_pid = getpid(); >X@@ -535,20 +460,23 @@ static bool sys_utmp_fill(struct utmp *u >X u->ut_time = timeval.tv_sec; >X #elif defined(HAVE_UT_UT_TV) >X GetTimeOfDay(&timeval); >X- u->ut_tv = timeval; >X+ u->ut_tv.tv_sec = timeval.tv_sec; >X+ u->ut_tv.tv_usec = timeval.tv_usec; >X #else >X #error "with-utmp must have UT_TIME or UT_TV" >X #endif >X >X #if defined(HAVE_UT_UT_HOST) >X- utmp_strcpy(u->ut_host, hostname, sizeof(u->ut_host)); >X+ if(hostname != NULL) { >X+ strncpy(u->ut_host, hostname, sizeof(u->ut_host)); >X+#if defined(HAVE_UT_UT_SYSLEN) >X+ u->ut_syslen = strlen(hostname) + 1; /* include trailing NULL */ >X+#endif >X+ } >X #endif >X >X #if defined(HAVE_UT_UT_ID) >X- if (ut_id_encode(id_num, u->ut_id) != 0) { >X- DEBUG(1,("utmp_fill: cannot encode id %d\n", id_num)); >X- return False; >X- } >X+ ut_id_encode(u->ut_id, id_num, sizeof(u->ut_id)); >X #endif >X >X return True; >X@@ -561,7 +489,7 @@ static bool sys_utmp_fill(struct utmp *u >X void sys_utmp_yield(const char *username, const char *hostname, >X const char *id_str, int id_num) >X { >X- struct utmp u; >X+ STRUCT_UTMP u; >X >X ZERO_STRUCT(u); >X >X@@ -587,7 +515,7 @@ void sys_utmp_yield(const char *username >X void sys_utmp_claim(const char *username, const char *hostname, >X const char *id_str, int id_num) >X { >X- struct utmp u; >X+ STRUCT_UTMP u; >X >X ZERO_STRUCT(u); >X >cff8041bb9d36fb32f8ebbcc420a8c11 >echo x - inofficial/samba413/files/patch-source3_winbindd_wscript__build >sed 's/^X//' >inofficial/samba413/files/patch-source3_winbindd_wscript__build << 'f7e564f857acec7d1307a9e24c123106' >X--- source3/winbindd/wscript_build.orig 2019-01-15 10:07:00 UTC >X+++ source3/winbindd/wscript_build >X@@ -2,7 +2,7 @@ >X >X bld.SAMBA3_LIBRARY('idmap', >X source='idmap.c idmap_util.c', >X- deps='samba-util pdb', >X+ deps='pdb samba-modules secrets3', >X allow_undefined_symbols=True, >X private_library=True) >X >f7e564f857acec7d1307a9e24c123106 >echo c - inofficial/samba413/files/man >mkdir -p inofficial/samba413/files/man > /dev/null 2>&1 >echo x - inofficial/samba413/files/man/ntlm_auth4.1 >sed 's/^X//' >inofficial/samba413/files/man/ntlm_auth4.1 << '6abdab4c8a560c6f7b04b7e9bcf66657' >X'\" t >X.\" Title: ntlm_auth4 >X.\" Author: [see the "AUTHOR" section] >X.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> >X.\" Date: 03/24/2017 >X.\" Manual: User Commands >X.\" Source: Samba 4.0 >X.\" Language: English >X.\" >X.TH "NTLM_AUTH4" "1" "03/24/2017" "Samba 4\&.0" "User Commands" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xntlm_auth4 \- tool to allow external access to Winbind\*(Aqs NTLM authentication function >X.SH "SYNOPSIS" >X.HP \w'\fBntlm_auth4\fR\ 'u >X\fBntlm_auth4\fR [\-d\ debuglevel] [\-l\ logdir] [\-s\ <smb\ config\ file>] >X.SH "DESCRIPTION" >X.PP >XThis tool is part of the >X\fBsamba\fR(7) >Xsuite\&. >X.PP >X\fBntlm_auth4\fR >Xis a helper utility that authenticates users using NT/LM authentication\&. It returns 0 if the users is authenticated successfully and 1 if access was denied\&. ntlm_auth4 uses winbind to access the user and authentication data for a domain\&. This utility is only indended to be used by other programs (currently squid)\&. >X.SH "OPERATIONAL REQUIREMENTS" >X.PP >XThe >X\fBwinbindd\fR(8) >Xdaemon must be operational for many of these commands to function\&. >X.PP >XSome of these commands also require access to the directory >Xwinbindd_privileged >Xin >X$LOCKDIR\&. This should be done either by running this command as root or providing group access to the >Xwinbindd_privileged >Xdirectory\&. For security reasons, this directory should not be world\-accessable\&. >X.SH "OPTIONS" >X.PP >X\-\-helper\-protocol=PROTO >X.RS 4 >XOperate as a stdio\-based helper\&. Valid helper protocols are: >X.PP >Xsquid\-2\&.4\-basic >X.RS 4 >XServer\-side helper for use with Squid 2\&.4\*(Aqs basic (plaintext) authentication\&. >X.RE >X.PP >Xsquid\-2\&.5\-basic >X.RS 4 >XServer\-side helper for use with Squid 2\&.5\*(Aqs basic (plaintext) authentication\&. >X.RE >X.PP >Xsquid\-2\&.5\-ntlmssp >X.RS 4 >XServer\-side helper for use with Squid 2\&.5\*(Aqs NTLMSSP authentication\&. >X.sp >XRequires access to the directory >Xwinbindd_privileged >Xin >X$LOCKDIR\&. The protocol used is described here: >X\m[blue]\fBhttp://devel\&.squid\-cache\&.org/ntlm/squid_helper_protocol\&.html\fR\m[] >X.RE >X.PP >Xntlmssp\-client\-1 >X.RS 4 >XCleint\-side helper for use with arbitary external programs that may wish to use Samba\*(Aqs NTLMSSP authentication knowlege\&. >X.sp >XThis helper is a client, and as such may be run by any user\&. The protocol used is effectivly the reverse of the previous protocol\&. >X.RE >X.PP >Xgss\-spnego >X.RS 4 >XServer\-side helper that implements GSS\-SPNEGO\&. This uses a protocol that is almost the same as >X\fBsquid\-2\&.5\-ntlmssp\fR, but has some subtle differences that are undocumented outside the source at this stage\&. >X.sp >XRequires access to the directory >Xwinbindd_privileged >Xin >X$LOCKDIR\&. >X.RE >X.PP >Xgss\-spnego\-client >X.RS 4 >XClient\-side helper that implements GSS\-SPNEGO\&. This also uses a protocol similar to the above helpers, but is currently undocumented\&. >X.RE >X.RE >X.PP >X\-\-username=USERNAME >X.RS 4 >XSpecify username of user to authenticate >X.RE >X.PP >X\-\-domain=DOMAIN >X.RS 4 >XSpecify domain of user to authenticate >X.RE >X.PP >X\-\-workstation=WORKSTATION >X.RS 4 >XSpecify the workstation the user authenticated from >X.RE >X.PP >X\-\-challenge=STRING >X.RS 4 >XNTLM challenge (in HEXADECIMAL) >X.RE >X.PP >X\-\-lm\-response=RESPONSE >X.RS 4 >XLM Response to the challenge (in HEXADECIMAL) >X.RE >X.PP >X\-\-nt\-response=RESPONSE >X.RS 4 >XNT or NTLMv2 Response to the challenge (in HEXADECIMAL) >X.RE >X.PP >X\-\-password=PASSWORD >X.RS 4 >XUser\*(Aqs plaintext password >X.sp >XIf not specified on the command line, this is prompted for when required\&. >X.RE >X.PP >X\-\-request\-lm\-key >X.RS 4 >XRetrieve LM session key >X.RE >X.PP >X\-\-request\-nt\-key >X.RS 4 >XRequest NT key >X.RE >X.PP >X\-\-diagnostics >X.RS 4 >XPerform Diagnostics on the authentication chain\&. Uses the password from >X\fB\-\-password\fR >Xor prompts for one\&. >X.RE >X.PP >X\-\-require\-membership\-of={SID|Name} >X.RS 4 >XRequire that a user be a member of specified group (either name or SID) for authentication to succeed\&. >X.RE >X.SH "EXAMPLE SETUP" >X.PP >XTo setup ntlm_auth4 for use by squid 2\&.5, with both basic and NTLMSSP authentication, the following should be placed in the >Xsquid\&.conf >Xfile\&. >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >Xauth_param ntlm program ntlm_auth4 \-\-helper\-protocol=squid\-2\&.5\-ntlmssp >Xauth_param basic program ntlm_auth4 \-\-helper\-protocol=squid\-2\&.5\-basic >Xauth_param basic children 5 >Xauth_param basic realm Squid proxy\-caching web server >Xauth_param basic credentialsttl 2 hours >X.fi >X.if n \{\ >X.RE >X.\} >X.if n \{\ >X.sp >X.\} >X.RS 4 >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBNote\fR >X.ps -1 >X.br >X.PP >XThis example assumes that ntlm_auth4 has been installed into your path, and that the group permissions on >Xwinbindd_privileged >Xare as described above\&. >X.sp .5v >X.RE >X.PP >XTo setup ntlm_auth4 for use by squid 2\&.5 with group limitation in addition to the above example, the following should be added to the >Xsquid\&.conf >Xfile\&. >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >Xauth_param ntlm program ntlm_auth4 \-\-helper\-protocol=squid\-2\&.5\-ntlmssp \-\-require\-membership\-of=\*(AqWORKGROUP\eDomain Users\*(Aq >Xauth_param basic program ntlm_auth4 \-\-helper\-protocol=squid\-2\&.5\-basic \-\-require\-membership\-of=\*(AqWORKGROUP\eDomain Users\*(Aq >X.fi >X.if n \{\ >X.RE >X.\} >X.SH "TROUBLESHOOTING" >X.PP >XIf you\*(Aqre experiencing problems with authenticating Internet Explorer running under MS Windows 9X or Millenium Edition against ntlm_auth4\*(Aqs NTLMSSP authentication helper (\-\-helper\-protocol=squid\-2\&.5\-ntlmssp), then please read >X\m[blue]\fBthe Microsoft Knowledge Base article #239869 and follow instructions described there\fR\m[]\&\s-2\u[1]\d\s+2\&. >X.SH "VERSION" >X.PP >XThis man page is correct for version 3\&.0 of the Samba suite\&. >X.SH "AUTHOR" >X.PP >XThe original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&. >X.PP >XThe ntlm_auth4 manpage was written by Jelmer Vernooij and Andrew Bartlett\&. >X.SH "NOTES" >X.IP " 1." 4 >Xthe Microsoft Knowledge Base article #239869 and follow instructions described there >X.RS 4 >X\%http://support.microsoft.com/support/kb/articles/Q239/8/69.ASP >X.RE >6abdab4c8a560c6f7b04b7e9bcf66657 >echo x - inofficial/samba413/files/man/masktest.1 >sed 's/^X//' >inofficial/samba413/files/man/masktest.1 << '1dbd8044e1f6a95ab90fd7ccd60c4d73' >X'\" t >X.\" Title: masktest >X.\" Author: [see the "AUTHOR" section] >X.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> >X.\" Date: 09/23/2020 >X.\" Manual: Test Suite >X.\" Source: Samba 4.0 >X.\" Language: English >X.\" >X.TH "MASKTEST" "1" "09/23/2020" "Samba 4\&.0" "Test Suite" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xmasktest \- Find differences in wildcard matching between Samba\*(Aqs implementation and that of a remote server\&. >X.SH "SYNOPSIS" >X.HP \w'\fBmasktest\fR\ 'u >X\fBmasktest\fR {//server/share} [\-U\ user%pass] [\-d\ debuglevel] [\-W\ workgroup] [\-n\ numloops] [\-s\ seed] [\-a] [\-E] [\-M\ max\ protocol] [\-f\ filechars] [\-m\ maskchars] [\-v] >X.SH "DESCRIPTION" >X.PP >Xmasktest >Xis a utility for detecting differences in behaviour between Samba\*(Aqs own implementation and that of a remote server\&. It will run generate random filenames/masks and check if these match the same files they do on the remote file as they do on the local server\&. It will display any differences it finds\&. >X.PP >XThis utility is used by the Samba team to find differences in behaviour between Samba and Windows servers\&. >X.SH "OPTIONS" >X.PP >X\-U user%pass >X.RS 4 >XSpecify the user and password to use when logging on on the shares\&. This parameter can be specified twice (once for the first server, once for the second)\&. >X.RE >X.PP >X\-s seed >X.RS 4 >XSeed the random number generator with the specified value\&. >X.RE >X.PP >X\-n numops >X.RS 4 >XSet the number of operations to perform\&. >X.RE >X.PP >X\-a >X.RS 4 >XPrint the operations that are performed\&. >X.RE >X.PP >X\-M max_protocol >X.RS 4 >XMaximum protocol to use\&. >X.RE >X.PP >X\-f >X.RS 4 >XSpecify characters that can be used when generating file names\&. Default: abcdefghijklm\&. >X.RE >X.PP >X\-E >X.RS 4 >XAbort when difference in behaviour is found\&. >X.RE >X.PP >X\-m maskchars >X.RS 4 >XSpecify characters used for wildcards\&. >X.RE >X.PP >X\-v >X.RS 4 >XBe verbose >X.RE >X.SH "VERSION" >X.PP >XThis man page is correct for version 4\&.0 of the Samba suite\&. >X.SH "SEE ALSO" >X.PP >XSamba >X.SH "AUTHOR" >X.PP >XThis utility is part of the >X\m[blue]\fBSamba\fR\m[]\&\s-2\u[1]\d\s+2 >Xsuite, which is developed by the global >X\m[blue]\fBSamba Team\fR\m[]\&\s-2\u[2]\d\s+2\&. >X.PP >Xmasktest was written by Andrew Tridgell\&. >X.PP >XThis manpage was written by Jelmer Vernooij\&. >X.SH "NOTES" >X.IP " 1." 4 >XSamba >X.RS 4 >X\%http://www.samba.org/ >X.RE >X.IP " 2." 4 >XSamba Team >X.RS 4 >X\%http://www.samba.org/samba/team/ >X.RE >1dbd8044e1f6a95ab90fd7ccd60c4d73 >echo x - inofficial/samba413/files/man/ltdbtool.1 >sed 's/^X//' >inofficial/samba413/files/man/ltdbtool.1 << '472f8abb82b52c22bf4ffddf6df9c797' >X'\" t >X.\" Title: ltdbtool >X.\" Author: >X.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> >X.\" Date: 09/23/2020 >X.\" Manual: CTDB - clustered TDB database >X.\" Source: ctdb >X.\" Language: English >X.\" >X.TH "LTDBTOOL" "1" "09/23/2020" "ctdb" "CTDB \- clustered TDB database" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xltdbtool \- manipulate CTDB\*(Aqs local TDB files >X.SH "SYNOPSIS" >X.HP \w'\fBltdbtool\fR\ 'u >X\fBltdbtool\fR [\fIOPTION\fR...] {\fICOMMAND\fR} [\fICOMMAND\-ARGS\fR] >X.SH "DESCRIPTION" >X.PP >Xltdbtool is a utility to manipulate CTDB\*(Aqs local TDB databases (LTDBs) without connecting to a CTDB daemon\&. >X.PP >XIt can be used to: >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04'\(bu\h'+03'\c >X.\} >X.el \{\ >X.sp -1 >X.IP \(bu 2.3 >X.\} >Xdump the contents of a LTDB, optionally printing the CTDB record header information, >X.RE >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04'\(bu\h'+03'\c >X.\} >X.el \{\ >X.sp -1 >X.IP \(bu 2.3 >X.\} >Xconvert between an LTDB and a non\-clustered tdb by adding or removing CTDB headers and >X.RE >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04'\(bu\h'+03'\c >X.\} >X.el \{\ >X.sp -1 >X.IP \(bu 2.3 >X.\} >Xconvert between 64 and 32 bit LTDBs where the CTDB record headers differ by 4 bytes of padding\&. >X.RE >X.SH "OPTIONS" >X.PP >X\-e >X.RS 4 >XDump empty records\&. These are normally excluded\&. >X.RE >X.PP >X\-p >X.RS 4 >XDump with header information, similar to "ctdb catdb"\&. >X.RE >X.PP >X\-s {0 | 32 | 64} >X.RS 4 >XSpecify how to determine the CTDB record header size for the input database: >X.PP >X0 >X.RS 4 >Xno CTDB header >X.RE >X.PP >X32 >X.RS 4 >XCTDB header size of a 32 bit system (20 bytes) >X.RE >X.PP >X64 >X.RS 4 >XCTDB header size of a 64 bit system (24 bytes) >X.RE >X.sp >XThe default is 32 or 64 depending on the system architecture\&. >X.RE >X.PP >X\-o {0 | 32 | 64} >X.RS 4 >XSpecify how to determine the CTDB record header size for the output database, see \-s\&. >X.RE >X.PP >X\-S \fISIZE\fR >X.RS 4 >XExplicitly specify the CTDB record header SIZE of the input database in bytes\&. >X.RE >X.PP >X\-O \fISIZE\fR >X.RS 4 >XExplicitly specify the CTDB record header SIZE for the output database in bytes\&. >X.RE >X.PP >X\-h >X.RS 4 >XPrint help text\&. >X.RE >X.SH "COMMANDS" >X.PP >Xhelp >X.RS 4 >XPrint help text\&. >X.RE >X.PP >Xdump \fIIDB\fR >X.RS 4 >XDump the contents of an LTDB input file IDB to standard output in a human\-readable format\&. >X.RE >X.PP >Xconvert \fIIDB\fR \fIODB\fR >X.RS 4 >XCopy an LTDB input file IDB to output file ODB, optionally adding or removing CTDB headers\&. >X.RE >X.SH "EXAMPLES" >X.PP >XPrint a local tdb in "tdbdump" style: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X ltdbtool dump idmap2\&.tdb\&.0 >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XPrint a local tdb with header information similar to "ctdb catdb": >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X ltdbtool dump \-p idmap2\&.tdb\&.0 >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XStrip the CTDB headers from records: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X ltdbtool convert \-o0 idmap2\&.tdb\&.0 idmap\&.tdb >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XStrip 64 bit CTDB headers from records, running on i386: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X ltdbtool convert \-s64 \-o0 idmap2\&.tdb\&.0 idmap\&.tdb >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XStrip the CTDB headers from records by piping through tdbrestore: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X ltdbtool dump idmap2\&.tdb\&.0 | tdbrestore idmap\&.tdb >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XConvert a local tdb from a 64 bit system for usage on a 32 bit system: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X ltdbtool convert \-s64 \-o32 idmap2\&.tdb\&.0 idmap2\&.tdb\&.1 >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XAdd a default header: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X ltdbtool convert \-s0 idmap\&.tdb idmap2\&.tdb\&.0 >X >X.fi >X.if n \{\ >X.RE >X.\} >X.SH "SEE ALSO" >X.PP >X\fBctdb\fR(1), >X\fBtdbdump\fR(1), >X\fBtdbrestore\fR(1), >X\fBctdb\fR(7), >X\m[blue]\fB\%http://ctdb.samba.org/\fR\m[] >X.SH "AUTHOR" >X.br >X.PP >XThis documentation was written by Gregor Beck >X.SH "COPYRIGHT" >X.br >XCopyright \(co 2011 Gregor Beck, Michael Adam >X.br >X.PP >XThis program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version\&. >X.PP >XThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&. See the GNU General Public License for more details\&. >X.PP >XYou should have received a copy of the GNU General Public License along with this program; if not, see >X\m[blue]\fB\%http://www.gnu.org/licenses\fR\m[]\&. >X.sp >472f8abb82b52c22bf4ffddf6df9c797 >echo x - inofficial/samba413/files/man/ldbadd.1 >sed 's/^X//' >inofficial/samba413/files/man/ldbadd.1 << '6fa8ff32e7dadf3548c0e448a320b4bd' >X'\" t >X.\" Title: ldbadd >X.\" Author: [see the "AUTHOR" section] >X.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> >X.\" Date: 09/23/2020 >X.\" Manual: System Administration tools >X.\" Source: LDB 1.1 >X.\" Language: English >X.\" >X.TH "LDBADD" "1" "09/23/2020" "LDB 1\&.1" "System Administration tools" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xldbadd \- Command\-line utility for adding records to an LDB >X.SH "SYNOPSIS" >X.HP \w'\fBldbadd\fR\ 'u >X\fBldbadd\fR [\-h] [\-H\ LDB\-URL] [ldif\-file1] [ldif\-file2] [\&.\&.\&.] >X.SH "DESCRIPTION" >X.PP >Xldbadd adds records to an ldb(3) database\&. It reads the ldif(5) files specified on the command line and adds the records from these files to the LDB database, which is specified by the \-H option or the LDB_URL environment variable\&. >X.PP >XIf \- is specified as a ldb file, the ldif input is read from standard input\&. >X.SH "OPTIONS" >X.PP >X\-h >X.RS 4 >XShow list of available options\&. >X.RE >X.PP >X\-H <ldb\-url> >X.RS 4 >XLDB URL to connect to\&. See ldb(3) for details\&. >X.RE >X.SH "ENVIRONMENT" >X.PP >XLDB_URL >X.RS 4 >XLDB URL to connect to (can be overridden by using the \-H command\-line option\&.) >X.RE >X.SH "VERSION" >X.PP >XThis man page is correct for version 1\&.1 of LDB\&. >X.SH "SEE ALSO" >X.PP >Xldb(3), ldbmodify, ldbdel, ldif(5) >X.SH "AUTHOR" >X.PP >Xldb was written by >X\m[blue]\fBAndrew Tridgell\fR\m[]\&\s-2\u[1]\d\s+2\&. >X.PP >XIf you wish to report a problem or make a suggestion then please see the >X\m[blue]\fB\%http://ldb.samba.org/\fR\m[] >Xweb site for current contact and maintainer information\&. >X.PP >XThis manpage was written by Jelmer Vernooij\&. >X.SH "NOTES" >X.IP " 1." 4 >XAndrew Tridgell >X.RS 4 >X\%https://www.samba.org/~tridge/ >X.RE >6fa8ff32e7dadf3548c0e448a320b4bd >echo x - inofficial/samba413/files/man/talloc.3 >sed 's/^X//' >inofficial/samba413/files/man/talloc.3 << '6ebd4e9c1cd1fe5b0e6a23e9e403a16e' >X'\" t >X.\" Title: talloc >X.\" Author: [see the "AUTHOR" section] >X.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> >X.\" Date: 2015-04-10 >X.\" Manual: System Administration tools >X.\" Source: Samba 4.0 >X.\" Language: English >X.\" >X.TH "TALLOC" "3" "2015\-04\-10" "Samba 4\&.0" "System Administration tools" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xtalloc \- hierarchical reference counted memory pool system with destructors >X.SH "SYNOPSIS" >X.sp >X.nf >X#include <talloc\&.h> >X.fi >X.SH "DESCRIPTION" >X.PP >XIf you are used to talloc from Samba3 then please read this carefully, as talloc has changed a lot\&. >X.PP >XThe new talloc is a hierarchical, reference counted memory pool system with destructors\&. Quite a mouthful really, but not too bad once you get used to it\&. >X.PP >XPerhaps the biggest change from Samba3 is that there is no distinction between a "talloc context" and a "talloc pointer"\&. Any pointer returned from talloc() is itself a valid talloc context\&. This means you can do this: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X struct foo *X = talloc(mem_ctx, struct foo); >X X\->name = talloc_strdup(X, "foo"); >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >Xand the pointer >XX\->name >Xwould be a "child" of the talloc context >XX >Xwhich is itself a child of >Xmem_ctx\&. So if you do >Xtalloc_free(mem_ctx) >Xthen it is all destroyed, whereas if you do >Xtalloc_free(X) >Xthen just >XX >Xand >XX\->name >Xare destroyed, and if you do >Xtalloc_free(X\->name) >Xthen just the name element of >XX >Xis destroyed\&. >X.PP >XIf you think about this, then what this effectively gives you is an n\-ary tree, where you can free any part of the tree with talloc_free()\&. >X.PP >XIf you find this confusing, then I suggest you run the >Xtestsuite >Xprogram to watch talloc in action\&. You may also like to add your own tests to >Xtestsuite\&.c >Xto clarify how some particular situation is handled\&. >X.SH "TALLOC API" >X.PP >XThe following is a complete guide to the talloc API\&. Read it all at least twice\&. >X.SS "(type *)talloc(const void *ctx, type);" >X.PP >XThe talloc() macro is the core of the talloc library\&. It takes a memory >X\fIctx\fR >Xand a >X\fItype\fR, and returns a pointer to a new area of memory of the given >X\fItype\fR\&. >X.PP >XThe returned pointer is itself a talloc context, so you can use it as the >X\fIctx\fR >Xargument to more calls to talloc() if you wish\&. >X.PP >XThe returned pointer is a "child" of the supplied context\&. This means that if you talloc_free() the >X\fIctx\fR >Xthen the new child disappears as well\&. Alternatively you can free just the child\&. >X.PP >XThe >X\fIctx\fR >Xargument to talloc() can be NULL, in which case a new top level context is created\&. >X.SS "void *talloc_size(const void *ctx, size_t size);" >X.PP >XThe function talloc_size() should be used when you don\*(Aqt have a convenient type to pass to talloc()\&. Unlike talloc(), it is not type safe (as it returns a void *), so you are on your own for type checking\&. >X.SS "(typeof(ptr)) talloc_ptrtype(const void *ctx, ptr);" >X.PP >XThe talloc_ptrtype() macro should be used when you have a pointer and want to allocate memory to point at with this pointer\&. When compiling with gcc >= 3 it is typesafe\&. Note this is a wrapper of talloc_size() and talloc_get_name() will return the current location in the source file\&. and not the type\&. >X.SS "int talloc_free(void *ptr);" >X.PP >XThe talloc_free() function frees a piece of talloc memory, and all its children\&. You can call talloc_free() on any pointer returned by talloc()\&. >X.PP >XThe return value of talloc_free() indicates success or failure, with 0 returned for success and \-1 for failure\&. The only possible failure condition is if >X\fIptr\fR >Xhad a destructor attached to it and the destructor returned \-1\&. See >X\(lqtalloc_set_destructor()\(rq >Xfor details on destructors\&. >X.PP >XIf this pointer has an additional parent when talloc_free() is called then the memory is not actually released, but instead the most recently established parent is destroyed\&. See >X\(lqtalloc_reference()\(rq >Xfor details on establishing additional parents\&. >X.PP >XFor more control on which parent is removed, see >X\(lqtalloc_unlink()\(rq\&. >X.PP >Xtalloc_free() operates recursively on its children\&. >X.PP >XFrom the 2\&.0 version of talloc, as a special case, talloc_free() is refused on pointers that have more than one parent, as talloc would have no way of knowing which parent should be removed\&. To free a pointer that has more than one parent please use talloc_unlink()\&. >X.PP >XTo help you find problems in your code caused by this behaviour, if you do try and free a pointer with more than one parent then the talloc logging function will be called to give output like this: >X.PP >X >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X ERROR: talloc_free with references at some_dir/source/foo\&.c:123 >X reference at some_dir/source/other\&.c:325 >X reference at some_dir/source/third\&.c:121 >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XPlease see the documentation for talloc_set_log_fn() and talloc_set_log_stderr() for more information on talloc logging functions\&. >X.SS "void *talloc_reference(const void *ctx, const void *ptr);" >X.PP >XThe talloc_reference() function makes >X\fIctx\fR >Xan additional parent of >X\fIptr\fR\&. >X.PP >XThe return value of talloc_reference() is always the original pointer >X\fIptr\fR, unless talloc ran out of memory in creating the reference in which case it will return NULL (each additional reference consumes around 48 bytes of memory on intel x86 platforms)\&. >X.PP >XIf >X\fIptr\fR >Xis NULL, then the function is a no\-op, and simply returns NULL\&. >X.PP >XAfter creating a reference you can free it in one of the following ways: >X.PP >X >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04'\(bu\h'+03'\c >X.\} >X.el \{\ >X.sp -1 >X.IP \(bu 2.3 >X.\} >Xyou can talloc_free() any parent of the original pointer\&. That will reduce the number of parents of this pointer by 1, and will cause this pointer to be freed if it runs out of parents\&. >X.RE >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04'\(bu\h'+03'\c >X.\} >X.el \{\ >X.sp -1 >X.IP \(bu 2.3 >X.\} >Xyou can talloc_free() the pointer itself if it has at maximum one parent\&. This behaviour has been changed since the release of version 2\&.0\&. Further informations in the description of "talloc_free"\&. >X.RE >X.PP >XFor more control on which parent to remove, see >X\(lqtalloc_unlink()\(rq\&. >X.SS "int talloc_unlink(const void *ctx, void *ptr);" >X.PP >XThe talloc_unlink() function removes a specific parent from >X\fIptr\fR\&. The >X\fIctx\fR >Xpassed must either be a context used in talloc_reference() with this pointer, or must be a direct parent of ptr\&. >X.PP >XNote that if the parent has already been removed using talloc_free() then this function will fail and will return \-1\&. Likewise, if >X\fIptr\fR >Xis NULL, then the function will make no modifications and return \-1\&. >X.PP >XUsually you can just use talloc_free() instead of talloc_unlink(), but sometimes it is useful to have the additional control on which parent is removed\&. >X.SS "void talloc_set_destructor(const void *ptr, int (*destructor)(void *));" >X.PP >XThe function talloc_set_destructor() sets the >X\fIdestructor\fR >Xfor the pointer >X\fIptr\fR\&. A >X\fIdestructor\fR >Xis a function that is called when the memory used by a pointer is about to be released\&. The destructor receives >X\fIptr\fR >Xas an argument, and should return 0 for success and \-1 for failure\&. >X.PP >XThe >X\fIdestructor\fR >Xcan do anything it wants to, including freeing other pieces of memory\&. A common use for destructors is to clean up operating system resources (such as open file descriptors) contained in the structure the destructor is placed on\&. >X.PP >XYou can only place one destructor on a pointer\&. If you need more than one destructor then you can create a zero\-length child of the pointer and place an additional destructor on that\&. >X.PP >XTo remove a destructor call talloc_set_destructor() with NULL for the destructor\&. >X.PP >XIf your destructor attempts to talloc_free() the pointer that it is the destructor for then talloc_free() will return \-1 and the free will be ignored\&. This would be a pointless operation anyway, as the destructor is only called when the memory is just about to go away\&. >X.SS "int talloc_increase_ref_count(const void *\fIptr\fR);" >X.PP >XThe talloc_increase_ref_count(\fIptr\fR) function is exactly equivalent to: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >Xtalloc_reference(NULL, ptr); >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XYou can use either syntax, depending on which you think is clearer in your code\&. >X.PP >XIt returns 0 on success and \-1 on failure\&. >X.SS "size_t talloc_reference_count(const void *\fIptr\fR);" >X.PP >XReturn the number of references to the pointer\&. >X.SS "void talloc_set_name(const void *ptr, const char *fmt, \&.\&.\&.);" >X.PP >XEach talloc pointer has a "name"\&. The name is used principally for debugging purposes, although it is also possible to set and get the name on a pointer in as a way of "marking" pointers in your code\&. >X.PP >XThe main use for names on pointer is for "talloc reports"\&. See >X\(lqtalloc_report_depth_cb()\(rq, >X\(lqtalloc_report_depth_file()\(rq, >X\(lqtalloc_report()\(rq >X\(lqtalloc_report()\(rq >Xand >X\(lqtalloc_report_full()\(rq >Xfor details\&. Also see >X\(lqtalloc_enable_leak_report()\(rq >Xand >X\(lqtalloc_enable_leak_report_full()\(rq\&. >X.PP >XThe talloc_set_name() function allocates memory as a child of the pointer\&. It is logically equivalent to: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >Xtalloc_set_name_const(ptr, talloc_asprintf(ptr, fmt, \&.\&.\&.)); >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XNote that multiple calls to talloc_set_name() will allocate more memory without releasing the name\&. All of the memory is released when the ptr is freed using talloc_free()\&. >X.SS "void talloc_set_name_const(const void *\fIptr\fR, const char *\fIname\fR);" >X.PP >XThe function talloc_set_name_const() is just like talloc_set_name(), but it takes a string constant, and is much faster\&. It is extensively used by the "auto naming" macros, such as talloc_p()\&. >X.PP >XThis function does not allocate any memory\&. It just copies the supplied pointer into the internal representation of the talloc ptr\&. This means you must not pass a >X\fIname\fR >Xpointer to memory that will disappear before >X\fIptr\fR >Xis freed with talloc_free()\&. >X.SS "void *talloc_named(const void *\fIctx\fR, size_t \fIsize\fR, const char *\fIfmt\fR, \&.\&.\&.);" >X.PP >XThe talloc_named() function creates a named talloc pointer\&. It is equivalent to: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >Xptr = talloc_size(ctx, size); >Xtalloc_set_name(ptr, fmt, \&.\&.\&.\&.); >X.fi >X.if n \{\ >X.RE >X.\} >X.SS "void *talloc_named_const(const void *\fIctx\fR, size_t \fIsize\fR, const char *\fIname\fR);" >X.PP >XThis is equivalent to: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >Xptr = talloc_size(ctx, size); >Xtalloc_set_name_const(ptr, name); >X.fi >X.if n \{\ >X.RE >X.\} >X.SS "const char *talloc_get_name(const void *\fIptr\fR);" >X.PP >XThis returns the current name for the given talloc pointer, >X\fIptr\fR\&. See >X\(lqtalloc_set_name()\(rq >Xfor details\&. >X.SS "void *talloc_init(const char *\fIfmt\fR, \&.\&.\&.);" >X.PP >XThis function creates a zero length named talloc context as a top level context\&. It is equivalent to: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >Xtalloc_named(NULL, 0, fmt, \&.\&.\&.); >X.fi >X.if n \{\ >X.RE >X.\} >X.SS "void *talloc_new(void *\fIctx\fR);" >X.PP >XThis is a utility macro that creates a new memory context hanging off an existing context, automatically naming it "talloc_new: __location__" where __location__ is the source line it is called from\&. It is particularly useful for creating a new temporary working context\&. >X.SS "(\fItype\fR *)talloc_realloc(const void *\fIctx\fR, void *\fIptr\fR, \fItype\fR, \fIcount\fR);" >X.PP >XThe talloc_realloc() macro changes the size of a talloc pointer\&. It has the following equivalences: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >Xtalloc_realloc(ctx, NULL, type, 1) ==> talloc(ctx, type); >Xtalloc_realloc(ctx, ptr, type, 0) ==> talloc_free(ptr); >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XThe >X\fIctx\fR >Xargument is only used if >X\fIptr\fR >Xis not NULL, otherwise it is ignored\&. >X.PP >Xtalloc_realloc() returns the new pointer, or NULL on failure\&. The call will fail either due to a lack of memory, or because the pointer has more than one parent (see >X\(lqtalloc_reference()\(rq)\&. >X.SS "void *talloc_realloc_size(const void *ctx, void *ptr, size_t size);" >X.PP >Xthe talloc_realloc_size() function is useful when the type is not known so the type\-safe talloc_realloc() cannot be used\&. >X.SS "TYPE *talloc_steal(const void *\fInew_ctx\fR, const TYPE *\fIptr\fR);" >X.PP >XThe talloc_steal() function changes the parent context of a talloc pointer\&. It is typically used when the context that the pointer is currently a child of is going to be freed and you wish to keep the memory for a longer time\&. >X.PP >XThe talloc_steal() function returns the pointer that you pass it\&. It does not have any failure modes\&. >X.PP >XIt is possible to produce loops in the parent/child relationship if you are not careful with talloc_steal()\&. No guarantees are provided as to your sanity or the safety of your data if you do this\&. >X.PP >XNote that if you try and call talloc_steal() on a pointer that has more than one parent then the result is ambiguous\&. Talloc will choose to remove the parent that is currently indicated by talloc_parent() and replace it with the chosen parent\&. You will also get a message like this via the talloc logging functions: >X.PP >X >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X WARNING: talloc_steal with references at some_dir/source/foo\&.c:123 >X reference at some_dir/source/other\&.c:325 >X reference at some_dir/source/third\&.c:121 >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XTo unambiguously change the parent of a pointer please see the function >X\(lqtalloc_reparent()\(rq\&. See the talloc_set_log_fn() documentation for more information on talloc logging\&. >X.SS "TYPE *talloc_reparent(const void *\fIold_parent\fR, const void *\fInew_parent\fR, const TYPE *\fIptr\fR);" >X.PP >XThe talloc_reparent() function changes the parent context of a talloc pointer\&. It is typically used when the context that the pointer is currently a child of is going to be freed and you wish to keep the memory for a longer time\&. >X.PP >XThe talloc_reparent() function returns the pointer that you pass it\&. It does not have any failure modes\&. >X.PP >XThe difference between talloc_reparent() and talloc_steal() is that talloc_reparent() can specify which parent you wish to change\&. This is useful when a pointer has multiple parents via references\&. >X.SS "TYPE *talloc_move(const void *\fInew_ctx\fR, TYPE **\fIptr\fR);" >X.PP >XThe talloc_move() function is a wrapper around talloc_steal() which zeros the source pointer after the move\&. This avoids a potential source of bugs where a programmer leaves a pointer in two structures, and uses the pointer from the old structure after it has been moved to a new one\&. >X.SS "size_t talloc_total_size(const void *\fIptr\fR);" >X.PP >XThe talloc_total_size() function returns the total size in bytes used by this pointer and all child pointers\&. Mostly useful for debugging\&. >X.PP >XPassing NULL is allowed, but it will only give a meaningful result if talloc_enable_leak_report() or talloc_enable_leak_report_full() has been called\&. >X.SS "size_t talloc_total_blocks(const void *\fIptr\fR);" >X.PP >XThe talloc_total_blocks() function returns the total memory block count used by this pointer and all child pointers\&. Mostly useful for debugging\&. >X.PP >XPassing NULL is allowed, but it will only give a meaningful result if talloc_enable_leak_report() or talloc_enable_leak_report_full() has been called\&. >X.SS "void talloc_report(const void *ptr, FILE *f);" >X.PP >XThe talloc_report() function prints a summary report of all memory used by >X\fIptr\fR\&. One line of report is printed for each immediate child of ptr, showing the total memory and number of blocks used by that child\&. >X.PP >XYou can pass NULL for the pointer, in which case a report is printed for the top level memory context, but only if talloc_enable_leak_report() or talloc_enable_leak_report_full() has been called\&. >X.SS "void talloc_report_full(const void *\fIptr\fR, FILE *\fIf\fR);" >X.PP >XThis provides a more detailed report than talloc_report()\&. It will recursively print the entire tree of memory referenced by the pointer\&. References in the tree are shown by giving the name of the pointer that is referenced\&. >X.PP >XYou can pass NULL for the pointer, in which case a report is printed for the top level memory context, but only if talloc_enable_leak_report() or talloc_enable_leak_report_full() has been called\&. >X.SS "" >X.HP \w'void\ talloc_report_depth_cb('u >X.BI "void talloc_report_depth_cb(" "const\ void\ *ptr" ", " "int\ depth" ", " "int\ max_depth" ", " "void\ (*callback)(const\ void\ *ptr,\ int\ depth,\ int\ max_depth,\ int\ is_ref,\ void\ *priv)" ", " "void\ *priv" ");" >X.PP >XThis provides a more flexible reports than talloc_report()\&. It will recursively call the callback for the entire tree of memory referenced by the pointer\&. References in the tree are passed with >X\fIis_ref = 1\fR >Xand the pointer that is referenced\&. >X.PP >XYou can pass NULL for the pointer, in which case a report is printed for the top level memory context, but only if talloc_enable_leak_report() or talloc_enable_leak_report_full() has been called\&. >X.PP >XThe recursion is stopped when depth >= max_depth\&. max_depth = \-1 means only stop at leaf nodes\&. >X.SS "" >X.HP \w'void\ talloc_report_depth_file('u >X.BI "void talloc_report_depth_file(" "const\ void\ *ptr" ", " "int\ depth" ", " "int\ max_depth" ", " "FILE\ *f" ");" >X.PP >XThis provides a more flexible reports than talloc_report()\&. It will let you specify the depth and max_depth\&. >X.SS "void talloc_enable_leak_report(void);" >X.PP >XThis enables calling of talloc_report(NULL, stderr) when the program exits\&. In Samba4 this is enabled by using the \-\-leak\-report command line option\&. >X.PP >XFor it to be useful, this function must be called before any other talloc function as it establishes a "null context" that acts as the top of the tree\&. If you don\*(Aqt call this function first then passing NULL to talloc_report() or talloc_report_full() won\*(Aqt give you the full tree printout\&. >X.PP >XHere is a typical talloc report: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >Xtalloc report on \*(Aqnull_context\*(Aq (total 267 bytes in 15 blocks) >Xlibcli/auth/spnego_parse\&.c:55 contains 31 bytes in 2 blocks >Xlibcli/auth/spnego_parse\&.c:55 contains 31 bytes in 2 blocks >Xiconv(UTF8,CP850) contains 42 bytes in 2 blocks >Xlibcli/auth/spnego_parse\&.c:55 contains 31 bytes in 2 blocks >Xiconv(CP850,UTF8) contains 42 bytes in 2 blocks >Xiconv(UTF8,UTF\-16LE) contains 45 bytes in 2 blocks >Xiconv(UTF\-16LE,UTF8) contains 45 bytes in 2 blocks >X >X.fi >X.if n \{\ >X.RE >X.\} >X.SS "void talloc_enable_leak_report_full(void);" >X.PP >XThis enables calling of talloc_report_full(NULL, stderr) when the program exits\&. In Samba4 this is enabled by using the \-\-leak\-report\-full command line option\&. >X.PP >XFor it to be useful, this function must be called before any other talloc function as it establishes a "null context" that acts as the top of the tree\&. If you don\*(Aqt call this function first then passing NULL to talloc_report() or talloc_report_full() won\*(Aqt give you the full tree printout\&. >X.PP >XHere is a typical full report: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >Xfull talloc report on \*(Aqroot\*(Aq (total 18 bytes in 8 blocks) >Xp1 contains 18 bytes in 7 blocks (ref 0) >X r1 contains 13 bytes in 2 blocks (ref 0) >X reference to: p2 >X p2 contains 1 bytes in 1 blocks (ref 1) >X x3 contains 1 bytes in 1 blocks (ref 0) >X x2 contains 1 bytes in 1 blocks (ref 0) >X x1 contains 1 bytes in 1 blocks (ref 0) >X >X.fi >X.if n \{\ >X.RE >X.\} >X.SS "(\fItype\fR *)talloc_zero(const void *\fIctx\fR, \fItype\fR);" >X.PP >XThe talloc_zero() macro is equivalent to: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >Xptr = talloc(ctx, type); >Xif (ptr) memset(ptr, 0, sizeof(type)); >X.fi >X.if n \{\ >X.RE >X.\} >X.SS "void *talloc_zero_size(const void *\fIctx\fR, size_t \fIsize\fR)" >X.PP >XThe talloc_zero_size() function is useful when you don\*(Aqt have a known type\&. >X.SS "void *talloc_memdup(const void *\fIctx\fR, const void *\fIp\fR, size_t size);" >X.PP >XThe talloc_memdup() function is equivalent to: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >Xptr = talloc_size(ctx, size); >Xif (ptr) memcpy(ptr, p, size); >X.fi >X.if n \{\ >X.RE >X.\} >X.SS "char *talloc_strdup(const void *\fIctx\fR, const char *\fIp\fR);" >X.PP >XThe talloc_strdup() function is equivalent to: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >Xptr = talloc_size(ctx, strlen(p)+1); >Xif (ptr) memcpy(ptr, p, strlen(p)+1); >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XThis function sets the name of the new pointer to the passed string\&. This is equivalent to: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >Xtalloc_set_name_const(ptr, ptr) >X.fi >X.if n \{\ >X.RE >X.\} >X.SS "char *talloc_strndup(const void *\fIt\fR, const char *\fIp\fR, size_t \fIn\fR);" >X.PP >XThe talloc_strndup() function is the talloc equivalent of the C library function strndup(3)\&. >X.PP >XThis function sets the name of the new pointer to the passed string\&. This is equivalent to: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >Xtalloc_set_name_const(ptr, ptr) >X.fi >X.if n \{\ >X.RE >X.\} >X.SS "char *talloc_vasprintf(const void *\fIt\fR, const char *\fIfmt\fR, va_list \fIap\fR);" >X.PP >XThe talloc_vasprintf() function is the talloc equivalent of the C library function vasprintf(3)\&. >X.PP >XThis function sets the name of the new pointer to the new string\&. This is equivalent to: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >Xtalloc_set_name_const(ptr, ptr) >X.fi >X.if n \{\ >X.RE >X.\} >X.SS "char *talloc_asprintf(const void *\fIt\fR, const char *\fIfmt\fR, \&.\&.\&.);" >X.PP >XThe talloc_asprintf() function is the talloc equivalent of the C library function asprintf(3)\&. >X.PP >XThis function sets the name of the new pointer to the passed string\&. This is equivalent to: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >Xtalloc_set_name_const(ptr, ptr) >X.fi >X.if n \{\ >X.RE >X.\} >X.SS "char *talloc_asprintf_append(char *s, const char *fmt, \&.\&.\&.);" >X.PP >XThe talloc_asprintf_append() function appends the given formatted string to the given string\&. >X.PP >XThis function sets the name of the new pointer to the new string\&. This is equivalent to: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >Xtalloc_set_name_const(ptr, ptr) >X.fi >X.if n \{\ >X.RE >X.\} >X.SS "(type *)talloc_array(const void *ctx, type, unsigned int count);" >X.PP >XThe talloc_array() macro is equivalent to: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X(type *)talloc_size(ctx, sizeof(type) * count); >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >Xexcept that it provides integer overflow protection for the multiply, returning NULL if the multiply overflows\&. >X.SS "void *talloc_array_size(const void *ctx, size_t size, unsigned int count);" >X.PP >XThe talloc_array_size() function is useful when the type is not known\&. It operates in the same way as talloc_array(), but takes a size instead of a type\&. >X.SS "(typeof(ptr)) talloc_array_ptrtype(const void *ctx, ptr, unsigned int count);" >X.PP >XThe talloc_ptrtype() macro should be used when you have a pointer to an array and want to allocate memory of an array to point at with this pointer\&. When compiling with gcc >= 3 it is typesafe\&. Note this is a wrapper of talloc_array_size() and talloc_get_name() will return the current location in the source file\&. and not the type\&. >X.SS "void *talloc_realloc_fn(const void *ctx, void *ptr, size_t size)" >X.PP >XThis is a non\-macro version of talloc_realloc(), which is useful as libraries sometimes want a realloc function pointer\&. A realloc(3) implementation encapsulates the functionality of malloc(3), free(3) and realloc(3) in one call, which is why it is useful to be able to pass around a single function pointer\&. >X.SS "void *talloc_autofree_context(void);" >X.PP >XThis is a handy utility function that returns a talloc context which will be automatically freed on program exit\&. This can be used to reduce the noise in memory leak reports\&. >X.SS "void *talloc_check_name(const void *ptr, const char *name);" >X.PP >XThis function checks if a pointer has the specified >X\fIname\fR\&. If it does then the pointer is returned\&. It it doesn\*(Aqt then NULL is returned\&. >X.SS "(type *)talloc_get_type(const void *ptr, type);" >X.PP >XThis macro allows you to do type checking on talloc pointers\&. It is particularly useful for void* private pointers\&. It is equivalent to this: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X(type *)talloc_check_name(ptr, #type) >X.fi >X.if n \{\ >X.RE >X.\} >X.SS "talloc_set_type(const void *ptr, type);" >X.PP >XThis macro allows you to force the name of a pointer to be a particular >X\fItype\fR\&. This can be used in conjunction with talloc_get_type() to do type checking on void* pointers\&. >X.PP >XIt is equivalent to this: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >Xtalloc_set_name_const(ptr, #type) >X.fi >X.if n \{\ >X.RE >X.\} >X.SS "talloc_set_log_fn(void (*log_fn)(const char *message));" >X.PP >XThis function sets a logging function that talloc will use for warnings and errors\&. By default talloc will not print any warnings or errors\&. >X.SS "talloc_set_log_stderr(void);" >X.PP >XThis sets the talloc log function to write log messages to stderr >X.SH "PERFORMANCE" >X.PP >XAll the additional features of talloc(3) over malloc(3) do come at a price\&. We have a simple performance test in Samba4 that measures talloc() versus malloc() performance, and it seems that talloc() is about 10% slower than malloc() on my x86 Debian Linux box\&. For Samba, the great reduction in code complexity that we get by using talloc makes this worthwhile, especially as the total overhead of talloc/malloc in Samba is already quite small\&. >X.SH "SEE ALSO" >X.PP >Xmalloc(3), strndup(3), vasprintf(3), asprintf(3), >X\m[blue]\fB\%http://talloc.samba.org/\fR\m[] >X.SH "AUTHOR" >X.PP >XThe original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&. >X.SH "COPYRIGHT/LICENSE" >X.PP >XCopyright (C) Andrew Tridgell 2004 >X.PP >XThis program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version\&. >X.PP >XThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&. See the GNU General Public License for more details\&. >X.PP >XYou should have received a copy of the GNU General Public License along with this program; if not, see http://www\&.gnu\&.org/licenses/\&. >6ebd4e9c1cd1fe5b0e6a23e9e403a16e >echo x - inofficial/samba413/files/man/gentest.1 >sed 's/^X//' >inofficial/samba413/files/man/gentest.1 << 'd940933c70665466598e07691d480d18' >X'\" t >X.\" Title: gentest >X.\" Author: [see the "AUTHOR" section] >X.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> >X.\" Date: 09/23/2020 >X.\" Manual: Test Suite >X.\" Source: Samba 4.0 >X.\" Language: English >X.\" >X.TH "GENTEST" "1" "09/23/2020" "Samba 4\&.0" "Test Suite" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xgentest \- Run random generic SMB operations against two SMB servers and show the differences in behavior >X.SH "SYNOPSIS" >X.HP \w'\fBgentest\fR\ 'u >X\fBgentest\fR {//server1/share1} {//server2/share2} {\-U\ user%pass} {\-U\ user%pass} [\-s\ seed] [\-o\ numops] [\-a] [\-A] [\-i\ FILE] [\-O] [\-S\ FILE] [\-L] [\-F] [\-C] [\-X] >X.SH "DESCRIPTION" >X.PP >Xgentest >Xis a utility for detecting differences in behaviour between SMB servers\&. It will run a random set of generic operations against >X\fI//server1/share1\fR >Xand then the same random set against >X\fI//server2/share2\fR >Xand display the differences in the responses it gets\&. >X.PP >XThis utility is used by the Samba team to find differences in behaviour between Samba and Windows servers\&. >X.SH "OPTIONS" >X.PP >X\-U user%pass >X.RS 4 >XSpecify the user and password to use when logging on on the shares\&. This parameter is mandatory and has to be specified twice\&. >X.RE >X.PP >X\-s seed >X.RS 4 >XSeed the random number generator with the specified value\&. >X.RE >X.PP >X\-o numops >X.RS 4 >XSet the number of operations to perform\&. >X.RE >X.PP >X\-a >X.RS 4 >XPrint the operations that are performed\&. >X.RE >X.PP >X\-A >X.RS 4 >XBacktrack to find minimal number of operations required to make the response to a certain call differ\&. >X.RE >X.PP >X\-i FILE >X.RS 4 >XSpecify a file containing the names of fields that have to be ignored (such as time fields)\&. See below for a description of the file format\&. >X.RE >X.PP >X\-O >X.RS 4 >XEnable oplocks\&. >X.RE >X.PP >X\-S FILE >X.RS 4 >XSet preset seeds file\&. The default is >Xgentest_seeds\&.dat\&. >X.RE >X.PP >X\-L >X.RS 4 >XUse preset seeds >X.RE >X.PP >X\-F >X.RS 4 >XFast reconnect (just close files) >X.RE >X.PP >X\-C >X.RS 4 >XContinuous analysis mode >X.RE >X.PP >X\-X >X.RS 4 >XAnalyse even when the test succeeded\&. >X.RE >X.SH "VERSION" >X.PP >XThis man page is correct for version 4\&.0 of the Samba suite\&. >X.SH "SEE ALSO" >X.PP >XSamba >X.SH "AUTHOR" >X.PP >XThis utility is part of the >X\m[blue]\fBSamba\fR\m[]\&\s-2\u[1]\d\s+2 >Xsuite, which is developed by the global >X\m[blue]\fBSamba Team\fR\m[]\&\s-2\u[2]\d\s+2\&. >X.PP >Xgentest was written by Andrew Tridgell\&. >X.PP >XThis manpage was written by Jelmer Vernooij\&. >X.SH "NOTES" >X.IP " 1." 4 >XSamba >X.RS 4 >X\%http://www.samba.org/ >X.RE >X.IP " 2." 4 >XSamba Team >X.RS 4 >X\%http://www.samba.org/samba/team/ >X.RE >d940933c70665466598e07691d480d18 >echo x - inofficial/samba413/files/man/regpatch.1 >sed 's/^X//' >inofficial/samba413/files/man/regpatch.1 << '37f7268dd37299850b5cef3566457600' >X'\" t >X.\" Title: regpatch >X.\" Author: [see the "AUTHOR" section] >X.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> >X.\" Date: 09/23/2020 >X.\" Manual: System Administration tools >X.\" Source: Samba 4.0 >X.\" Language: English >X.\" >X.TH "REGPATCH" "1" "09/23/2020" "Samba 4\&.0" "System Administration tools" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xregpatch \- Applies registry patches to registry files >X.SH "SYNOPSIS" >X.HP \w'\fBregpatch\fR\ 'u >X\fBregpatch\fR [\-\-help] [\-\-backend=BACKEND] [\-\-credentials=CREDENTIALS] [location] [patch\-file] >X.SH "DESCRIPTION" >X.PP >XThe regpatch utility applies registry patches to Windows registry files\&. The patch files should have the same format as is being used by the regdiff utility and regedit32\&.exe from Windows\&. >X.PP >XIf no patch file is specified on the command line, regpatch attempts to read it from standard input\&. >X.SH "OPTIONS" >X.PP >X\-\-help >X.RS 4 >XShow list of available options\&. >X.RE >X.PP >X\-\-backend BACKEND >X.RS 4 >XName of backend to load\&. Possible values are: creg, regf, dir and rpc\&. The default is >X\fIdir\fR\&. >X.RE >X.PP >X\-\-credentials=CREDENTIALS >X.RS 4 >XCredentials to use, if any\&. Password should be separated from user name by a percent sign\&. >X.RE >X.SH "VERSION" >X.PP >XThis man page is correct for version 4\&.0 of the Samba suite\&. >X.SH "SEE ALSO" >X.PP >Xregdiff, regtree, regshell, gregedit, samba, diff, patch >X.SH "AUTHOR" >X.PP >XThis utility is part of the >X\m[blue]\fBSamba\fR\m[]\&\s-2\u[1]\d\s+2 >Xsuite, which is developed by the global >X\m[blue]\fBSamba Team\fR\m[]\&\s-2\u[2]\d\s+2\&. >X.PP >XThis manpage and regpatch were written by Jelmer Vernooij\&. >X.SH "NOTES" >X.IP " 1." 4 >XSamba >X.RS 4 >X\%http://www.samba.org/ >X.RE >X.IP " 2." 4 >XSamba Team >X.RS 4 >X\%http://www.samba.org/samba/team/ >X.RE >37f7268dd37299850b5cef3566457600 >echo x - inofficial/samba413/files/man/ctdb-statistics.7 >sed 's/^X//' >inofficial/samba413/files/man/ctdb-statistics.7 << 'f9e6371d46b7472947a936473d84b310' >X'\" t >X.\" Title: ctdb-statistics >X.\" Author: >X.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> >X.\" Date: 09/23/2020 >X.\" Manual: CTDB - clustered TDB database >X.\" Source: ctdb >X.\" Language: English >X.\" >X.TH "CTDB\-STATISTICS" "7" "09/23/2020" "ctdb" "CTDB \- clustered TDB database" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xctdb-statistics \- CTDB statistics output >X.SH "OVERALL STATISTICS" >X.PP >XCTDB maintains information about various messages communicated and some of the important operations per node\&. See the >X\fBctdb\fR(1) >Xcommands >X\fBstatistics\fR >Xand >X\fBstatisticsreset\fR >Xfor displaying statistics\&. >X.SS "Example: ctdb statistics" >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >XCTDB version 1 >XCurrent time of statistics : Fri Sep 12 13:32:32 2014 >XStatistics collected since : (000 01:49:20) Fri Sep 12 11:43:12 2014 >X num_clients 6 >X frozen 0 >X recovering 0 >X num_recoveries 2 >X client_packets_sent 281293 >X client_packets_recv 296317 >X node_packets_sent 452387 >X node_packets_recv 182394 >X keepalive_packets_sent 3927 >X keepalive_packets_recv 3928 >X node >X req_call 48605 >X reply_call 1 >X req_dmaster 23404 >X reply_dmaster 24917 >X reply_error 0 >X req_message 958 >X req_control 197513 >X reply_control 153705 >X client >X req_call 130866 >X req_message 770 >X req_control 168921 >X timeouts >X call 0 >X control 0 >X traverse 0 >X locks >X num_calls 220 >X num_current 0 >X num_pending 0 >X num_failed 0 >X total_calls 130866 >X pending_calls 0 >X childwrite_calls 1 >X pending_childwrite_calls 0 >X memory_used 334490 >X max_hop_count 18 >X total_ro_delegations 2 >X total_ro_revokes 2 >X hop_count_buckets: 42816 5464 26 1 0 0 0 0 0 0 0 0 0 0 0 0 >X lock_buckets: 9 165 14 15 7 2 2 0 0 0 0 0 0 0 0 0 >X locks_latency MIN/AVG/MAX 0\&.000685/0\&.160302/6\&.369342 sec out of 214 >X reclock_ctdbd MIN/AVG/MAX 0\&.004940/0\&.004969/0\&.004998 sec out of 2 >X reclock_recd MIN/AVG/MAX 0\&.000000/0\&.000000/0\&.000000 sec out of 0 >X call_latency MIN/AVG/MAX 0\&.000006/0\&.000719/4\&.562991 sec out of 126626 >X childwrite_latency MIN/AVG/MAX 0\&.014527/0\&.014527/0\&.014527 sec out of 1 >X >X.fi >X.if n \{\ >X.RE >X.\} >X.SS "CTDB version" >X.PP >XVersion of the ctdb protocol used by the node\&. >X.SS "Current time of statistics" >X.PP >XTime when the statistics are generated\&. >X.PP >XThis is useful when collecting statistics output periodically for post\-processing\&. >X.SS "Statistics collected since" >X.PP >XTime when ctdb was started or the last time statistics was reset\&. The output shows the duration and the timestamp\&. >X.SS "num_clients" >X.PP >XNumber of processes currently connected to CTDB\*(Aqs unix socket\&. This includes recovery daemon, ctdb tool and samba processes (smbd, winbindd)\&. >X.SS "frozen" >X.PP >X1 if the databases are currently frozen, 0 otherwise\&. >X.SS "recovering" >X.PP >X1 if recovery is active, 0 otherwise\&. >X.SS "num_recoveries" >X.PP >XNumber of recoveries since the start of ctdb or since the last statistics reset\&. >X.SS "client_packets_sent" >X.PP >XNumber of packets sent to client processes via unix domain socket\&. >X.SS "client_packets_recv" >X.PP >XNumber of packets received from client processes via unix domain socket\&. >X.SS "node_packets_sent" >X.PP >XNumber of packets sent to the other nodes in the cluster via TCP\&. >X.SS "node_packets_recv" >X.PP >XNumber of packets received from the other nodes in the cluster via TCP\&. >X.SS "keepalive_packets_sent" >X.PP >XNumber of keepalive messages sent to other nodes\&. >X.PP >XCTDB periodically sends keepalive messages to other nodes\&. See >XKeepaliveInterval >Xtunable in >X\fBctdb-tunables\fR(7) >Xfor more details\&. >X.SS "keepalive_packets_recv" >X.PP >XNumber of keepalive messages received from other nodes\&. >X.SS "node" >X.PP >XThis section lists various types of messages processed which originated from other nodes via TCP\&. >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBreq_call\fR >X.RS 4 >X.PP >XNumber of REQ_CALL messages from the other nodes\&. >X.RE >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBreply_call\fR >X.RS 4 >X.PP >XNumber of REPLY_CALL messages from the other nodes\&. >X.RE >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBreq_dmaster\fR >X.RS 4 >X.PP >XNumber of REQ_DMASTER messages from the other nodes\&. >X.RE >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBreply_dmaster\fR >X.RS 4 >X.PP >XNumber of REPLY_DMASTER messages from the other nodes\&. >X.RE >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBreply_error\fR >X.RS 4 >X.PP >XNumber of REPLY_ERROR messages from the other nodes\&. >X.RE >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBreq_message\fR >X.RS 4 >X.PP >XNumber of REQ_MESSAGE messages from the other nodes\&. >X.RE >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBreq_control\fR >X.RS 4 >X.PP >XNumber of REQ_CONTROL messages from the other nodes\&. >X.RE >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBreply_control\fR >X.RS 4 >X.PP >XNumber of REPLY_CONTROL messages from the other nodes\&. >X.RE >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBreq_tunnel\fR >X.RS 4 >X.PP >XNumber of REQ_TUNNEL messages from the other nodes\&. >X.RE >X.SS "client" >X.PP >XThis section lists various types of messages processed which originated from clients via unix domain socket\&. >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBreq_call\fR >X.RS 4 >X.PP >XNumber of REQ_CALL messages from the clients\&. >X.RE >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBreq_message\fR >X.RS 4 >X.PP >XNumber of REQ_MESSAGE messages from the clients\&. >X.RE >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBreq_control\fR >X.RS 4 >X.PP >XNumber of REQ_CONTROL messages from the clients\&. >X.RE >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBreq_tunnel\fR >X.RS 4 >X.PP >XNumber of REQ_TUNNEL messages from the clients\&. >X.RE >X.SS "timeouts" >X.PP >XThis section lists timeouts occurred when sending various messages\&. >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBcall\fR >X.RS 4 >X.PP >XNumber of timeouts for REQ_CALL messages\&. >X.RE >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBcontrol\fR >X.RS 4 >X.PP >XNumber of timeouts for REQ_CONTROL messages\&. >X.RE >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBtraverse\fR >X.RS 4 >X.PP >XNumber of timeouts for database traverse operations\&. >X.RE >X.SS "locks" >X.PP >XThis section lists locking statistics\&. >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBnum_calls\fR >X.RS 4 >X.PP >XNumber of completed lock calls\&. This includes database locks and record locks\&. >X.RE >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBnum_current\fR >X.RS 4 >X.PP >XNumber of scheduled lock calls\&. This includes database locks and record locks\&. >X.RE >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBnum_pending\fR >X.RS 4 >X.PP >XNumber of queued lock calls\&. This includes database locks and record locks\&. >X.RE >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBnum_failed\fR >X.RS 4 >X.PP >XNumber of failed lock calls\&. This includes database locks and record locks\&. >X.RE >X.SS "total_calls" >X.PP >XNumber of req_call messages processed from clients\&. This number should be same as client \-\-> req_call\&. >X.SS "pending_calls" >X.PP >XNumber of req_call messages which are currently being processed\&. This number indicates the number of record migrations in flight\&. >X.SS "childwrite_calls" >X.PP >XNumber of record update calls\&. Record update calls are used to update a record under a transaction\&. >X.SS "pending_childwrite_calls" >X.PP >XNumber of record update calls currently active\&. >X.SS "memory_used" >X.PP >XThe amount of memory in bytes currently used by CTDB using talloc\&. This includes all the memory used for CTDB\*(Aqs internal data structures\&. This does not include the memory mapped TDB databases\&. >X.SS "max_hop_count" >X.PP >XThe maximum number of hops required for a record migration request to obtain the record\&. High numbers indicate record contention\&. >X.SS "total_ro_delegations" >X.PP >XNumber of readonly delegations created\&. >X.SS "total_ro_revokes" >X.PP >XNumber of readonly delegations that were revoked\&. The difference between total_ro_revokes and total_ro_delegations gives the number of currently active readonly delegations\&. >X.SS "hop_count_buckets" >X.PP >XDistribution of migration requests based on hop counts values\&. Buckets are 0, <\ \&2, <\ \&4, <\ \&8, <\ \&16, <\ \&32, <\ \&64, <\ \&128, <\ \&256, <\ \&512, <\ \&1024, <\ \&2048, <\ \&4096, <\ \&8192, <\ \&16384, ≥\ \&16384\&. >X.SS "lock_buckets" >X.PP >XDistribution of record lock requests based on time required to obtain locks\&. Buckets are <\ \&1ms, <\ \&10ms, <\ \&100ms, <\ \&1s, <\ \&2s, <\ \&4s, <\ \&8s, <\ \&16s, <\ \&32s, <\ \&64s, ≥\ \&64s\&. >X.SS "locks_latency" >X.PP >XThe minimum, the average and the maximum time (in seconds) required to obtain record locks\&. >X.SS "reclock_ctdbd" >X.PP >XThe minimum, the average and the maximum time (in seconds) required to check if recovery lock is still held by recovery daemon when recovery mode is changed\&. This check is done in ctdb daemon\&. >X.SS "reclock_recd" >X.PP >XThe minimum, the average and the maximum time (in seconds) required to check if recovery lock is still held by recovery daemon during recovery\&. This check is done in recovery daemon\&. >X.SS "call_latency" >X.PP >XThe minimum, the average and the maximum time (in seconds) required to process a REQ_CALL message from client\&. This includes the time required to migrate a record from remote node, if the record is not available on the local node\&. >X.SS "childwrite_latency" >X.PP >XDefault: 0 >X.PP >XThe minimum, the average and the maximum time (in seconds) required to update records under a transaction\&. >X.SH "DATABASE STATISTICS" >X.PP >XCTDB maintains per database statistics about important operations\&. See the >X\fBctdb\fR(1) >Xcommand >X\fBdbstatistics\fR >Xfor displaying database statistics\&. >X.SS "Example: ctdb dbstatistics notify_index\&.tdb" >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >XDB Statistics: notify_index\&.tdb >X ro_delegations 0 >X ro_revokes 0 >X locks >X total 131 >X failed 0 >X current 0 >X pending 0 >X hop_count_buckets: 9890 5454 26 1 0 0 0 0 0 0 0 0 0 0 0 0 >X lock_buckets: 4 117 10 0 0 0 0 0 0 0 0 0 0 0 0 0 >X locks_latency MIN/AVG/MAX 0\&.000683/0\&.004198/0\&.014730 sec out of 131 >X Num Hot Keys: 3 >X Count:7 Key:2f636c75737465726673 >X Count:18 Key:2f636c757374657266732f64617461 >X Count:7 Key:2f636c757374657266732f646174612f636c69656e7473 >X >X.fi >X.if n \{\ >X.RE >X.\} >X.SS "DB Statistics" >X.PP >XName of the database\&. >X.SS "ro_delegations" >X.PP >XNumber of readonly delegations created in the database\&. >X.SS "ro_revokes" >X.PP >XNumber of readonly delegations revoked\&. The difference in ro_delegations and ro_revokes indicates the currently active readonly delegations\&. >X.SS "locks" >X.PP >XThis section lists locking statistics\&. >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBtotal\fR >X.RS 4 >X.PP >XNumber of completed lock calls\&. This includes database locks and record locks\&. >X.RE >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBfailed\fR >X.RS 4 >X.PP >XNumber of failed lock calls\&. This includes database locks and record locks\&. >X.RE >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBcurrent\fR >X.RS 4 >X.PP >XNumber of scheduled lock calls\&. This includes database locks and record locks\&. >X.RE >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBpending\fR >X.RS 4 >X.PP >XNumber of queued lock calls\&. This includes database locks and record locks\&. >X.RE >X.SS "hop_count_buckets" >X.PP >XDistribution of migration requests based on hop counts values\&. Buckets are 0, <\ \&2, <\ \&4, <\ \&8, <\ \&16, <\ \&32, <\ \&64, <\ \&128, <\ \&256, <\ \&512, <\ \&1024, <\ \&2048, <\ \&4096, <\ \&8192, <\ \&16384, ≥\ \&16384\&. >X.SS "lock_buckets" >X.PP >XDistribution of record lock requests based on time required to obtain locks\&. Buckets are <\ \&1ms, <\ \&10ms, <\ \&100ms, <\ \&1s, <\ \&2s, <\ \&4s, <\ \&8s, <\ \&16s, <\ \&32s, <\ \&64s, ≥\ \&64s\&. >X.SS "locks_latency" >X.PP >XThe minimum, the average and the maximum time (in seconds) required to obtain record locks\&. >X.SS "Num Hot Keys" >X.PP >XNumber of contended records determined by hop count\&. CTDB keeps track of top 10 hot records and the output shows hex encoded keys for the hot records\&. >X.SH "SEE ALSO" >X.PP >X\fBctdb\fR(1), >X\fBctdbd\fR(1), >X\fBctdb-tunables\fR(7), >X\m[blue]\fB\%http://ctdb.samba.org/\fR\m[] >X.SH "AUTHOR" >X.br >X.PP >XThis documentation was written by Amitay Isaacs, Martin Schwenke >X.SH "COPYRIGHT" >X.br >XCopyright \(co 2007 Andrew Tridgell, Ronnie Sahlberg >X.br >X.PP >XThis program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version\&. >X.PP >XThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&. See the GNU General Public License for more details\&. >X.PP >XYou should have received a copy of the GNU General Public License along with this program; if not, see >X\m[blue]\fB\%http://www.gnu.org/licenses\fR\m[]\&. >X.sp >f9e6371d46b7472947a936473d84b310 >echo x - inofficial/samba413/files/man/tdbbackup.8 >sed 's/^X//' >inofficial/samba413/files/man/tdbbackup.8 << '52d46de090f4d863eca0f55515e0c213' >X'\" t >X.\" Title: tdbbackup >X.\" Author: [see the "AUTHOR" section] >X.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> >X.\" Date: 2015-04-25 >X.\" Manual: System Administration tools >X.\" Source: Samba 3.6 >X.\" Language: English >X.\" >X.TH "TDBBACKUP" "8" "2015\-04\-25" "Samba 3\&.6" "System Administration tools" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xtdbbackup \- tool for backing up and for validating the integrity of samba \&.tdb files >X.SH "SYNOPSIS" >X.HP \w'\fBtdbbackup\fR\ 'u >X\fBtdbbackup\fR [\-s\ suffix] [\-v] [\-h] [\-l] >X.SH "DESCRIPTION" >X.PP >XThis tool is part of the >X\fBsamba\fR(1) >Xsuite\&. >X.PP >X\fBtdbbackup\fR >Xis a tool that may be used to backup samba \&.tdb files\&. This tool may also be used to verify the integrity of the \&.tdb files prior to samba startup or during normal operation\&. If it finds file damage and it finds a prior backup the backup file will be restored\&. >X.SH "OPTIONS" >X.PP >X\-h >X.RS 4 >XGet help information\&. >X.RE >X.PP >X\-s suffix >X.RS 4 >XThe >X\fB\-s\fR >Xoption allows the administrator to specify a file backup extension\&. This way it is possible to keep a history of tdb backup files by using a new suffix for each backup\&. >X.RE >X.PP >X\-v >X.RS 4 >XThe >X\fB\-v\fR >Xwill check the database for damages (corrupt data) which if detected causes the backup to be restored\&. >X.RE >X.PP >X\-l >X.RS 4 >XThis options disables any locking, by passing TDB_NOLOCK to tdb_open_ex()\&. Only use this for database files which are not used by any other process! And also only if it is otherwise not possible to open the database, e\&.g\&. databases which were created with mutex locking\&. >X.RE >X.SH "COMMANDS" >X.PP >X\fIGENERAL INFORMATION\fR >X.PP >XThe >X\fBtdbbackup\fR >Xutility can safely be run at any time\&. It was designed so that it can be used at any time to validate the integrity of tdb files, even during Samba operation\&. Typical usage for the command will be: >X.PP >Xtdbbackup [\-s suffix] *\&.tdb >X.PP >XBefore restarting samba the following command may be run to validate \&.tdb files: >X.PP >Xtdbbackup \-v [\-s suffix] *\&.tdb >X.PP >XSamba \&.tdb files are stored in various locations, be sure to run backup all \&.tdb file on the system\&. Important files includes: >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04'\(bu\h'+03'\c >X.\} >X.el \{\ >X.sp -1 >X.IP \(bu 2.3 >X.\} >X >X\fBsecrets\&.tdb\fR >X\- usual location is in the /usr/local/samba/private directory, or on some systems in /etc/samba\&. >X.RE >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04'\(bu\h'+03'\c >X.\} >X.el \{\ >X.sp -1 >X.IP \(bu 2.3 >X.\} >X >X\fBpassdb\&.tdb\fR >X\- usual location is in the /usr/local/samba/private directory, or on some systems in /etc/samba\&. >X.RE >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04'\(bu\h'+03'\c >X.\} >X.el \{\ >X.sp -1 >X.IP \(bu 2.3 >X.\} >X >X\fB*\&.tdb\fR >Xlocated in the /usr/local/samba/var directory or on some systems in the /var/cache or /var/lib/samba directories\&. >X.RE >X.SH "VERSION" >X.PP >XThis man page is correct for version 3 of the Samba suite\&. >X.SH "AUTHOR" >X.PP >XThe original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&. >X.PP >XThe tdbbackup man page was written by John H Terpstra\&. >52d46de090f4d863eca0f55515e0c213 >echo x - inofficial/samba413/files/man/ctdb-tunables.7 >sed 's/^X//' >inofficial/samba413/files/man/ctdb-tunables.7 << '6f97019242a289ad0f418ab7c2834202' >X'\" t >X.\" Title: ctdb-tunables >X.\" Author: >X.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> >X.\" Date: 09/23/2020 >X.\" Manual: CTDB - clustered TDB database >X.\" Source: ctdb >X.\" Language: English >X.\" >X.TH "CTDB\-TUNABLES" "7" "09/23/2020" "ctdb" "CTDB \- clustered TDB database" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xctdb-tunables \- CTDB tunable configuration variables >X.SH "DESCRIPTION" >X.PP >XCTDB\*(Aqs behaviour can be configured by setting run\-time tunable variables\&. This lists and describes all tunables\&. See the >X\fBctdb\fR(1) >X\fBlistvars\fR, >X\fBsetvar\fR >Xand >X\fBgetvar\fR >Xcommands for more details\&. >X.PP >XUnless otherwise stated, tunables should be set to the same value on all nodes\&. Setting tunables to different values across nodes may produce unexpected results\&. Future releases may set (some or most) tunables globally across the cluster but doing so is currently a manual process\&. >X.PP >XTunables can be set at startup from the >X/usr/local/etc/ctdb/ctdb\&.tunables >Xconfiguration file\&. >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X\fITUNABLE\fR=\fIVALUE\fR >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XFor example: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >XMonitorInterval=20 >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XThe available tunable variables are listed alphabetically below\&. >X.SS "AllowClientDBAttach" >X.PP >XDefault: 1 >X.PP >XWhen set to 0, clients are not allowed to attach to any databases\&. This can be used to temporarily block any new processes from attaching to and accessing the databases\&. This is mainly used for detaching a volatile database using \*(Aqctdb detach\*(Aq\&. >X.SS "AllowMixedVersions" >X.PP >XDefault: 0 >X.PP >XCTDB will not allow incompatible versions to co\-exist in a cluster\&. If a version mismatch is found, then losing CTDB will shutdown\&. To disable the incompatible version check, set this tunable to 1\&. >X.PP >XFor version checking, CTDB uses major and minor version\&. For example, CTDB 4\&.6\&.1 and CTDB 4\&.6\&.2 are matching versions; CTDB 4\&.5\&.x and CTDB 4\&.6\&.y do not match\&. >X.PP >XCTDB with version check support will lose to CTDB without version check support\&. Between two different CTDB versions with version check support, one running for less time will lose\&. If the running time for both CTDB versions with version check support is equal (to seconds), then the older version will lose\&. The losing CTDB daemon will shutdown\&. >X.SS "AllowUnhealthyDBRead" >X.PP >XDefault: 0 >X.PP >XWhen set to 1, ctdb allows database traverses to read unhealthy databases\&. By default, ctdb does not allow reading records from unhealthy databases\&. >X.SS "ControlTimeout" >X.PP >XDefault: 60 >X.PP >XThis is the default setting for timeout for when sending a control message to either the local or a remote ctdb daemon\&. >X.SS "DatabaseHashSize" >X.PP >XDefault: 100001 >X.PP >XNumber of the hash chains for the local store of the tdbs that ctdb manages\&. >X.SS "DatabaseMaxDead" >X.PP >XDefault: 5 >X.PP >XMaximum number of dead records per hash chain for the tdb databses managed by ctdb\&. >X.SS "DBRecordCountWarn" >X.PP >XDefault: 100000 >X.PP >XWhen set to non\-zero, ctdb will log a warning during recovery if a database has more than this many records\&. This will produce a warning if a database grows uncontrollably with orphaned records\&. >X.SS "DBRecordSizeWarn" >X.PP >XDefault: 10000000 >X.PP >XWhen set to non\-zero, ctdb will log a warning during recovery if a single record is bigger than this size\&. This will produce a warning if a database record grows uncontrollably\&. >X.SS "DBSizeWarn" >X.PP >XDefault: 1000000000 >X.PP >XWhen set to non\-zero, ctdb will log a warning during recovery if a database size is bigger than this\&. This will produce a warning if a database grows uncontrollably\&. >X.SS "DeferredAttachTO" >X.PP >XDefault: 120 >X.PP >XWhen databases are frozen we do not allow clients to attach to the databases\&. Instead of returning an error immediately to the client, the attach request from the client is deferred until the database becomes available again at which stage we respond to the client\&. >X.PP >XThis timeout controls how long we will defer the request from the client before timing it out and returning an error to the client\&. >X.SS "ElectionTimeout" >X.PP >XDefault: 3 >X.PP >XThe number of seconds to wait for the election of recovery master to complete\&. If the election is not completed during this interval, then that round of election fails and ctdb starts a new election\&. >X.SS "EnableBans" >X.PP >XDefault: 1 >X.PP >XThis parameter allows ctdb to ban a node if the node is misbehaving\&. >X.PP >XWhen set to 0, this disables banning completely in the cluster and thus nodes can not get banned, even it they break\&. Don\*(Aqt set to 0 unless you know what you are doing\&. >X.SS "EventScriptTimeout" >X.PP >XDefault: 30 >X.PP >XMaximum time in seconds to allow an event to run before timing out\&. This is the total time for all enabled scripts that are run for an event, not just a single event script\&. >X.PP >XNote that timeouts are ignored for some events ("takeip", "releaseip", "startrecovery", "recovered") and converted to success\&. The logic here is that the callers of these events implement their own additional timeout\&. >X.SS "FetchCollapse" >X.PP >XDefault: 1 >X.PP >XThis parameter is used to avoid multiple migration requests for the same record from a single node\&. All the record requests for the same record are queued up and processed when the record is migrated to the current node\&. >X.PP >XWhen many clients across many nodes try to access the same record at the same time this can lead to a fetch storm where the record becomes very active and bounces between nodes very fast\&. This leads to high CPU utilization of the ctdbd daemon, trying to bounce that record around very fast, and poor performance\&. This can improve performance and reduce CPU utilization for certain workloads\&. >X.SS "HopcountMakeSticky" >X.PP >XDefault: 50 >X.PP >XFor database(s) marked STICKY (using \*(Aqctdb setdbsticky\*(Aq), any record that is migrating so fast that hopcount exceeds this limit is marked as STICKY record for >X\fIStickyDuration\fR >Xseconds\&. This means that after each migration the sticky record will be kept on the node >X\fIStickyPindown\fRmilliseconds and prevented from being migrated off the node\&. >X.PP >XThis will improve performance for certain workloads, such as locking\&.tdb if many clients are opening/closing the same file concurrently\&. >X.SS "IPAllocAlgorithm" >X.PP >XDefault: 2 >X.PP >XSelects the algorithm that CTDB should use when doing public IP address allocation\&. Meaningful values are: >X.PP >X0 >X.RS 4 >XDeterministic IP address allocation\&. >X.sp >XThis is a simple and fast option\&. However, it can cause unnecessary address movement during fail\-over because each address has a "home" node\&. Works badly when some nodes do not have any addresses defined\&. Should be used with care when addresses are defined across multiple networks\&. >X.RE >X.PP >X1 >X.RS 4 >XNon\-deterministic IP address allocation\&. >X.sp >XThis is a relatively fast option that attempts to do a minimise unnecessary address movements\&. Addresses do not have a "home" node\&. Rebalancing is limited but it usually adequate\&. Works badly when addresses are defined across multiple networks\&. >X.RE >X.PP >X2 >X.RS 4 >XLCP2 IP address allocation\&. >X.sp >XUses a heuristic to assign addresses defined across multiple networks, usually balancing addresses on each network evenly across nodes\&. Addresses do not have a "home" node\&. Minimises unnecessary address movements\&. The algorithm is complex, so is slower than other choices for a large number of addresses\&. However, it can calculate an optimal assignment of 900 addresses in under 10 seconds on modern hardware\&. >X.RE >X.PP >XIf the specified value is not one of these then the default will be used\&. >X.SS "KeepaliveInterval" >X.PP >XDefault: 5 >X.PP >XHow often in seconds should the nodes send keep\-alive packets to each other\&. >X.SS "KeepaliveLimit" >X.PP >XDefault: 5 >X.PP >XAfter how many keepalive intervals without any traffic should a node wait until marking the peer as DISCONNECTED\&. >X.PP >XIf a node has hung, it can take >X\fIKeepaliveInterval\fR >X* (\fIKeepaliveLimit\fR >X+ 1) seconds before ctdb determines that the node is DISCONNECTED and performs a recovery\&. This limit should not be set too high to enable early detection and avoid any application timeouts (e\&.g\&. SMB1) to kick in before the fail over is completed\&. >X.SS "LockProcessesPerDB" >X.PP >XDefault: 200 >X.PP >XThis is the maximum number of lock helper processes ctdb will create for obtaining record locks\&. When ctdb cannot get a record lock without blocking, it creates a helper process that waits for the lock to be obtained\&. >X.SS "LogLatencyMs" >X.PP >XDefault: 0 >X.PP >XWhen set to non\-zero, ctdb will log if certains operations take longer than this value, in milliseconds, to complete\&. These operations include "process a record request from client", "take a record or database lock", "update a persistent database record" and "vacuum a database"\&. >X.SS "MaxQueueDropMsg" >X.PP >XDefault: 1000000 >X.PP >XThis is the maximum number of messages to be queued up for a client before ctdb will treat the client as hung and will terminate the client connection\&. >X.SS "MonitorInterval" >X.PP >XDefault: 15 >X.PP >XHow often should ctdb run the \*(Aqmonitor\*(Aq event in seconds to check for a node\*(Aqs health\&. >X.SS "MonitorTimeoutCount" >X.PP >XDefault: 20 >X.PP >XHow many \*(Aqmonitor\*(Aq events in a row need to timeout before a node is flagged as UNHEALTHY\&. This setting is useful if scripts can not be written so that they do not hang for benign reasons\&. >X.SS "NoIPFailback" >X.PP >XDefault: 0 >X.PP >XWhen set to 1, ctdb will not perform failback of IP addresses when a node becomes healthy\&. When a node becomes UNHEALTHY, ctdb WILL perform failover of public IP addresses, but when the node becomes HEALTHY again, ctdb will not fail the addresses back\&. >X.PP >XUse with caution! Normally when a node becomes available to the cluster ctdb will try to reassign public IP addresses onto the new node as a way to distribute the workload evenly across the clusternode\&. Ctdb tries to make sure that all running nodes have approximately the same number of public addresses it hosts\&. >X.PP >XWhen you enable this tunable, ctdb will no longer attempt to rebalance the cluster by failing IP addresses back to the new nodes\&. An unbalanced cluster will therefore remain unbalanced until there is manual intervention from the administrator\&. When this parameter is set, you can manually fail public IP addresses over to the new node(s) using the \*(Aqctdb moveip\*(Aq command\&. >X.SS "NoIPTakeover" >X.PP >XDefault: 0 >X.PP >XWhen set to 1, ctdb will not allow IP addresses to be failed over to other nodes\&. Any IP addresses already hosted on healthy nodes will remain\&. Any IP addresses hosted on unhealthy nodes will be released by unhealthy nodes and will become un\-hosted\&. >X.SS "PullDBPreallocation" >X.PP >XDefault: 10*1024*1024 >X.PP >XThis is the size of a record buffer to pre\-allocate for sending reply to PULLDB control\&. Usually record buffer starts with size of the first record and gets reallocated every time a new record is added to the record buffer\&. For a large number of records, this can be very inefficient to grow the record buffer one record at a time\&. >X.SS "QueueBufferSize" >X.PP >XDefault: 1024 >X.PP >XThis is the maximum amount of data (in bytes) ctdb will read from a socket at a time\&. >X.PP >XFor a busy setup, if ctdb is not able to process the TCP sockets fast enough (large amount of data in Recv\-Q for tcp sockets), then this tunable value should be increased\&. However, large values can keep ctdb busy processing packets and prevent ctdb from handling other events\&. >X.SS "RecBufferSizeLimit" >X.PP >XDefault: 1000000 >X.PP >XThis is the limit on the size of the record buffer to be sent in various controls\&. This limit is used by new controls used for recovery and controls used in vacuuming\&. >X.SS "RecdFailCount" >X.PP >XDefault: 10 >X.PP >XIf the recovery daemon has failed to ping the main daemon for this many consecutive intervals, the main daemon will consider the recovery daemon as hung and will try to restart it to recover\&. >X.SS "RecdPingTimeout" >X.PP >XDefault: 60 >X.PP >XIf the main daemon has not heard a "ping" from the recovery daemon for this many seconds, the main daemon will log a message that the recovery daemon is potentially hung\&. This also increments a counter which is checked against >X\fIRecdFailCount\fR >Xfor detection of hung recovery daemon\&. >X.SS "RecLockLatencyMs" >X.PP >XDefault: 1000 >X.PP >XWhen using a reclock file for split brain prevention, if set to non\-zero this tunable will make the recovery daemon log a message if the fcntl() call to lock/testlock the recovery file takes longer than this number of milliseconds\&. >X.SS "RecoverInterval" >X.PP >XDefault: 1 >X.PP >XHow frequently in seconds should the recovery daemon perform the consistency checks to determine if it should perform a recovery\&. >X.SS "RecoverTimeout" >X.PP >XDefault: 120 >X.PP >XThis is the default setting for timeouts for controls when sent from the recovery daemon\&. We allow longer control timeouts from the recovery daemon than from normal use since the recovery daemon often use controls that can take a lot longer than normal controls\&. >X.SS "RecoveryBanPeriod" >X.PP >XDefault: 300 >X.PP >XThe duration in seconds for which a node is banned if the node fails during recovery\&. After this time has elapsed the node will automatically get unbanned and will attempt to rejoin the cluster\&. >X.PP >XA node usually gets banned due to real problems with the node\&. Don\*(Aqt set this value too small\&. Otherwise, a problematic node will try to re\-join cluster too soon causing unnecessary recoveries\&. >X.SS "RecoveryDropAllIPs" >X.PP >XDefault: 120 >X.PP >XIf a node is stuck in recovery, or stopped, or banned, for this many seconds, then ctdb will release all public addresses on that node\&. >X.SS "RecoveryGracePeriod" >X.PP >XDefault: 120 >X.PP >XDuring recoveries, if a node has not caused recovery failures during the last grace period in seconds, any records of transgressions that the node has caused recovery failures will be forgiven\&. This resets the ban\-counter back to zero for that node\&. >X.SS "RepackLimit" >X.PP >XDefault: 10000 >X.PP >XDuring vacuuming, if the number of freelist records are more than >X\fIRepackLimit\fR, then the database is repacked to get rid of the freelist records to avoid fragmentation\&. >X.SS "RerecoveryTimeout" >X.PP >XDefault: 10 >X.PP >XOnce a recovery has completed, no additional recoveries are permitted until this timeout in seconds has expired\&. >X.SS "SeqnumInterval" >X.PP >XDefault: 1000 >X.PP >XSome databases have seqnum tracking enabled, so that samba will be able to detect asynchronously when there has been updates to the database\&. Every time a database is updated its sequence number is increased\&. >X.PP >XThis tunable is used to specify in milliseconds how frequently ctdb will send out updates to remote nodes to inform them that the sequence number is increased\&. >X.SS "StatHistoryInterval" >X.PP >XDefault: 1 >X.PP >XGranularity of the statistics collected in the statistics history\&. This is reported by \*(Aqctdb stats\*(Aq command\&. >X.SS "StickyDuration" >X.PP >XDefault: 600 >X.PP >XOnce a record has been marked STICKY, this is the duration in seconds, the record will be flagged as a STICKY record\&. >X.SS "StickyPindown" >X.PP >XDefault: 200 >X.PP >XOnce a STICKY record has been migrated onto a node, it will be pinned down on that node for this number of milliseconds\&. Any request from other nodes to migrate the record off the node will be deferred\&. >X.SS "TakeoverTimeout" >X.PP >XDefault: 9 >X.PP >XThis is the duration in seconds in which ctdb tries to complete IP failover\&. >X.SS "TickleUpdateInterval" >X.PP >XDefault: 20 >X.PP >XEvery >X\fITickleUpdateInterval\fR >Xseconds, ctdb synchronizes the client connection information across nodes\&. >X.SS "TraverseTimeout" >X.PP >XDefault: 20 >X.PP >XThis is the duration in seconds for which a database traverse is allowed to run\&. If the traverse does not complete during this interval, ctdb will abort the traverse\&. >X.SS "VacuumFastPathCount" >X.PP >XDefault: 60 >X.PP >XDuring a vacuuming run, ctdb usually processes only the records marked for deletion also called the fast path vacuuming\&. After finishing >X\fIVacuumFastPathCount\fR >Xnumber of fast path vacuuming runs, ctdb will trigger a scan of complete database for any empty records that need to be deleted\&. >X.SS "VacuumInterval" >X.PP >XDefault: 10 >X.PP >XPeriodic interval in seconds when vacuuming is triggered for volatile databases\&. >X.SS "VacuumMaxRunTime" >X.PP >XDefault: 120 >X.PP >XThe maximum time in seconds for which the vacuuming process is allowed to run\&. If vacuuming process takes longer than this value, then the vacuuming process is terminated\&. >X.SS "VerboseMemoryNames" >X.PP >XDefault: 0 >X.PP >XWhen set to non\-zero, ctdb assigns verbose names for some of the talloc allocated memory objects\&. These names are visible in the talloc memory report generated by \*(Aqctdb dumpmemory\*(Aq\&. >X.SH "FILES>" >X.RS 4 >X/usr/local/etc/ctdb/ctdb\&.tunables >X.RE >X.SH "SEE ALSO" >X.PP >X\fBctdb\fR(1), >X\fBctdbd\fR(1), >X\fBctdb.conf\fR(5), >X\fBctdb\fR(7), >X\m[blue]\fB\%http://ctdb.samba.org/\fR\m[] >X.SH "AUTHOR" >X.br >X.PP >XThis documentation was written by Ronnie Sahlberg, Amitay Isaacs, Martin Schwenke >X.SH "COPYRIGHT" >X.br >XCopyright \(co 2007 Andrew Tridgell, Ronnie Sahlberg >X.br >X.PP >XThis program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version\&. >X.PP >XThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&. See the GNU General Public License for more details\&. >X.PP >XYou should have received a copy of the GNU General Public License along with this program; if not, see >X\m[blue]\fB\%http://www.gnu.org/licenses\fR\m[]\&. >X.sp >6f97019242a289ad0f418ab7c2834202 >echo x - inofficial/samba413/files/man/locktest.1 >sed 's/^X//' >inofficial/samba413/files/man/locktest.1 << '1ea820f52e75a2b3b84a185c0aa5d792' >X'\" t >X.\" Title: locktest >X.\" Author: [see the "AUTHOR" section] >X.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> >X.\" Date: 09/23/2020 >X.\" Manual: Test Suite >X.\" Source: Samba 4.0 >X.\" Language: English >X.\" >X.TH "LOCKTEST" "1" "09/23/2020" "Samba 4\&.0" "Test Suite" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xlocktest \- Find differences in locking between two SMB servers >X.SH "SYNOPSIS" >X.HP \w'\fBlocktest\fR\ 'u >X\fBlocktest\fR {//server1/share1} {//server2/share2} [\-U\ user%pass] [\-U\ user%pass] [\-s\ seed] [\-o\ numops] [\-a] [\-O] [\-E] [\-Z] [\-R\ range] [\-B\ base] [\-M\ min] >X.SH "DESCRIPTION" >X.PP >Xlocktest >Xis a utility for detecting differences in behaviour in locking between SMB servers\&. It will run a random set of locking operations against >X\fI//server1/share1\fR >Xand then the same random set against >X\fI//server2/share2\fR >Xand display the differences in the responses it gets\&. >X.PP >XThis utility is used by the Samba team to find differences in behaviour between Samba and Windows servers\&. >X.SH "OPTIONS" >X.PP >X\-U user%pass >X.RS 4 >XSpecify the user and password to use when logging on on the shares\&. This parameter can be specified twice (once for the first server, once for the second)\&. >X.RE >X.PP >X\-s seed >X.RS 4 >XSeed the random number generator with the specified value\&. >X.RE >X.PP >X\-o numops >X.RS 4 >XSet the number of operations to perform\&. >X.RE >X.PP >X\-a >X.RS 4 >XPrint the operations that are performed\&. >X.RE >X.PP >X\-A >X.RS 4 >XBacktrack to find minimal number of operations required to make the response to a certain call differ\&. >X.RE >X.PP >X\-O >X.RS 4 >XEnable oplocks\&. >X.RE >X.PP >X\-u >X.RS 4 >XHide unlock fails\&. >X.RE >X.PP >X\-E >X.RS 4 >Xenable exact error code checking >X.RE >X.PP >X\-Z >X.RS 4 >Xenable the zero/zero lock >X.RE >X.PP >X\-R range >X.RS 4 >Xset lock range >X.RE >X.PP >X\-B base >X.RS 4 >Xset lock base >X.RE >X.PP >X\-M min >X.RS 4 >Xset min lock length >X.RE >X.PP >X\-k >X.RS 4 >XUse kerberos >X.RE >X.SH "VERSION" >X.PP >XThis man page is correct for version 4\&.0 of the Samba suite\&. >X.SH "SEE ALSO" >X.PP >XSamba >X.SH "AUTHOR" >X.PP >XThis utility is part of the >X\m[blue]\fBSamba\fR\m[]\&\s-2\u[1]\d\s+2 >Xsuite, which is developed by the global >X\m[blue]\fBSamba Team\fR\m[]\&\s-2\u[2]\d\s+2\&. >X.PP >Xlocktest was written by Andrew Tridgell\&. >X.PP >XThis manpage was written by Jelmer Vernooij\&. >X.SH "NOTES" >X.IP " 1." 4 >XSamba >X.RS 4 >X\%http://www.samba.org/ >X.RE >X.IP " 2." 4 >XSamba Team >X.RS 4 >X\%http://www.samba.org/samba/team/ >X.RE >1ea820f52e75a2b3b84a185c0aa5d792 >echo x - inofficial/samba413/files/man/onnode.1 >sed 's/^X//' >inofficial/samba413/files/man/onnode.1 << 'a7a93515d4b59d90f27ab6d24dec17ac' >X'\" t >X.\" Title: onnode >X.\" Author: >X.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> >X.\" Date: 09/23/2020 >X.\" Manual: CTDB - clustered TDB database >X.\" Source: ctdb >X.\" Language: English >X.\" >X.TH "ONNODE" "1" "09/23/2020" "ctdb" "CTDB \- clustered TDB database" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xonnode \- run commands on CTDB cluster nodes >X.SH "SYNOPSIS" >X.HP \w'\fBonnode\fR\ 'u >X\fBonnode\fR [\fIOPTION\fR...] {\fINODES\fR} {\fICOMMAND\fR} >X.SH "DESCRIPTION" >X.PP >Xonnode is a utility to run commands on a specific node of a CTDB cluster, or on all nodes\&. >X.PP >X\fINODES\fR >Xspecifies which node(s) to run a command on\&. See section >XNODES SPECIFICATION >Xfor details\&. >X.PP >X\fICOMMAND\fR >Xcan be any shell command\&. The onnode utility uses ssh or rsh to connect to the remote nodes and run the command\&. >X.SH "OPTIONS" >X.PP >X\-c >X.RS 4 >XExecute COMMAND in the current working directory on the specified nodes\&. >X.RE >X.PP >X\-f \fIFILENAME\fR >X.RS 4 >XSpecify an alternative nodes FILENAME to use instead of the default\&. See the discussion of >X/usr/local/etc/ctdb/nodes >Xin the FILES section for more details\&. >X.RE >X.PP >X\-i >X.RS 4 >XKeep standard input open, allowing data to be piped to onnode\&. Normally onnode closes stdin to avoid surprises when scripting\&. Note that this option is ignored when using >X\fB\-p\fR >Xor if >X\fBONNODE_SSH\fR >Xis set to anything other than "ssh"\&. >X.RE >X.PP >X\-n >X.RS 4 >XAllow nodes to be specified by name rather than node numbers\&. These nodes don\*(Aqt need to be listed in the nodes file\&. You can avoid the nodes file entirely by combining this with >X\-f /dev/null\&. >X.RE >X.PP >X\-p >X.RS 4 >XRun COMMAND in parallel on the specified nodes\&. The default is to run COMMAND sequentially on each node\&. >X.RE >X.PP >X\-P >X.RS 4 >XPush files to nodes\&. Names of files to push are specified rather than the usual command\&. Quoting is fragile/broken \- filenames with whitespace in them are not supported\&. >X.RE >X.PP >X\-q >X.RS 4 >XDo not print node addresses\&. Normally, onnode prints informational node addresses if more than one node is specified\&. This overrides \-v\&. >X.RE >X.PP >X\-v >X.RS 4 >XPrint node addresses even if only one node is specified\&. Normally, onnode prints informational node addresses when more than one node is specified\&. >X.RE >X.PP >X\-h, \-\-help >X.RS 4 >XShow a short usage guide\&. >X.RE >X.SH "NODES SPECIFICATION" >X.PP >XNodes can be specified via numeric node numbers (from 0 to N\-1) or mnemonics\&. Multiple nodes are specified using lists of nodes, separated by commas, and ranges of numeric node numbers, separated by dashes\&. If nodes are specified multiple times then the command will be executed multiple times on those nodes\&. The order of nodes is significant\&. >X.PP >XThe following mnemonics are available: >X.PP >Xall >X.RS 4 >XAll nodes\&. >X.RE >X.PP >Xany >X.RS 4 >XA node where ctdbd is running\&. This semi\-random but there is a bias towards choosing a low numbered node\&. >X.RE >X.PP >Xok | healthy >X.RS 4 >XAll nodes that are not disconnected, banned, disabled or unhealthy\&. >X.RE >X.PP >Xcon | connected >X.RS 4 >XAll nodes that are not disconnected\&. >X.RE >X.SH "EXAMPLES" >X.PP >XThe following command would show the process ID of ctdbd on all nodes >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X onnode all ctdb getpid >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XThe following command would show the last 5 lines of log on each node, preceded by the node\*(Aqs hostname >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X onnode all "hostname; tail \-5 /var/log/log\&.ctdb" >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XThe following command would restart the ctdb service on all nodes, in parallel\&. >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X onnode \-p all service ctdb restart >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XThe following command would run \&./foo in the current working directory, in parallel, on nodes 0, 2, 3 and 4\&. >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X onnode \-c \-p 0,2\-4 \&./foo >X >X.fi >X.if n \{\ >X.RE >X.\} >X.SH "FILES" >X.PP >X/usr/local/etc/ctdb/nodes >X.RS 4 >XDefault file containing a list of each node\*(Aqs IP address or hostname\&. >X.sp >XAs above, a file specified via the >X\fB\-f\fR >Xis given precedence\&. If a relative path is specified and no corresponding file exists relative to the current directory then the file is also searched for in the CTDB configuration directory\&. >X.sp >XOtherwise the default is >X/usr/local/etc/ctdb/nodes\&. >X.RE >X.PP >X/usr/local/etc/ctdb/onnode\&.conf >X.RS 4 >XIf this file exists it is sourced by onnode\&. The main purpose is to allow the administrator to set >X\fBONNODE_SSH\fR >Xto something other than "ssh"\&. In this case the \-t option is ignored\&. >X.RE >X.SH "SEE ALSO" >X.PP >X\fBctdb\fR(7), >X\m[blue]\fB\%http://ctdb.samba.org/\fR\m[] >X.SH "AUTHOR" >X.br >X.PP >XThis documentation was written by Andrew Tridgell, Martin Schwenke >X.SH "COPYRIGHT" >X.br >XCopyright \(co 2007 Andrew Tridgell, Ronnie Sahlberg >X.br >XCopyright \(co 2008 Martin Schwenke >X.br >X.PP >XThis program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version\&. >X.PP >XThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&. See the GNU General Public License for more details\&. >X.PP >XYou should have received a copy of the GNU General Public License along with this program; if not, see >X\m[blue]\fB\%http://www.gnu.org/licenses\fR\m[]\&. >X.sp >a7a93515d4b59d90f27ab6d24dec17ac >echo x - inofficial/samba413/files/man/ctdbd.1 >sed 's/^X//' >inofficial/samba413/files/man/ctdbd.1 << '90e626e885df99d31b31b2c6e53394cc' >X'\" t >X.\" Title: ctdbd >X.\" Author: >X.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> >X.\" Date: 09/23/2020 >X.\" Manual: CTDB - clustered TDB database >X.\" Source: ctdb >X.\" Language: English >X.\" >X.TH "CTDBD" "1" "09/23/2020" "ctdb" "CTDB \- clustered TDB database" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xctdbd \- The CTDB cluster daemon >X.SH "SYNOPSIS" >X.HP \w'\fBctdbd\fR\ 'u >X\fBctdbd\fR [\fIOPTION\fR...] >X.SH "DESCRIPTION" >X.PP >Xctdbd is the main CTDB daemon\&. >X.PP >XNote that ctdbd is not usually invoked directly\&. It is invoked via >X\fBctdbd_wrapper\fR(1) >Xor via the initscript\&. >X.PP >XSee >X\fBctdb\fR(7) >Xfor an overview of CTDB\&. >X.SH "GENERAL OPTIONS" >X.PP >X\-i, \-\-interactive >X.RS 4 >XEnable interactive mode\&. This will make ctdbd run in the foreground and not detach from the terminal\&. In this mode ctdbd will log to stderr\&. >X.sp >XBy default ctdbd will detach itself and run in the background as a daemon, logging to the configured destination\&. >X.RE >X.PP >X\-?, \-\-help >X.RS 4 >XDisplay a summary of options\&. >X.RE >X.SH "SEE ALSO" >X.PP >X\fBctdb\fR(1), >X\fBctdbd_wrapper\fR(1), >X\fBonnode\fR(1), >X\fBctdb.conf\fR(5), >X\fBctdb\fR(7), >X\fBctdb-tunables\fR(7), >X\m[blue]\fB\%http://ctdb.samba.org/\fR\m[] >X.SH "AUTHOR" >X.br >X.PP >XThis documentation was written by Ronnie Sahlberg, Amitay Isaacs, Martin Schwenke >X.SH "COPYRIGHT" >X.br >XCopyright \(co 2007 Andrew Tridgell, Ronnie Sahlberg >X.br >X.PP >XThis program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version\&. >X.PP >XThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&. See the GNU General Public License for more details\&. >X.PP >XYou should have received a copy of the GNU General Public License along with this program; if not, see >X\m[blue]\fB\%http://www.gnu.org/licenses\fR\m[]\&. >X.sp >90e626e885df99d31b31b2c6e53394cc >echo x - inofficial/samba413/files/man/tdbrestore.8 >sed 's/^X//' >inofficial/samba413/files/man/tdbrestore.8 << 'b97c51e83846a0b5dc65452c44156162' >X'\" t >X.\" Title: tdbrestore >X.\" Author: [see the "AUTHOR" section] >X.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> >X.\" Date: 2015-04-25 >X.\" Manual: System Administration tools >X.\" Source: Samba 3.6 >X.\" Language: English >X.\" >X.TH "TDBRESTORE" "8" "2015\-04\-25" "Samba 3\&.6" "System Administration tools" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xtdbrestore \- tool for creating a TDB file out of a tdbdump output >X.SH "SYNOPSIS" >X.HP \w'\fBtdbrestore\fR\ 'u >X\fBtdbrestore\fR {tdbfilename} >X.SH "DESCRIPTION" >X.PP >XThis tool is part of the >X\fBsamba\fR(1) >Xsuite\&. >X.PP >X\fBtdbrestore\fR >Xis a very simple utility that \*(Aqrestores\*(Aq the contents of dump file into TDB (Trivial DataBase) file\&. The dump file is obtained from the tdbdump command\&. >X.PP >XThis tool wait on the standard input for the content of the dump and will write the tdb in the tdbfilename parameter\&. >X.PP >XThis tool can be used for unpacking the content of tdb as backup mean\&. >X.SH "VERSION" >X.PP >XThis man page is correct for version 3 of the Samba suite\&. >X.SH "AUTHOR" >X.PP >XThe original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&. This tool was initially written by Volker Lendecke based on an idea by Simon McVittie\&. >X.PP >XThe tdbrestore man page was written by Matthieu Patou\&. >b97c51e83846a0b5dc65452c44156162 >echo x - inofficial/samba413/files/man/ctdb-script.options.5 >sed 's/^X//' >inofficial/samba413/files/man/ctdb-script.options.5 << '9299c284c47f93b7b8f9027521e75554' >X'\" t >X.\" Title: ctdb-script.options >X.\" Author: >X.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> >X.\" Date: 09/23/2020 >X.\" Manual: CTDB - clustered TDB database >X.\" Source: ctdb >X.\" Language: English >X.\" >X.TH "CTDB\-SCRIPT\&.OPTIO" "5" "09/23/2020" "ctdb" "CTDB \- clustered TDB database" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xctdb-script.options \- CTDB scripts configuration files >X.SH "DESCRIPTION" >X.PP >XEach CTDB script has 2 possible locations for its configuration options: >X.PP >X/usr/local/etc/ctdb/script\&.options >X.RS 4 >XThis is a catch\-all global file for general purpose scripts and for options that are used in multiple event scripts\&. >X.RE >X.PP >X\fISCRIPT\fR\&.options >X.RS 4 >XThat is, options for >X\fISCRIPT\fR >Xare placed in a file alongside the script, with a "\&.script" suffix added\&. This style is usually recommended for event scripts\&. >X.sp >XOptions in this script\-specific file override those in the global file\&. >X.RE >X.PP >XThese files should include simple shell\-style variable assignments and shell\-style comments\&. >X.SH "NETWORK CONFIGURATION" >X.SS "10\&.interface" >X.PP >XThis event script handles monitoring of interfaces using by public IP addresses\&. >X.PP >XCTDB_PARTIALLY_ONLINE_INTERFACES=yes|no >X.RS 4 >XWhether one or more offline interfaces should cause a monitor event to fail if there are other interfaces that are up\&. If this is "yes" and a node has some interfaces that are down then >X\fBctdb status\fR >Xwill display the node as "PARTIALLYONLINE"\&. >X.sp >XNote that CTDB_PARTIALLY_ONLINE_INTERFACES=yes is not generally compatible with NAT gateway or LVS\&. NAT gateway relies on the interface configured by CTDB_NATGW_PUBLIC_IFACE to be up and LVS replies on CTDB_LVS_PUBLIC_IFACE to be up\&. CTDB does not check if these options are set in an incompatible way so care is needed to understand the interaction\&. >X.sp >XDefault is "no"\&. >X.RE >X.SS "11\&.natgw" >X.PP >XProvides CTDB\*(Aqs NAT gateway functionality\&. >X.PP >XNAT gateway is used to configure fallback routing for nodes when they do not host any public IP addresses\&. For example, it allows unhealthy nodes to reliably communicate with external infrastructure\&. One node in a NAT gateway group will be designated as the NAT gateway master node and other (slave) nodes will be configured with fallback routes via the NAT gateway master node\&. For more information, see the >XNAT GATEWAY >Xsection in >X\fBctdb\fR(7)\&. >X.PP >XCTDB_NATGW_DEFAULT_GATEWAY=\fIIPADDR\fR >X.RS 4 >XIPADDR is an alternate network gateway to use on the NAT gateway master node\&. If set, a fallback default route is added via this network gateway\&. >X.sp >XNo default\&. Setting this variable is optional \- if not set that no route is created on the NAT gateway master node\&. >X.RE >X.PP >XCTDB_NATGW_NODES=\fIFILENAME\fR >X.RS 4 >XFILENAME contains the list of nodes that belong to the same NAT gateway group\&. >X.sp >XFile format: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X\fIIPADDR\fR [slave\-only] >X >X.fi >X.if n \{\ >X.RE >X.\} >X.sp >XIPADDR is the private IP address of each node in the NAT gateway group\&. >X.sp >XIf "slave\-only" is specified then the corresponding node can not be the NAT gateway master node\&. In this case >X\fICTDB_NATGW_PUBLIC_IFACE\fR >Xand >X\fICTDB_NATGW_PUBLIC_IP\fR >Xare optional and unused\&. >X.sp >XNo default, usually >X/usr/local/etc/ctdb/natgw_nodes >Xwhen enabled\&. >X.RE >X.PP >XCTDB_NATGW_PRIVATE_NETWORK=\fIIPADDR/MASK\fR >X.RS 4 >XIPADDR/MASK is the private sub\-network that is internally routed via the NAT gateway master node\&. This is usually the private network that is used for node addresses\&. >X.sp >XNo default\&. >X.RE >X.PP >XCTDB_NATGW_PUBLIC_IFACE=\fIIFACE\fR >X.RS 4 >XIFACE is the network interface on which the CTDB_NATGW_PUBLIC_IP will be configured\&. >X.sp >XNo default\&. >X.RE >X.PP >XCTDB_NATGW_PUBLIC_IP=\fIIPADDR/MASK\fR >X.RS 4 >XIPADDR/MASK indicates the IP address that is used for outgoing traffic (originating from CTDB_NATGW_PRIVATE_NETWORK) on the NAT gateway master node\&. This >X\fImust not\fR >Xbe a configured public IP address\&. >X.sp >XNo default\&. >X.RE >X.PP >XCTDB_NATGW_STATIC_ROUTES=\fIIPADDR/MASK[@GATEWAY]\fR \&.\&.\&. >X.RS 4 >XEach IPADDR/MASK identifies a network or host to which NATGW should create a fallback route, instead of creating a single default route\&. This can be used when there is already a default route, via an interface that can not reach required infrastructure, that overrides the NAT gateway default route\&. >X.sp >XIf GATEWAY is specified then the corresponding route on the NATGW master node will be via GATEWAY\&. Such routes are created even if >X\fICTDB_NATGW_DEFAULT_GATEWAY\fR >Xis not specified\&. If GATEWAY is not specified for some networks then routes are only created on the NATGW master node for those networks if >X\fICTDB_NATGW_DEFAULT_GATEWAY\fR >Xis specified\&. >X.sp >XThis should be used with care to avoid causing traffic to unnecessarily double\-hop through the NAT gateway master, even when a node is hosting public IP addresses\&. Each specified network or host should probably have a corresponding automatically created link route or static route to avoid this\&. >X.sp >XNo default\&. >X.RE >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBExample\fR >X.RS 4 >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >XCTDB_NATGW_NODES=/usr/local/etc/ctdb/natgw_nodes >XCTDB_NATGW_PRIVATE_NETWORK=192\&.168\&.1\&.0/24 >XCTDB_NATGW_DEFAULT_GATEWAY=10\&.0\&.0\&.1 >XCTDB_NATGW_PUBLIC_IP=10\&.0\&.0\&.227/24 >XCTDB_NATGW_PUBLIC_IFACE=eth0 >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XA variation that ensures that infrastructure (ADS, DNS, \&.\&.\&.) directly attached to the public network (10\&.0\&.0\&.0/24) is always reachable would look like this: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >XCTDB_NATGW_NODES=/usr/local/etc/ctdb/natgw_nodes >XCTDB_NATGW_PRIVATE_NETWORK=192\&.168\&.1\&.0/24 >XCTDB_NATGW_PUBLIC_IP=10\&.0\&.0\&.227/24 >XCTDB_NATGW_PUBLIC_IFACE=eth0 >XCTDB_NATGW_STATIC_ROUTES=10\&.0\&.0\&.0/24 >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XNote that >X\fICTDB_NATGW_DEFAULT_GATEWAY\fR >Xis not specified\&. >X.RE >X.SS "13\&.per_ip_routing" >X.PP >XProvides CTDB\*(Aqs policy routing functionality\&. >X.PP >XA node running CTDB may be a component of a complex network topology\&. In particular, public addresses may be spread across several different networks (or VLANs) and it may not be possible to route packets from these public addresses via the system\*(Aqs default route\&. Therefore, CTDB has support for policy routing via the >X13\&.per_ip_routing >Xeventscript\&. This allows routing to be specified for packets sourced from each public address\&. The routes are added and removed as CTDB moves public addresses between nodes\&. >X.PP >XFor more information, see the >XPOLICY ROUTING >Xsection in >X\fBctdb\fR(7)\&. >X.PP >XCTDB_PER_IP_ROUTING_CONF=\fIFILENAME\fR >X.RS 4 >XFILENAME contains elements for constructing the desired routes for each source address\&. >X.sp >XThe special FILENAME value >X\fB__auto_link_local__\fR >Xindicates that no configuration file is provided and that CTDB should generate reasonable link\-local routes for each public IP address\&. >X.sp >XFile format: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X \fIIPADDR\fR \fIDEST\-IPADDR/MASK\fR [\fIGATEWAY\-IPADDR\fR] >X >X.fi >X.if n \{\ >X.RE >X.\} >X.sp >XNo default, usually >X/usr/local/etc/ctdb/policy_routing >Xwhen enabled\&. >X.RE >X.PP >XCTDB_PER_IP_ROUTING_RULE_PREF=\fINUM\fR >X.RS 4 >XNUM sets the priority (or preference) for the routing rules that are added by CTDB\&. >X.sp >XThis should be (strictly) greater than 0 and (strictly) less than 32766\&. A priority of 100 is recommended, unless this conflicts with a priority already in use on the system\&. See >X\fBip\fR(8), for more details\&. >X.RE >X.PP >XCTDB_PER_IP_ROUTING_TABLE_ID_LOW=\fILOW\-NUM\fR, CTDB_PER_IP_ROUTING_TABLE_ID_HIGH=\fIHIGH\-NUM\fR >X.RS 4 >XCTDB determines a unique routing table number to use for the routing related to each public address\&. LOW\-NUM and HIGH\-NUM indicate the minimum and maximum routing table numbers that are used\&. >X.sp >X\fBip\fR(8) >Xuses some reserved routing table numbers below 255\&. Therefore, CTDB_PER_IP_ROUTING_TABLE_ID_LOW should be (strictly) greater than 255\&. >X.sp >XCTDB uses the standard file >X/etc/iproute2/rt_tables >Xto maintain a mapping between the routing table numbers and labels\&. The label for a public address >X\fIADDR\fR >Xwill look like ctdb\&.\fIaddr\fR\&. This means that the associated rules and routes are easy to read (and manipulate)\&. >X.sp >XNo default, usually 1000 and 9000\&. >X.RE >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBExample\fR >X.RS 4 >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >XCTDB_PER_IP_ROUTING_CONF=/usr/local/etc/ctdb/policy_routing >XCTDB_PER_IP_ROUTING_RULE_PREF=100 >XCTDB_PER_IP_ROUTING_TABLE_ID_LOW=1000 >XCTDB_PER_IP_ROUTING_TABLE_ID_HIGH=9000 >X >X.fi >X.if n \{\ >X.RE >X.\} >X.RE >X.SS "91\&.lvs" >X.PP >XProvides CTDB\*(Aqs LVS functionality\&. >X.PP >XFor a general description see the >XLVS >Xsection in >X\fBctdb\fR(7)\&. >X.PP >XCTDB_LVS_NODES=\fIFILENAME\fR >X.RS 4 >XFILENAME contains the list of nodes that belong to the same LVS group\&. >X.sp >XFile format: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X\fIIPADDR\fR [slave\-only] >X >X.fi >X.if n \{\ >X.RE >X.\} >X.sp >XIPADDR is the private IP address of each node in the LVS group\&. >X.sp >XIf "slave\-only" is specified then the corresponding node can not be the LVS master node\&. In this case >X\fICTDB_LVS_PUBLIC_IFACE\fR >Xand >X\fICTDB_LVS_PUBLIC_IP\fR >Xare optional and unused\&. >X.sp >XNo default, usually >X/usr/local/etc/ctdb/lvs_nodes >Xwhen enabled\&. >X.RE >X.PP >XCTDB_LVS_PUBLIC_IFACE=\fIINTERFACE\fR >X.RS 4 >XINTERFACE is the network interface that clients will use to connection to >X\fICTDB_LVS_PUBLIC_IP\fR\&. This is optional for slave\-only nodes\&. No default\&. >X.RE >X.PP >XCTDB_LVS_PUBLIC_IP=\fIIPADDR\fR >X.RS 4 >XCTDB_LVS_PUBLIC_IP is the LVS public address\&. No default\&. >X.RE >X.SH "SERVICE CONFIGURATION" >X.PP >XCTDB can be configured to manage and/or monitor various NAS (and other) services via its eventscripts\&. >X.PP >XIn the simplest case CTDB will manage a service\&. This means the service will be started and stopped along with CTDB, CTDB will monitor the service and CTDB will do any required reconfiguration of the service when public IP addresses are failed over\&. >X.SS "20\&.multipathd" >X.PP >XProvides CTDB\*(Aqs Linux multipathd service management\&. >X.PP >XIt can monitor multipath devices to ensure that active paths are available\&. >X.PP >XCTDB_MONITOR_MPDEVICES=\fIMP\-DEVICE\-LIST\fR >X.RS 4 >XMP\-DEVICE\-LIST is a list of multipath devices for CTDB to monitor? >X.sp >XNo default\&. >X.RE >X.SS "31\&.clamd" >X.PP >XThis event script provide CTDB\*(Aqs ClamAV anti\-virus service management\&. >X.PP >XThis eventscript is not enabled by default\&. Use >X\fBctdb enablescript\fR >Xto enable it\&. >X.PP >XCTDB_CLAMD_SOCKET=\fIFILENAME\fR >X.RS 4 >XFILENAME is the socket to monitor ClamAV\&. >X.sp >XNo default\&. >X.RE >X.SS "49\&.winbind" >X.PP >XProvides CTDB\*(Aqs Samba winbind service management\&. >X.PP >XCTDB_SERVICE_WINBIND=\fISERVICE\fR >X.RS 4 >XDistribution specific SERVICE for managing winbindd\&. >X.sp >XDefault is "winbind"\&. >X.RE >X.SS "50\&.samba" >X.PP >XProvides the core of CTDB\*(Aqs Samba file service management\&. >X.PP >XCTDB_SAMBA_CHECK_PORTS=\fIPORT\-LIST\fR >X.RS 4 >XWhen monitoring Samba, check TCP ports in space\-separated PORT\-LIST\&. >X.sp >XDefault is to monitor ports that Samba is configured to listen on\&. >X.RE >X.PP >XCTDB_SAMBA_SKIP_SHARE_CHECK=yes|no >X.RS 4 >XAs part of monitoring, should CTDB skip the check for the existence of each directory configured as share in Samba\&. This may be desirable if there is a large number of shares\&. >X.sp >XDefault is no\&. >X.RE >X.PP >XCTDB_SERVICE_NMB=\fISERVICE\fR >X.RS 4 >XDistribution specific SERVICE for managing nmbd\&. >X.sp >XDefault is distribution\-dependant\&. >X.RE >X.PP >XCTDB_SERVICE_SMB=\fISERVICE\fR >X.RS 4 >XDistribution specific SERVICE for managing smbd\&. >X.sp >XDefault is distribution\-dependant\&. >X.RE >X.SS "60\&.nfs" >X.PP >XThis event script (along with 06\&.nfs) provides CTDB\*(Aqs NFS service management\&. >X.PP >XThis includes parameters for the kernel NFS server\&. Alternative NFS subsystems (such as >X\m[blue]\fBNFS\-Ganesha\fR\m[]\&\s-2\u[1]\d\s+2) can be integrated using >X\fICTDB_NFS_CALLOUT\fR\&. >X.PP >XCTDB_NFS_CALLOUT=\fICOMMAND\fR >X.RS 4 >XCOMMAND specifies the path to a callout to handle interactions with the configured NFS system, including startup, shutdown, monitoring\&. >X.sp >XDefault is the included >X\fBnfs\-linux\-kernel\-callout\fR\&. >X.RE >X.PP >XCTDB_NFS_CHECKS_DIR=\fIDIRECTORY\fR >X.RS 4 >XSpecifies the path to a DIRECTORY containing files that describe how to monitor the responsiveness of NFS RPC services\&. See the README file for this directory for an explanation of the contents of these "check" files\&. >X.sp >XCTDB_NFS_CHECKS_DIR can be used to point to different sets of checks for different NFS servers\&. >X.sp >XOne way of using this is to have it point to, say, >X/usr/local/etc/ctdb/nfs\-checks\-enabled\&.d >Xand populate it with symbolic links to the desired check files\&. This avoids duplication and is upgrade\-safe\&. >X.sp >XDefault is >X/usr/local/etc/ctdb/nfs\-checks\&.d, which contains NFS RPC checks suitable for Linux kernel NFS\&. >X.RE >X.PP >XCTDB_NFS_SKIP_SHARE_CHECK=yes|no >X.RS 4 >XAs part of monitoring, should CTDB skip the check for the existence of each directory exported via NFS\&. This may be desirable if there is a large number of exports\&. >X.sp >XDefault is no\&. >X.RE >X.PP >XCTDB_RPCINFO_LOCALHOST=\fIIPADDR\fR|\fIHOSTNAME\fR >X.RS 4 >XIPADDR or HOSTNAME indicates the address that >X\fBrpcinfo\fR >Xshould connect to when doing >X\fBrpcinfo\fR >Xcheck on IPv4 RPC service during monitoring\&. Optimally this would be "localhost"\&. However, this can add some performance overheads\&. >X.sp >XDefault is "127\&.0\&.0\&.1"\&. >X.RE >X.PP >XCTDB_RPCINFO_LOCALHOST6=\fIIPADDR\fR|\fIHOSTNAME\fR >X.RS 4 >XIPADDR or HOSTNAME indicates the address that >X\fBrpcinfo\fR >Xshould connect to when doing >X\fBrpcinfo\fR >Xcheck on IPv6 RPC service during monitoring\&. Optimally this would be "localhost6" (or similar)\&. However, this can add some performance overheads\&. >X.sp >XDefault is "::1"\&. >X.RE >X.PP >XCTDB_NFS_STATE_FS_TYPE=\fITYPE\fR >X.RS 4 >XThe type of filesystem used for a clustered NFS\*(Aq shared state\&. No default\&. >X.RE >X.PP >XCTDB_NFS_STATE_MNT=\fIDIR\fR >X.RS 4 >XThe directory where a clustered NFS\*(Aq shared state will be located\&. No default\&. >X.RE >X.SS "70\&.iscsi" >X.PP >XProvides CTDB\*(Aqs Linux iSCSI tgtd service management\&. >X.PP >XCTDB_START_ISCSI_SCRIPTS=\fIDIRECTORY\fR >X.RS 4 >XDIRECTORY on shared storage containing scripts to start tgtd for each public IP address\&. >X.sp >XNo default\&. >X.RE >X.SH "DATABASE SETUP" >X.PP >XCTDB checks the consistency of databases during startup\&. >X.SS "00\&.ctdb" >X.PP >XCTDB_MAX_CORRUPT_DB_BACKUPS=\fINUM\fR >X.RS 4 >XNUM is the maximum number of volatile TDB database backups to be kept (for each database) when a corrupt database is found during startup\&. Volatile TDBs are zeroed during startup so backups are needed to debug any corruption that occurs before a restart\&. >X.sp >XDefault is 10\&. >X.RE >X.SH "SYSTEM RESOURCE MONITORING" >X.SS "05\&.system" >X.PP >XProvides CTDB\*(Aqs filesystem and memory usage monitoring\&. >X.PP >XCTDB can experience seemingly random (performance and other) issues if system resources become too constrained\&. Options in this section can be enabled to allow certain system resources to be checked\&. They allows warnings to be logged and nodes to be marked unhealthy when system resource usage reaches the configured thresholds\&. >X.PP >XSome checks are enabled by default\&. It is recommended that these checks remain enabled or are augmented by extra checks\&. There is no supported way of completely disabling the checks\&. >X.PP >XCTDB_MONITOR_FILESYSTEM_USAGE=\fIFS\-LIMIT\-LIST\fR >X.RS 4 >XFS\-LIMIT\-LIST is a space\-separated list of >X\fIFILESYSTEM\fR:\fIWARN_LIMIT\fR[:\fIUNHEALTHY_LIMIT\fR] >Xtriples indicating that warnings should be logged if the space used on FILESYSTEM reaches WARN_LIMIT%\&. If usage reaches UNHEALTHY_LIMIT then the node should be flagged unhealthy\&. Either WARN_LIMIT or UNHEALTHY_LIMIT may be left blank, meaning that check will be omitted\&. >X.sp >XDefault is to warn for each filesystem containing a database directory (volatile\ \&database\ \&directory, >Xpersistent\ \&database\ \&directory, >Xstate\ \&database\ \&directory) with a threshold of 90%\&. >X.RE >X.PP >XCTDB_MONITOR_MEMORY_USAGE=\fIMEM\-LIMITS\fR >X.RS 4 >XMEM\-LIMITS takes the form >X\fIWARN_LIMIT\fR[:\fIUNHEALTHY_LIMIT\fR] >Xindicating that warnings should be logged if memory usage reaches WARN_LIMIT%\&. If usage reaches UNHEALTHY_LIMIT then the node should be flagged unhealthy\&. Either WARN_LIMIT or UNHEALTHY_LIMIT may be left blank, meaning that check will be omitted\&. >X.sp >XDefault is 80, so warnings will be logged when memory usage reaches 80%\&. >X.RE >X.SH "EVENT SCRIPT DEBUGGING" >X.SS "debug\-hung\-script\&.sh" >X.PP >XCTDB_DEBUG_HUNG_SCRIPT_STACKPAT=\fIREGEXP\fR >X.RS 4 >XREGEXP specifies interesting processes for which stack traces should be logged when debugging hung eventscripts and those processes are matched in pstree output\&. REGEXP is an extended regexp so choices are separated by pipes (\*(Aq|\*(Aq)\&. However, REGEXP should not contain parentheses\&. See also the >X\fBctdb.conf\fR(5) >X[event] "debug\ \&script" option\&. >X.sp >XDefault is "exportfs|rpcinfo"\&. >X.RE >X.SH "FILES" >X.RS 4 >X/usr/local/etc/ctdb/script\&.options >X.RE >X.SH "SEE ALSO" >X.PP >X\fBctdbd\fR(1), >X\fBctdb\fR(7), >X\m[blue]\fB\%http://ctdb.samba.org/\fR\m[] >X.SH "AUTHOR" >X.br >X.PP >XThis documentation was written by Amitay Isaacs, Martin Schwenke >X.SH "COPYRIGHT" >X.br >XCopyright \(co 2007 Andrew Tridgell, Ronnie Sahlberg >X.br >X.PP >XThis program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version\&. >X.PP >XThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&. See the GNU General Public License for more details\&. >X.PP >XYou should have received a copy of the GNU General Public License along with this program; if not, see >X\m[blue]\fB\%http://www.gnu.org/licenses\fR\m[]\&. >X.sp >X.SH "NOTES" >X.IP " 1." 4 >XNFS-Ganesha >X.RS 4 >X\%https://github.com/nfs-ganesha/nfs-ganesha/wiki >X.RE >9299c284c47f93b7b8f9027521e75554 >echo x - inofficial/samba413/files/man/ctdbd_wrapper.1 >sed 's/^X//' >inofficial/samba413/files/man/ctdbd_wrapper.1 << '0d503ee46dceec5684f36da307f31fed' >X'\" t >X.\" Title: ctdbd_wrapper >X.\" Author: >X.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> >X.\" Date: 09/23/2020 >X.\" Manual: CTDB - clustered TDB database >X.\" Source: ctdb >X.\" Language: English >X.\" >X.TH "CTDBD_WRAPPER" "1" "09/23/2020" "ctdb" "CTDB \- clustered TDB database" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xctdbd_wrapper \- Wrapper for ctdbd >X.SH "SYNOPSIS" >X.HP \w'\fBctdbd_wrapper\fR\ 'u >X\fBctdbd_wrapper\fR {start | stop} >X.SH "DESCRIPTION" >X.PP >Xctdbd_wrapper is used to start or stop the main CTDB daemon\&. >X.PP >XSee >X\fBctdb\fR(7) >Xfor an overview of CTDB\&. >X.SH "SEE ALSO" >X.PP >X\fBctdbd\fR(1), >X\fBctdb.sysconfig\fR(5), >X\fBctdb\fR(7), >X\m[blue]\fB\%http://ctdb.samba.org/\fR\m[] >X.SH "AUTHOR" >X.br >X.PP >XThis documentation was written by Amitay Isaacs, Martin Schwenke >X.SH "COPYRIGHT" >X.br >XCopyright \(co 2007 Andrew Tridgell, Ronnie Sahlberg >X.br >X.PP >XThis program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version\&. >X.PP >XThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&. See the GNU General Public License for more details\&. >X.PP >XYou should have received a copy of the GNU General Public License along with this program; if not, see >X\m[blue]\fB\%http://www.gnu.org/licenses\fR\m[]\&. >X.sp >0d503ee46dceec5684f36da307f31fed >echo x - inofficial/samba413/files/man/mdfind.1 >sed 's/^X//' >inofficial/samba413/files/man/mdfind.1 << '40234bf8d7211f1004962c33eccee87c' >X'\" t >X.\" Title: mdfind >X.\" Author: [see the "AUTHOR" section] >X.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> >X.\" Date: 09/23/2020 >X.\" Manual: User Commands >X.\" Source: Samba 4.12.7 >X.\" Language: English >X.\" >X.TH "MDFIND" "1" "09/23/2020" "Samba 4\&.12\&.7" "User Commands" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xmdfind \- Run Spotlight searches against an SMB server >X.SH "SYNOPSIS" >X.HP \w'\ 'u >Xmvxattr {server} {sharename} {query} [\-p,\ \-\-path] [\-L,\ \-\-live] >X.SH "DESCRIPTION" >X.PP >XThis tool is part of the >X\fBsamba\fR(1) >Xsuite\&. >X.PP >Xmdfind is a simple utility to run Spotlight searches against an SMB server that runs the Spotlight >X\fImdssvc\fR >XRPC service\&. >X.SH "OPTIONS" >X.PP >Xserver >X.RS 4 >XThe SMB server name or IP address to connect to\&. >X.RE >X.PP >Xsharename >X.RS 4 >XThe name of a share on the server\&. >X.RE >X.PP >Xquery >X.RS 4 >XThe query expression syntax is a simplified form of filename globbing familiar to shell users\&. Queries have the following format: >X.sp >Xattribute=="value" >X.sp >XFor queries against a Samba server with Spotlight enabled using the Elasticsearch backend, the list of supported metadata attributes is given by the JSON attribute mapping file, typically installed at >X/usr/share/samba/mdssvc/elasticsearch_mappings\&.json >X.RE >X.PP >X\-p PATH, \-\-path=PATH >X.RS 4 >XServer side path to search, defaults to >X\fI"/"\fR >X.RE >X.PP >X\-L, \-\-live >X.RS 4 >XQuery remains running\&. >X.RE >X.SH "EXAMPLES" >X.PP >XSearch all indexed metadata attributes, exact match: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X \*(Aq*=="Samba"\*(Aq >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XSearch all indexed metadata attributes, prefix match: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X \*(Aq*=="Samba*"\*(Aq >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XSearch by filename: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X \*(AqkMDItemFSName=="Samba*"\*(Aq >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XSearch by date: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X \*(AqkMDItemFSContentChangeDate<$time\&.iso(2018\-10\-01T10:00:00Z)\*(Aq >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XSearch files\*(Aqs content: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X \*(AqkMDItemTextContent=="Samba*"\*(Aq >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XExpressions: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X kMDItemFSName=="Samba*"||kMDItemTextContent=="Tango*"\*(Aq >X >X.fi >X.if n \{\ >X.RE >X.\} >X.SH "SEE ALSO" >X.PP >XFile Metadata Search Programming Guide >Xhttps://developer\&.apple\&.com/library/archive/documentation/Carbon/Conceptual/SpotlightQuery/Concepts/Introduction\&.html >X.SH "VERSION" >X.PP >XThis man page is part of version 4\&.12\&.7 of the Samba suite\&. >X.SH "AUTHOR" >X.PP >XThe original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&. >X.PP >XThe mdfind manpage was written by Ralph Boehme\&. >40234bf8d7211f1004962c33eccee87c >echo x - inofficial/samba413/files/man/vfs_freebsd.8 >sed 's/^X//' >inofficial/samba413/files/man/vfs_freebsd.8 << '29aadfa2d02bc40b20161e553ffaf229' >X'\" t >X.\" Title: vfs_freebsd >X.\" Author: [see the "AUTHOR" section] >X.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> >X.\" Date: 06/24/2019 >X.\" Manual: System Administration tools >X.\" Source: Samba 4.10.5 >X.\" Language: English >X.\" >X.TH "VFS_FREEBSD" "8" "06/24/2019" "Samba 4\&.10\&.5" "System Administration tools" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xvfs_freebsd \- FreeBSD\-specific VFS functions >X.SH "SYNOPSIS" >X.HP \w'\ 'u >Xvfs objects = freebsd >X.SH "DESCRIPTION" >X.PP >XThis VFS module is part of the >X\fBsamba\fR(7) >Xsuite\&. >X.PP >XThe >Xvfs_freebsd >Xmodule implements some of the FreeBSD\-specific VFS functions\&. >X.PP >XThis module is stackable\&. >X.SH "OPTIONS" >X.PP >Xfreebsd:extattr mode=[legacy|compat|secure] >X.RS 4 >XThis parameter defines how the emulation of the Linux attr(5) extended attributes is performed through the FreeBSD native extattr(9) system calls\&. >X.sp >XCurrently the >X\fIsecurity\fR, >X\fIsystem\fR, >X\fItrusted\fR >Xand >X\fIuser\fR >Xextended attribute(xattr) classes are defined in Linux\&. Contrary FreeBSD has only >X\fIUSER\fR >Xand >X\fISYSTEM\fR >Xextended attribute(extattr) namespaces, so mapping of one set into another isn\*(Aqt straightforward and can be done in different ways\&. >X.sp >XHistorically the Samba(7) built\-in xattr mapping implementation simply converted >X\fIsystem\fR >Xand >X\fIuser\fR >Xxattr into corresponding >X\fISYSTEM\fR >Xand >X\fIUSER\fR >Xextattr namespaces, dropping the class prefix name with the separating dot and using attribute name only within the mapped namespace\&. It also rejected any other xattr classes, like >X\fIsecurity\fR >Xand >X\fItrusted\fR >Xas invalid\&. Such behavior in particular broke AD provisioning on UFS2 file systems as essential >X\fIsecurity\&.NTACL\fR >Xxattr was rejected as invalid\&. >X.sp >XThis module tries to address this problem and provide secure, where it\*(Aqs possible, way to map Linux xattr into FreeBSD\*(Aqs extattr\&. >X.sp >XWhen >X\fImode\fR >Xis set to the >X\fIlegacy (default)\fR >Xthen modified version of built\-in mapping is used, where >X\fIsystem\fR >Xxattr is mapped into SYSTEM namespace, while >X\fIsecure\fR, >X\fItrusted\fR >Xand >X\fIuser\fR >Xxattr are all mapped into the USER namespace, dropping class prefixes and mix them all together\&. This is the way how Samba FreeBSD ports were patched up to the 4\&.9 version and that created multiple potential security issues\&. This mode is aimed for the compatibility with the legacy installations only and should be avoided in new setups\&. >X.sp >XThe >X\fIcompat\fR >Xmode is mostly designed for the jailed environments, where it\*(Aqs not possible to write extattrs into the secure SYSTEM namespace, so all four classes are mapped into the USER namespace\&. To preserve information about origin of the extended attribute it is stored together with the class preffix in the >X\fIclass\&.attribute\fR >Xformat\&. >X.sp >XThe >X\fIsecure\fR >Xmode is meant for storing extended attributes in a secure manner, so that >X\fIsecurity\fR, >X\fIsystem\fR >Xand >X\fItrusted\fR >Xare stored in the SYSTEM namespace, which can be modified only by root\&. >X.RE >X.SH "" >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.B Table\ \&1.\ \&Attributes mapping >X.TS >Xallbox tab(:); >XlB lB lB lB lB. >XT{ >X >XT}:T{ >Xbuilt\-in >XT}:T{ >Xlegacy >XT}:T{ >Xcompat/jail >XT}:T{ >Xsecure >XT} >X.T& >XlB l l l l >XlB l l l l >XlB l l l l >XlB l l l l. >XT{ >Xuser >XT}:T{ >XUSER; attribute >XT}:T{ >XUSER; attribute >XT}:T{ >XUSER; user\&.attribute >XT}:T{ >XUSER; user\&.attribute >XT} >XT{ >Xsystem >XT}:T{ >XSYSTEM; attribute >XT}:T{ >XSYSTEM; attribute >XT}:T{ >XUSER; system\&.attribute >XT}:T{ >XSYSTEM; system\&.attribute >XT} >XT{ >Xtrusted >XT}:T{ >XFAIL >XT}:T{ >XUSER; attribute >XT}:T{ >XUSER; trusted\&.attribute >XT}:T{ >XSYSTEM; trusted\&.attribute >XT} >XT{ >Xsecurity >XT}:T{ >XFAIL >XT}:T{ >XUSER; attribute >XT}:T{ >XUSER; security\&.attribute >XT}:T{ >XSYSTEM; security\&.attribute >XT} >X.TE >X.sp 1 >X.SH "EXAMPLES" >X.PP >XUse secure method of setting extended attributes on the share: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X \fI[sysvol]\fR >X \m[blue]\fBvfs objects = freebsd\fR\m[] >X \m[blue]\fBfreebsd:extattr mode = secure\fR\m[] >X.fi >X.if n \{\ >X.RE >X.\} >X.SH "VERSION" >X.PP >XThis man page is part of version 4\&.10\&.5 of the Samba suite\&. >X.SH "AUTHOR" >X.PP >XThe original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&. >X.PP >XThis module was written by Timur I\&. Bakeyev >29aadfa2d02bc40b20161e553ffaf229 >echo x - inofficial/samba413/files/man/ctdb.7 >sed 's/^X//' >inofficial/samba413/files/man/ctdb.7 << '9210847a26a1c32cb11146c683c02241' >X'\" t >X.\" Title: ctdb >X.\" Author: >X.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> >X.\" Date: 09/23/2020 >X.\" Manual: CTDB - clustered TDB database >X.\" Source: ctdb >X.\" Language: English >X.\" >X.TH "CTDB" "7" "09/23/2020" "ctdb" "CTDB \- clustered TDB database" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xctdb \- Clustered TDB >X.SH "DESCRIPTION" >X.PP >XCTDB is a clustered database component in clustered Samba that provides a high\-availability load\-sharing CIFS server cluster\&. >X.PP >XThe main functions of CTDB are: >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04'\(bu\h'+03'\c >X.\} >X.el \{\ >X.sp -1 >X.IP \(bu 2.3 >X.\} >XProvide a clustered version of the TDB database with automatic rebuild/recovery of the databases upon node failures\&. >X.RE >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04'\(bu\h'+03'\c >X.\} >X.el \{\ >X.sp -1 >X.IP \(bu 2.3 >X.\} >XMonitor nodes in the cluster and services running on each node\&. >X.RE >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04'\(bu\h'+03'\c >X.\} >X.el \{\ >X.sp -1 >X.IP \(bu 2.3 >X.\} >XManage a pool of public IP addresses that are used to provide services to clients\&. Alternatively, CTDB can be used with LVS\&. >X.RE >X.PP >XCombined with a cluster filesystem CTDB provides a full high\-availablity (HA) environment for services such as clustered Samba, NFS and other services\&. >X.SH "ANATOMY OF A CTDB CLUSTER" >X.PP >XA CTDB cluster is a collection of nodes with 2 or more network interfaces\&. All nodes provide network (usually file/NAS) services to clients\&. Data served by file services is stored on shared storage (usually a cluster filesystem) that is accessible by all nodes\&. >X.PP >XCTDB provides an "all active" cluster, where services are load balanced across all nodes\&. >X.SH "RECOVERY LOCK" >X.PP >XCTDB uses a >X\fIrecovery lock\fR >Xto avoid a >X\fIsplit brain\fR, where a cluster becomes partitioned and each partition attempts to operate independently\&. Issues that can result from a split brain include file data corruption, because file locking metadata may not be tracked correctly\&. >X.PP >XCTDB uses a >X\fIcluster leader and follower\fR >Xmodel of cluster management\&. All nodes in a cluster elect one node to be the leader\&. The leader node coordinates privileged operations such as database recovery and IP address failover\&. CTDB refers to the leader node as the >X\fIrecovery master\fR\&. This node takes and holds the recovery lock to assert its privileged role in the cluster\&. >X.PP >XBy default, the recovery lock is implemented using a file (specified by >X\fIrecovery lock\fR >Xin the >X[cluster] >Xsection of >X\fBctdb.conf\fR(5)) residing in shared storage (usually) on a cluster filesystem\&. To support a recovery lock the cluster filesystem must support lock coherence\&. See >X\fBping_pong\fR(1) >Xfor more details\&. >X.PP >XThe recovery lock can also be implemented using an arbitrary cluster mutex call\-out by using an exclamation point (\*(Aq!\*(Aq) as the first character of >X\fIrecovery lock\fR\&. For example, a value of >X\fB!/usr/local/bin/myhelper recovery\fR >Xwould run the given helper with the specified arguments\&. See the source code relating to cluster mutexes for clues about writing call\-outs\&. >X.PP >XIf a cluster becomes partitioned (for example, due to a communication failure) and a different recovery master is elected by the nodes in each partition, then only one of these recovery masters will be able to take the recovery lock\&. The recovery master in the "losing" partition will not be able to take the recovery lock and will be excluded from the cluster\&. The nodes in the "losing" partition will elect each node in turn as their recovery master so eventually all the nodes in that partition will be excluded\&. >X.PP >XCTDB does sanity checks to ensure that the recovery lock is held as expected\&. >X.PP >XCTDB can run without a recovery lock but this is not recommended as there will be no protection from split brains\&. >X.SH "PRIVATE VS PUBLIC ADDRESSES" >X.PP >XEach node in a CTDB cluster has multiple IP addresses assigned to it: >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04'\(bu\h'+03'\c >X.\} >X.el \{\ >X.sp -1 >X.IP \(bu 2.3 >X.\} >XA single private IP address that is used for communication between nodes\&. >X.RE >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04'\(bu\h'+03'\c >X.\} >X.el \{\ >X.sp -1 >X.IP \(bu 2.3 >X.\} >XOne or more public IP addresses that are used to provide NAS or other services\&. >X.RE >X.sp >X.SS "Private address" >X.PP >XEach node is configured with a unique, permanently assigned private address\&. This address is configured by the operating system\&. This address uniquely identifies a physical node in the cluster and is the address that CTDB daemons will use to communicate with the CTDB daemons on other nodes\&. >X.PP >XPrivate addresses are listed in the file >X/usr/local/etc/ctdb/nodes)\&. This file contains the list of private addresses for all nodes in the cluster, one per line\&. This file must be the same on all nodes in the cluster\&. >X.PP >XSome users like to put this configuration file in their cluster filesystem\&. A symbolic link should be used in this case\&. >X.PP >XPrivate addresses should not be used by clients to connect to services provided by the cluster\&. >X.PP >XIt is strongly recommended that the private addresses are configured on a private network that is separate from client networks\&. This is because the CTDB protocol is both unauthenticated and unencrypted\&. If clients share the private network then steps need to be taken to stop injection of packets to relevant ports on the private addresses\&. It is also likely that CTDB protocol traffic between nodes could leak sensitive information if it can be intercepted\&. >X.PP >XExample >X/usr/local/etc/ctdb/nodes >Xfor a four node cluster: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X192\&.168\&.1\&.1 >X192\&.168\&.1\&.2 >X192\&.168\&.1\&.3 >X192\&.168\&.1\&.4 >X >X.fi >X.if n \{\ >X.RE >X.\} >X.SS "Public addresses" >X.PP >XPublic addresses are used to provide services to clients\&. Public addresses are not configured at the operating system level and are not permanently associated with a particular node\&. Instead, they are managed by CTDB and are assigned to interfaces on physical nodes at runtime\&. >X.PP >XThe CTDB cluster will assign/reassign these public addresses across the available healthy nodes in the cluster\&. When one node fails, its public addresses will be taken over by one or more other nodes in the cluster\&. This ensures that services provided by all public addresses are always available to clients, as long as there are nodes available capable of hosting this address\&. >X.PP >XThe public address configuration is stored in >X/usr/local/etc/ctdb/public_addresses >Xon each node\&. This file contains a list of the public addresses that the node is capable of hosting, one per line\&. Each entry also contains the netmask and the interface to which the address should be assigned\&. If this file is missing then no public addresses are configured\&. >X.PP >XSome users who have the same public addresses on all nodes like to put this configuration file in their cluster filesystem\&. A symbolic link should be used in this case\&. >X.PP >XExample >X/usr/local/etc/ctdb/public_addresses >Xfor a node that can host 4 public addresses, on 2 different interfaces: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X10\&.1\&.1\&.1/24 eth1 >X10\&.1\&.1\&.2/24 eth1 >X10\&.1\&.2\&.1/24 eth2 >X10\&.1\&.2\&.2/24 eth2 >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XIn many cases the public addresses file will be the same on all nodes\&. However, it is possible to use different public address configurations on different nodes\&. >X.PP >XExample: 4 nodes partitioned into two subgroups: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >XNode 0:/usr/local/etc/ctdb/public_addresses >X 10\&.1\&.1\&.1/24 eth1 >X 10\&.1\&.1\&.2/24 eth1 >X >XNode 1:/usr/local/etc/ctdb/public_addresses >X 10\&.1\&.1\&.1/24 eth1 >X 10\&.1\&.1\&.2/24 eth1 >X >XNode 2:/usr/local/etc/ctdb/public_addresses >X 10\&.1\&.2\&.1/24 eth2 >X 10\&.1\&.2\&.2/24 eth2 >X >XNode 3:/usr/local/etc/ctdb/public_addresses >X 10\&.1\&.2\&.1/24 eth2 >X 10\&.1\&.2\&.2/24 eth2 >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XIn this example nodes 0 and 1 host two public addresses on the 10\&.1\&.1\&.x network while nodes 2 and 3 host two public addresses for the 10\&.1\&.2\&.x network\&. >X.PP >XPublic address 10\&.1\&.1\&.1 can be hosted by either of nodes 0 or 1 and will be available to clients as long as at least one of these two nodes are available\&. >X.PP >XIf both nodes 0 and 1 become unavailable then public address 10\&.1\&.1\&.1 also becomes unavailable\&. 10\&.1\&.1\&.1 can not be failed over to nodes 2 or 3 since these nodes do not have this public address configured\&. >X.PP >XThe >X\fBctdb ip\fR >Xcommand can be used to view the current assignment of public addresses to physical nodes\&. >X.SH "NODE STATUS" >X.PP >XThe current status of each node in the cluster can be viewed by the >X\fBctdb status\fR >Xcommand\&. >X.PP >XA node can be in one of the following states: >X.PP >XOK >X.RS 4 >XThis node is healthy and fully functional\&. It hosts public addresses to provide services\&. >X.RE >X.PP >XDISCONNECTED >X.RS 4 >XThis node is not reachable by other nodes via the private network\&. It is not currently participating in the cluster\&. It >X\fIdoes not\fR >Xhost public addresses to provide services\&. It might be shut down\&. >X.RE >X.PP >XDISABLED >X.RS 4 >XThis node has been administratively disabled\&. This node is partially functional and participates in the cluster\&. However, it >X\fIdoes not\fR >Xhost public addresses to provide services\&. >X.RE >X.PP >XUNHEALTHY >X.RS 4 >XA service provided by this node has failed a health check and should be investigated\&. This node is partially functional and participates in the cluster\&. However, it >X\fIdoes not\fR >Xhost public addresses to provide services\&. Unhealthy nodes should be investigated and may require an administrative action to rectify\&. >X.RE >X.PP >XBANNED >X.RS 4 >XCTDB is not behaving as designed on this node\&. For example, it may have failed too many recovery attempts\&. Such nodes are banned from participating in the cluster for a configurable time period before they attempt to rejoin the cluster\&. A banned node >X\fIdoes not\fR >Xhost public addresses to provide services\&. All banned nodes should be investigated and may require an administrative action to rectify\&. >X.RE >X.PP >XSTOPPED >X.RS 4 >XThis node has been administratively exclude from the cluster\&. A stopped node does no participate in the cluster and >X\fIdoes not\fR >Xhost public addresses to provide services\&. This state can be used while performing maintenance on a node\&. >X.RE >X.PP >XPARTIALLYONLINE >X.RS 4 >XA node that is partially online participates in a cluster like a healthy (OK) node\&. Some interfaces to serve public addresses are down, but at least one interface is up\&. See also >X\fBctdb ifaces\fR\&. >X.RE >X.SH "CAPABILITIES" >X.PP >XCluster nodes can have several different capabilities enabled\&. These are listed below\&. >X.PP >XRECMASTER >X.RS 4 >XIndicates that a node can become the CTDB cluster recovery master\&. The current recovery master is decided via an election held by all active nodes with this capability\&. >X.sp >XDefault is YES\&. >X.RE >X.PP >XLMASTER >X.RS 4 >XIndicates that a node can be the location master (LMASTER) for database records\&. The LMASTER always knows which node has the latest copy of a record in a volatile database\&. >X.sp >XDefault is YES\&. >X.RE >X.PP >XThe RECMASTER and LMASTER capabilities can be disabled when CTDB is used to create a cluster spanning across WAN links\&. In this case CTDB acts as a WAN accelerator\&. >X.SH "LVS" >X.PP >XLVS is a mode where CTDB presents one single IP address for the entire cluster\&. This is an alternative to using public IP addresses and round\-robin DNS to loadbalance clients across the cluster\&. >X.PP >XThis is similar to using a layer\-4 loadbalancing switch but with some restrictions\&. >X.PP >XOne extra LVS public address is assigned on the public network to each LVS group\&. Each LVS group is a set of nodes in the cluster that presents the same LVS address public address to the outside world\&. Normally there would only be one LVS group spanning an entire cluster, but in situations where one CTDB cluster spans multiple physical sites it might be useful to have one LVS group for each site\&. There can be multiple LVS groups in a cluster but each node can only be member of one LVS group\&. >X.PP >XClient access to the cluster is load\-balanced across the HEALTHY nodes in an LVS group\&. If no HEALTHY nodes exists then all nodes in the group are used, regardless of health status\&. CTDB will, however never load\-balance LVS traffic to nodes that are BANNED, STOPPED, DISABLED or DISCONNECTED\&. The >X\fBctdb lvs\fR >Xcommand is used to show which nodes are currently load\-balanced across\&. >X.PP >XIn each LVS group, one of the nodes is selected by CTDB to be the LVS master\&. This node receives all traffic from clients coming in to the LVS public address and multiplexes it across the internal network to one of the nodes that LVS is using\&. When responding to the client, that node will send the data back directly to the client, bypassing the LVS master node\&. The command >X\fBctdb lvs master\fR >Xwill show which node is the current LVS master\&. >X.PP >XThe path used for a client I/O is: >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04' 1.\h'+01'\c >X.\} >X.el \{\ >X.sp -1 >X.IP " 1." 4.2 >X.\} >XClient sends request packet to LVSMASTER\&. >X.RE >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04' 2.\h'+01'\c >X.\} >X.el \{\ >X.sp -1 >X.IP " 2." 4.2 >X.\} >XLVSMASTER passes the request on to one node across the internal network\&. >X.RE >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04' 3.\h'+01'\c >X.\} >X.el \{\ >X.sp -1 >X.IP " 3." 4.2 >X.\} >XSelected node processes the request\&. >X.RE >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04' 4.\h'+01'\c >X.\} >X.el \{\ >X.sp -1 >X.IP " 4." 4.2 >X.\} >XNode responds back to client\&. >X.RE >X.PP >XThis means that all incoming traffic to the cluster will pass through one physical node, which limits scalability\&. You can send more data to the LVS address that one physical node can multiplex\&. This means that you should not use LVS if your I/O pattern is write\-intensive since you will be limited in the available network bandwidth that node can handle\&. LVS does work very well for read\-intensive workloads where only smallish READ requests are going through the LVSMASTER bottleneck and the majority of the traffic volume (the data in the read replies) goes straight from the processing node back to the clients\&. For read\-intensive i/o patterns you can achieve very high throughput rates in this mode\&. >X.PP >XNote: you can use LVS and public addresses at the same time\&. >X.PP >XIf you use LVS, you must have a permanent address configured for the public interface on each node\&. This address must be routable and the cluster nodes must be configured so that all traffic back to client hosts are routed through this interface\&. This is also required in order to allow samba/winbind on the node to talk to the domain controller\&. This LVS IP address can not be used to initiate outgoing traffic\&. >X.PP >XMake sure that the domain controller and the clients are reachable from a node >X\fIbefore\fR >Xyou enable LVS\&. Also ensure that outgoing traffic to these hosts is routed out through the configured public interface\&. >X.SS "Configuration" >X.PP >XTo activate LVS on a CTDB node you must specify the >X\fICTDB_LVS_PUBLIC_IFACE\fR, >X\fICTDB_LVS_PUBLIC_IP\fR >Xand >X\fICTDB_LVS_NODES\fR >Xconfiguration variables\&. >X\fICTDB_LVS_NODES\fR >Xspecifies a file containing the private address of all nodes in the current node\*(Aqs LVS group\&. >X.PP >XExample: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >XCTDB_LVS_PUBLIC_IFACE=eth1 >XCTDB_LVS_PUBLIC_IP=10\&.1\&.1\&.237 >XCTDB_LVS_NODES=/usr/local/etc/ctdb/lvs_nodes >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XExample >X/usr/local/etc/ctdb/lvs_nodes: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X192\&.168\&.1\&.2 >X192\&.168\&.1\&.3 >X192\&.168\&.1\&.4 >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XNormally any node in an LVS group can act as the LVS master\&. Nodes that are highly loaded due to other demands maybe flagged with the "slave\-only" option in the >X\fICTDB_LVS_NODES\fR >Xfile to limit the LVS functionality of those nodes\&. >X.PP >XLVS nodes file that excludes 192\&.168\&.1\&.4 from being the LVS master node: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X192\&.168\&.1\&.2 >X192\&.168\&.1\&.3 >X192\&.168\&.1\&.4 slave\-only >X >X.fi >X.if n \{\ >X.RE >X.\} >X.SH "TRACKING AND RESETTING TCP CONNECTIONS" >X.PP >XCTDB tracks TCP connections from clients to public IP addresses, on known ports\&. When an IP address moves from one node to another, all existing TCP connections to that IP address are reset\&. The node taking over this IP address will also send gratuitous ARPs (for IPv4, or neighbour advertisement, for IPv6)\&. This allows clients to reconnect quickly, rather than waiting for TCP timeouts, which can be very long\&. >X.PP >XIt is important that established TCP connections do not survive a release and take of a public IP address on the same node\&. Such connections can get out of sync with sequence and ACK numbers, potentially causing a disruptive ACK storm\&. >X.SH "NAT GATEWAY" >X.PP >XNAT gateway (NATGW) is an optional feature that is used to configure fallback routing for nodes\&. This allows cluster nodes to connect to external services (e\&.g\&. DNS, AD, NIS and LDAP) when they do not host any public addresses (e\&.g\&. when they are unhealthy)\&. >X.PP >XThis also applies to node startup because CTDB marks nodes as UNHEALTHY until they have passed a "monitor" event\&. In this context, NAT gateway helps to avoid a "chicken and egg" situation where a node needs to access an external service to become healthy\&. >X.PP >XAnother way of solving this type of problem is to assign an extra static IP address to a public interface on every node\&. This is simpler but it uses an extra IP address per node, while NAT gateway generally uses only one extra IP address\&. >X.SS "Operation" >X.PP >XOne extra NATGW public address is assigned on the public network to each NATGW group\&. Each NATGW group is a set of nodes in the cluster that shares the same NATGW address to talk to the outside world\&. Normally there would only be one NATGW group spanning an entire cluster, but in situations where one CTDB cluster spans multiple physical sites it might be useful to have one NATGW group for each site\&. >X.PP >XThere can be multiple NATGW groups in a cluster but each node can only be member of one NATGW group\&. >X.PP >XIn each NATGW group, one of the nodes is selected by CTDB to be the NATGW master and the other nodes are consider to be NATGW slaves\&. NATGW slaves establish a fallback default route to the NATGW master via the private network\&. When a NATGW slave hosts no public IP addresses then it will use this route for outbound connections\&. The NATGW master hosts the NATGW public IP address and routes outgoing connections from slave nodes via this IP address\&. It also establishes a fallback default route\&. >X.SS "Configuration" >X.PP >XNATGW is usually configured similar to the following example configuration: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >XCTDB_NATGW_NODES=/usr/local/etc/ctdb/natgw_nodes >XCTDB_NATGW_PRIVATE_NETWORK=192\&.168\&.1\&.0/24 >XCTDB_NATGW_PUBLIC_IP=10\&.0\&.0\&.227/24 >XCTDB_NATGW_PUBLIC_IFACE=eth0 >XCTDB_NATGW_DEFAULT_GATEWAY=10\&.0\&.0\&.1 >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XNormally any node in a NATGW group can act as the NATGW master\&. Some configurations may have special nodes that lack connectivity to a public network\&. In such cases, those nodes can be flagged with the "slave\-only" option in the >X\fICTDB_NATGW_NODES\fR >Xfile to limit the NATGW functionality of those nodes\&. >X.PP >XSee the >XNAT GATEWAY >Xsection in >X\fBctdb-script.options\fR(5) >Xfor more details of NATGW configuration\&. >X.SS "Implementation details" >X.PP >XWhen the NATGW functionality is used, one of the nodes is selected to act as a NAT gateway for all the other nodes in the group when they need to communicate with the external services\&. The NATGW master is selected to be a node that is most likely to have usable networks\&. >X.PP >XThe NATGW master hosts the NATGW public IP address >X\fICTDB_NATGW_PUBLIC_IP\fR >Xon the configured public interfaces >X\fICTDB_NATGW_PUBLIC_IFACE\fR >Xand acts as a router, masquerading outgoing connections from slave nodes via this IP address\&. If >X\fICTDB_NATGW_DEFAULT_GATEWAY\fR >Xis set then it also establishes a fallback default route to the configured this gateway with a metric of 10\&. A metric 10 route is used so it can co\-exist with other default routes that may be available\&. >X.PP >XA NATGW slave establishes its fallback default route to the NATGW master via the private network >X\fICTDB_NATGW_PRIVATE_NETWORK\fRwith a metric of 10\&. This route is used for outbound connections when no other default route is available because the node hosts no public addresses\&. A metric 10 routes is used so that it can co\-exist with other default routes that may be available when the node is hosting public addresses\&. >X.PP >X\fICTDB_NATGW_STATIC_ROUTES\fR >Xcan be used to have NATGW create more specific routes instead of just default routes\&. >X.PP >XThis is implemented in the >X11\&.natgw >Xeventscript\&. Please see the eventscript file and the >XNAT GATEWAY >Xsection in >X\fBctdb-script.options\fR(5) >Xfor more details\&. >X.SH "POLICY ROUTING" >X.PP >XPolicy routing is an optional CTDB feature to support complex network topologies\&. Public addresses may be spread across several different networks (or VLANs) and it may not be possible to route packets from these public addresses via the system\*(Aqs default route\&. Therefore, CTDB has support for policy routing via the >X13\&.per_ip_routing >Xeventscript\&. This allows routing to be specified for packets sourced from each public address\&. The routes are added and removed as CTDB moves public addresses between nodes\&. >X.SS "Configuration variables" >X.PP >XThere are 4 configuration variables related to policy routing: >X\fICTDB_PER_IP_ROUTING_CONF\fR, >X\fICTDB_PER_IP_ROUTING_RULE_PREF\fR, >X\fICTDB_PER_IP_ROUTING_TABLE_ID_LOW\fR, >X\fICTDB_PER_IP_ROUTING_TABLE_ID_HIGH\fR\&. See the >XPOLICY ROUTING >Xsection in >X\fBctdb-script.options\fR(5) >Xfor more details\&. >X.SS "Configuration" >X.PP >XThe format of each line of >X\fICTDB_PER_IP_ROUTING_CONF\fR >Xis: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X<public_address> <network> [ <gateway> ] >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XLeading whitespace is ignored and arbitrary whitespace may be used as a separator\&. Lines that have a "public address" item that doesn\*(Aqt match an actual public address are ignored\&. This means that comment lines can be added using a leading character such as \*(Aq#\*(Aq, since this will never match an IP address\&. >X.PP >XA line without a gateway indicates a link local route\&. >X.PP >XFor example, consider the configuration line: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X 192\&.168\&.1\&.99 192\&.168\&.1\&.1/24 >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XIf the corresponding public_addresses line is: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X 192\&.168\&.1\&.99/24 eth2,eth3 >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >X\fICTDB_PER_IP_ROUTING_RULE_PREF\fR >Xis 100, and CTDB adds the address to eth2 then the following routing information is added: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X ip rule add from 192\&.168\&.1\&.99 pref 100 table ctdb\&.192\&.168\&.1\&.99 >X ip route add 192\&.168\&.1\&.0/24 dev eth2 table ctdb\&.192\&.168\&.1\&.99 >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XThis causes traffic from 192\&.168\&.1\&.1 to 192\&.168\&.1\&.0/24 go via eth2\&. >X.PP >XThe >X\fBip rule\fR >Xcommand will show (something like \- depending on other public addresses and other routes on the system): >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X 0: from all lookup local >X 100: from 192\&.168\&.1\&.99 lookup ctdb\&.192\&.168\&.1\&.99 >X 32766: from all lookup main >X 32767: from all lookup default >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >X\fBip route show table ctdb\&.192\&.168\&.1\&.99\fR >Xwill show: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X 192\&.168\&.1\&.0/24 dev eth2 scope link >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XThe usual use for a line containing a gateway is to add a default route corresponding to a particular source address\&. Consider this line of configuration: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X 192\&.168\&.1\&.99 0\&.0\&.0\&.0/0 192\&.168\&.1\&.1 >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XIn the situation described above this will cause an extra routing command to be executed: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X ip route add 0\&.0\&.0\&.0/0 via 192\&.168\&.1\&.1 dev eth2 table ctdb\&.192\&.168\&.1\&.99 >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XWith both configuration lines, >X\fBip route show table ctdb\&.192\&.168\&.1\&.99\fR >Xwill show: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X 192\&.168\&.1\&.0/24 dev eth2 scope link >X default via 192\&.168\&.1\&.1 dev eth2 >X >X.fi >X.if n \{\ >X.RE >X.\} >X.SS "Sample configuration" >X.PP >XHere is a more complete example configuration\&. >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X/usr/local/etc/ctdb/public_addresses: >X >X 192\&.168\&.1\&.98 eth2,eth3 >X 192\&.168\&.1\&.99 eth2,eth3 >X >X/usr/local/etc/ctdb/policy_routing: >X >X 192\&.168\&.1\&.98 192\&.168\&.1\&.0/24 >X 192\&.168\&.1\&.98 192\&.168\&.200\&.0/24 192\&.168\&.1\&.254 >X 192\&.168\&.1\&.98 0\&.0\&.0\&.0/0 192\&.168\&.1\&.1 >X 192\&.168\&.1\&.99 192\&.168\&.1\&.0/24 >X 192\&.168\&.1\&.99 192\&.168\&.200\&.0/24 192\&.168\&.1\&.254 >X 192\&.168\&.1\&.99 0\&.0\&.0\&.0/0 192\&.168\&.1\&.1 >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XThe routes local packets as expected, the default route is as previously discussed, but packets to 192\&.168\&.200\&.0/24 are routed via the alternate gateway 192\&.168\&.1\&.254\&. >X.SH "NOTIFICATIONS" >X.PP >XWhen certain state changes occur in CTDB, it can be configured to perform arbitrary actions via notifications\&. For example, sending SNMP traps or emails when a node becomes unhealthy or similar\&. >X.PP >XThe notification mechanism runs all executable files ending in "\&.script" in >X/usr/local/etc/ctdb/events/notification/, ignoring any failures and continuing to run all files\&. >X.PP >XCTDB currently generates notifications after CTDB changes to these states: >X.RS 4 >Xinit >X.RE >X.RS 4 >Xsetup >X.RE >X.RS 4 >Xstartup >X.RE >X.RS 4 >Xhealthy >X.RE >X.RS 4 >Xunhealthy >X.RE >X.SH "LOG LEVELS" >X.PP >XValid log levels, in increasing order of verbosity, are: >X.RS 4 >XERROR >X.RE >X.RS 4 >XWARNING >X.RE >X.RS 4 >XNOTICE >X.RE >X.RS 4 >XINFO >X.RE >X.RS 4 >XDEBUG >X.RE >X.SH "REMOTE CLUSTER NODES" >X.PP >XIt is possible to have a CTDB cluster that spans across a WAN link\&. For example where you have a CTDB cluster in your datacentre but you also want to have one additional CTDB node located at a remote branch site\&. This is similar to how a WAN accelerator works but with the difference that while a WAN\-accelerator often acts as a Proxy or a MitM, in the ctdb remote cluster node configuration the Samba instance at the remote site IS the genuine server, not a proxy and not a MitM, and thus provides 100% correct CIFS semantics to clients\&. >X.PP >XSee the cluster as one single multihomed samba server where one of the NICs (the remote node) is very far away\&. >X.PP >XNOTE: This does require that the cluster filesystem you use can cope with WAN\-link latencies\&. Not all cluster filesystems can handle WAN\-link latencies! Whether this will provide very good WAN\-accelerator performance or it will perform very poorly depends entirely on how optimized your cluster filesystem is in handling high latency for data and metadata operations\&. >X.PP >XTo activate a node as being a remote cluster node you need to set the following two parameters in /usr/local/etc/ctdb/ctdb\&.conf for the remote node: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X[legacy] >X lmaster capability = false >X recmaster capability = false >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XVerify with the command "ctdb getcapabilities" that that node no longer has the recmaster or the lmaster capabilities\&. >X.SH "SEE ALSO" >X.PP >X\fBctdb\fR(1), >X\fBctdbd\fR(1), >X\fBctdbd_wrapper\fR(1), >X\fBctdb_diagnostics\fR(1), >X\fBltdbtool\fR(1), >X\fBonnode\fR(1), >X\fBping_pong\fR(1), >X\fBctdb.conf\fR(5), >X\fBctdb-script.options\fR(5), >X\fBctdb.sysconfig\fR(5), >X\fBctdb-statistics\fR(7), >X\fBctdb-tunables\fR(7), >X\m[blue]\fB\%http://ctdb.samba.org/\fR\m[] >X.SH "AUTHOR" >X.br >X.PP >XThis documentation was written by Ronnie Sahlberg, Amitay Isaacs, Martin Schwenke >X.SH "COPYRIGHT" >X.br >XCopyright \(co 2007 Andrew Tridgell, Ronnie Sahlberg >X.br >X.PP >XThis program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version\&. >X.PP >XThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&. See the GNU General Public License for more details\&. >X.PP >XYou should have received a copy of the GNU General Public License along with this program; if not, see >X\m[blue]\fB\%http://www.gnu.org/licenses\fR\m[]\&. >X.sp >9210847a26a1c32cb11146c683c02241 >echo x - inofficial/samba413/files/man/smbtorture.1 >sed 's/^X//' >inofficial/samba413/files/man/smbtorture.1 << 'a9cc7f2e1082f80184100ecff3855a64' >X'\" t >X.\" Title: smbtorture >X.\" Author: [see the "AUTHOR" section] >X.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> >X.\" Date: 09/23/2020 >X.\" Manual: Test Suite >X.\" Source: Samba 4.0 >X.\" Language: English >X.\" >X.TH "SMBTORTURE" "1" "09/23/2020" "Samba 4\&.0" "Test Suite" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xsmbtorture \- Run a series of tests against a SMB server >X.SH "SYNOPSIS" >X.HP \w'\fBsmbtorture\fR\ 'u >X\fBsmbtorture\fR {//server/share} [\-d\ debuglevel] [\-U\ user%pass] [\-k] [\-N\ numprocs] [\-n\ netbios_name] [\-W\ workgroup] [\-e\ num\ files(entries)] [\-O\ socket_options] [\-m\ maximum_protocol] [\-L] [\-c\ CLIENT\&.TXT] [\-t\ timelimit] [\-C\ filename] [\-A] [\-p\ port] [\-s\ seed] [\-f\ max_failures] [\-X] {BINDING\-STRING|UNC} {TEST1} [TEST2] [\&.\&.\&.] >X.SH "DESCRIPTION" >X.PP >Xsmbtorture is a testsuite that runs several tests against a SMB server\&. All tests are known to succeed against a Windows 2003 server (?)\&. Smbtorture\*(Aqs primary goal is finding differences in implementations of the SMB protocol and testing SMB servers\&. >X.PP >XAny number of tests can be specified on the command\-line\&. If no tests are specified, all tests are run\&. >X.PP >XIf no arguments are specified at all, all available options and tests are listed\&. >X.SS "Binding string format" >X.PP >XThe binding string format is: >X.PP >XTRANSPORT:host[flags] >X.PP >XWhere TRANSPORT is either ncacn_np for SMB, ncacn_ip_tcp for RPC/TCP or ncalrpc for local connections\&. >X.PP >X\*(Aqhost\*(Aq is an IP or hostname or netbios name\&. If the binding string identifies the server side of an endpoint, \*(Aqhost\*(Aq may be an empty string\&. >X.PP >X\*(Aqflags\*(Aq can include a SMB pipe name if using the ncacn_np transport or a TCP port number if using the ncacn_ip_tcp transport, otherwise they will be auto\-determined\&. >X.PP >Xother recognised flags are: >X.PP >Xsign >X.RS 4 >Xenable ntlmssp signing >X.RE >X.PP >Xseal >X.RS 4 >Xenable ntlmssp sealing >X.RE >X.PP >Xconnect >X.RS 4 >Xenable rpc connect level auth (auth, but no sign or seal) >X.RE >X.PP >Xvalidate >X.RS 4 >Xenable the NDR validator >X.RE >X.PP >Xprint >X.RS 4 >Xenable debugging of the packets >X.RE >X.PP >Xbigendian >X.RS 4 >Xuse bigendian RPC >X.RE >X.PP >Xpadcheck >X.RS 4 >Xcheck reply data for non\-zero pad bytes >X.RE >X.PP >XFor example, these all connect to the samr pipe: >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04'\(bu\h'+03'\c >X.\} >X.el \{\ >X.sp -1 >X.IP \(bu 2.3 >X.\} >Xncacn_np:myserver >X.RE >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04'\(bu\h'+03'\c >X.\} >X.el \{\ >X.sp -1 >X.IP \(bu 2.3 >X.\} >Xncacn_np:myserver[samr] >X.RE >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04'\(bu\h'+03'\c >X.\} >X.el \{\ >X.sp -1 >X.IP \(bu 2.3 >X.\} >Xncacn_np:myserver[\e\epipe\e\esamr] >X.RE >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04'\(bu\h'+03'\c >X.\} >X.el \{\ >X.sp -1 >X.IP \(bu 2.3 >X.\} >Xncacn_np:myserver[/pipe/samr] >X.RE >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04'\(bu\h'+03'\c >X.\} >X.el \{\ >X.sp -1 >X.IP \(bu 2.3 >X.\} >Xncacn_np:myserver[samr,sign,print] >X.RE >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04'\(bu\h'+03'\c >X.\} >X.el \{\ >X.sp -1 >X.IP \(bu 2.3 >X.\} >Xncacn_np:myserver[\e\epipe\e\esamr,sign,seal,bigendian] >X.RE >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04'\(bu\h'+03'\c >X.\} >X.el \{\ >X.sp -1 >X.IP \(bu 2.3 >X.\} >Xncacn_np:myserver[/pipe/samr,seal,validate] >X.RE >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04'\(bu\h'+03'\c >X.\} >X.el \{\ >X.sp -1 >X.IP \(bu 2.3 >X.\} >Xncacn_np: >X.RE >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04'\(bu\h'+03'\c >X.\} >X.el \{\ >X.sp -1 >X.IP \(bu 2.3 >X.\} >Xncacn_np:[/pipe/samr] >X.RE >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04'\(bu\h'+03'\c >X.\} >X.el \{\ >X.sp -1 >X.IP \(bu 2.3 >X.\} >Xncacn_ip_tcp:myserver >X.RE >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04'\(bu\h'+03'\c >X.\} >X.el \{\ >X.sp -1 >X.IP \(bu 2.3 >X.\} >Xncacn_ip_tcp:myserver[1024] >X.RE >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04'\(bu\h'+03'\c >X.\} >X.el \{\ >X.sp -1 >X.IP \(bu 2.3 >X.\} >Xncacn_ip_tcp:myserver[1024,sign,seal] >X.RE >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04'\(bu\h'+03'\c >X.\} >X.el \{\ >X.sp -1 >X.IP \(bu 2.3 >X.\} >Xncalrpc: >X.RE >X.SS "UNC Format" >X.PP >XThe UNC format is: >X.PP >X//server/share >X.SH "OPTIONS" >X.PP >X\-d debuglevel >X.RS 4 >XUse the specified Samba debug level\&. A higher debug level means more output\&. >X.RE >X.PP >X\-U user%pass >X.RS 4 >XUse the specified username/password combination when logging in to a remote server\&. >X.RE >X.PP >X\-k >X.RS 4 >XUse kerberos when authenticating\&. >X.RE >X.PP >X\-W workgroup >X.RS 4 >XUse specified name as our workgroup name\&. >X.RE >X.PP >X\-n netbios_name >X.RS 4 >XUse specified name as our NetBIOS name\&. >X.RE >X.PP >X\-O socket_options >X.RS 4 >XUse specified socket options, equivalent of the smb\&.conf option >X\(lqsocket options\(rq\&. See the smb\&.conf(5) manpage for details\&. >X.RE >X.PP >X\-m max_protocol >X.RS 4 >XSpecify the maximum SMB dialect that should be used\&. Possible values are: CORE, COREPLUS, LANMAN1, LANMAN2, NT1 >X.RE >X.PP >X\-s seed >X.RS 4 >XInitialize the randomizer using >X\fIseed\fR >Xas seed\&. >X.RE >X.PP >X\-L >X.RS 4 >XUse oplocks\&. >X.RE >X.PP >X\-X >X.RS 4 >XEnable dangerous tests\&. Use with care! This might crash your server\&.\&.\&. >X.RE >X.PP >X\-t timelimit >X.RS 4 >XSpecify the NBENCH time limit in seconds\&. Defaults to 600\&. >X.RE >X.PP >X\-p ports >X.RS 4 >XSpecify ports to connect to\&. >X.RE >X.PP >X\-c file >X.RS 4 >XRead NBENCH commands from >X\fIfile\fR >Xinstead of from CLIENT\&.TXT\&. >X.RE >X.PP >X\-A >X.RS 4 >XShow not just OK or FAILED but more detailed output\&. Used only by DENY test at the moment\&. >X.RE >X.PP >X\-C filename >X.RS 4 >XLoad a list of UNC names from the specified filename\&. Smbtorture instances will connect to a random host from this list\&. >X.RE >X.PP >X\-N numprocs >X.RS 4 >XSpecify number of smbtorture processes to launch\&. >X.RE >X.PP >X\-e num_files >X.RS 4 >XNumber of entries to use in certain tests (such as creating X files) (default: 1000)\&. >X.RE >X.PP >X\-f max_failures >X.RS 4 >XNumber of failures before aborting a test (default: 1)\&. >X.RE >X.SH "VERSION" >X.PP >XThis man page is correct for version 4\&.0 of the Samba suite\&. >X.SH "SEE ALSO" >X.PP >XSamba >X.SH "AUTHOR" >X.PP >XThis utility is part of the >X\m[blue]\fBSamba\fR\m[]\&\s-2\u[1]\d\s+2 >Xsuite, which is developed by the global >X\m[blue]\fBSamba Team\fR\m[]\&\s-2\u[2]\d\s+2\&. >X.PP >Xsmbtorture was written by Andrew Tridgell\&. >X.PP >XThis manpage was written by Jelmer Vernooij\&. >X.SH "NOTES" >X.IP " 1." 4 >XSamba >X.RS 4 >X\%http://www.samba.org/ >X.RE >X.IP " 2." 4 >XSamba Team >X.RS 4 >X\%http://www.samba.org/samba/team/ >X.RE >a9cc7f2e1082f80184100ecff3855a64 >echo x - inofficial/samba413/files/man/nmblookup.1 >sed 's/^X//' >inofficial/samba413/files/man/nmblookup.1 << 'd9007a3515c10a50f803d5fdd6598038' >X'\" t >X.\" Title: nmblookup >X.\" Author: [see the "AUTHOR" section] >X.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> >X.\" Date: 09/23/2020 >X.\" Manual: User Commands >X.\" Source: Samba 4.12.7 >X.\" Language: English >X.\" >X.TH "NMBLOOKUP" "1" "09/23/2020" "Samba 4\&.12\&.7" "User Commands" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xnmblookup \- NetBIOS over TCP/IP client used to lookup NetBIOS names >X.SH "SYNOPSIS" >X.HP \w'\ 'u >Xnmblookup [\-M|\-\-master\-browser] [\-R|\-\-recursion] [\-S|\-\-status] [\-r|\-\-root\-port] [\-A|\-\-lookup\-by\-ip] [\-B|\-\-broadcast\ <broadcast\ address>] [\-U|\-\-unicast\ <unicast\ address>] [\-d\ <debug\ level>] [\-s\ <smb\ config\ file>] [\-i\ <NetBIOS\ scope>] [\-T|\-\-translate] [\-f|\-\-flags] {name} >X.SH "DESCRIPTION" >X.PP >XThis tool is part of the >X\fBsamba\fR(7) >Xsuite\&. >X.PP >Xnmblookup >Xis used to query NetBIOS names and map them to IP addresses in a network using NetBIOS over TCP/IP queries\&. The options allow the name queries to be directed at a particular IP broadcast area or to a particular machine\&. All queries are done over UDP\&. >X.SH "OPTIONS" >X.PP >X\-M|\-\-master\-browser >X.RS 4 >XSearches for a master browser by looking up the NetBIOS >X\fIname\fR >Xwith a type of >X\fB0x1d\fR\&. If >X\fI name\fR >Xis "\-" then it does a lookup on the special name >X\fB__MSBROWSE__\fR\&. Please note that in order to use the name "\-", you need to make sure "\-" isn\*(Aqt parsed as an argument, e\&.g\&. use : >X\fBnmblookup \-M \-\- \-\fR\&. >X.RE >X.PP >X\-R|\-\-recursion >X.RS 4 >XSet the recursion desired bit in the packet to do a recursive lookup\&. This is used when sending a name query to a machine running a WINS server and the user wishes to query the names in the WINS server\&. If this bit is unset the normal (broadcast responding) NetBIOS processing code on a machine is used instead\&. See RFC1001, RFC1002 for details\&. >X.RE >X.PP >X\-S|\-\-status >X.RS 4 >XOnce the name query has returned an IP address then do a node status query as well\&. A node status query returns the NetBIOS names registered by a host\&. >X.RE >X.PP >X\-r|\-\-root\-port >X.RS 4 >XTry and bind to UDP port 137 to send and receive UDP datagrams\&. The reason for this option is a bug in Windows 95 where it ignores the source port of the requesting packet and only replies to UDP port 137\&. Unfortunately, on most UNIX systems root privilege is needed to bind to this port, and in addition, if the >X\fBnmbd\fR(8) >Xdaemon is running on this machine it also binds to this port\&. >X.RE >X.PP >X\-A|\-\-lookup\-by\-ip >X.RS 4 >XInterpret >X\fIname\fR >Xas an IP Address and do a node status query on this address\&. >X.RE >X.PP >X\-n|\-\-netbiosname <primary NetBIOS name> >X.RS 4 >XThis option allows you to override the NetBIOS name that Samba uses for itself\&. This is identical to setting the >X\m[blue]\fBnetbios name\fR\m[] >Xparameter in the >Xsmb\&.conf >Xfile\&. However, a command line setting will take precedence over settings in >Xsmb\&.conf\&. >X.RE >X.PP >X\-i|\-\-scope <scope> >X.RS 4 >XThis specifies a NetBIOS scope that >Xnmblookup >Xwill use to communicate with when generating NetBIOS names\&. For details on the use of NetBIOS scopes, see rfc1001\&.txt and rfc1002\&.txt\&. NetBIOS scopes are >X\fIvery\fR >Xrarely used, only set this parameter if you are the system administrator in charge of all the NetBIOS systems you communicate with\&. >X.RE >X.PP >X\-W|\-\-workgroup=domain >X.RS 4 >XSet the SMB domain of the username\&. This overrides the default domain which is the domain defined in smb\&.conf\&. If the domain specified is the same as the servers NetBIOS name, it causes the client to log on using the servers local SAM (as opposed to the Domain SAM)\&. >X.RE >X.PP >X\-O|\-\-socket\-options socket options >X.RS 4 >XTCP socket options to set on the client socket\&. See the socket options parameter in the >Xsmb\&.conf >Xmanual page for the list of valid options\&. >X.RE >X.PP >X\-?|\-\-help >X.RS 4 >XPrint a summary of command line options\&. >X.RE >X.PP >X\-\-usage >X.RS 4 >XDisplay brief usage message\&. >X.RE >X.PP >X\-B|\-\-broadcast <broadcast address> >X.RS 4 >XSend the query to the given broadcast address\&. Without this option the default behavior of nmblookup is to send the query to the broadcast address of the network interfaces as either auto\-detected or defined in the >X\fIinterfaces\fR >Xparameter of the >X\fBsmb.conf\fR(5) >Xfile\&. >X.RE >X.PP >X\-U|\-\-unicast <unicast address> >X.RS 4 >XDo a unicast query to the specified address or host >X\fIunicast address\fR\&. This option (along with the >X\fI\-R\fR >Xoption) is needed to query a WINS server\&. >X.RE >X.PP >X\-d|\-\-debuglevel=level >X.RS 4 >X\fIlevel\fR >Xis an integer from 0 to 10\&. The default value if this parameter is not specified is 0\&. >X.sp >XThe higher this value, the more detail will be logged to the log files about the activities of the server\&. At level 0, only critical errors and serious warnings will be logged\&. Level 1 is a reasonable level for day\-to\-day running \- it generates a small amount of information about operations carried out\&. >X.sp >XLevels above 1 will generate considerable amounts of log data, and should only be used when investigating a problem\&. Levels above 3 are designed for use only by developers and generate HUGE amounts of log data, most of which is extremely cryptic\&. >X.sp >XNote that specifying this parameter here will override the >X\m[blue]\fBlog level\fR\m[] >Xparameter in the >Xsmb\&.conf >Xfile\&. >X.RE >X.PP >X\-V|\-\-version >X.RS 4 >XPrints the program version number\&. >X.RE >X.PP >X\-s|\-\-configfile=<configuration file> >X.RS 4 >XThe file specified contains the configuration details required by the server\&. The information in this file includes server\-specific information such as what printcap file to use, as well as descriptions of all the services that the server is to provide\&. See >Xsmb\&.conf >Xfor more information\&. The default configuration file name is determined at compile time\&. >X.RE >X.PP >X\-l|\-\-log\-basename=logdirectory >X.RS 4 >XBase directory name for log/debug files\&. The extension >X\fB"\&.progname"\fR >Xwill be appended (e\&.g\&. log\&.smbclient, log\&.smbd, etc\&.\&.\&.)\&. The log file is never removed by the client\&. >X.RE >X.PP >X\-\-option=<name>=<value> >X.RS 4 >XSet the >X\fBsmb.conf\fR(5) >Xoption "<name>" to value "<value>" from the command line\&. This overrides compiled\-in defaults and options read from the configuration file\&. >X.RE >X.PP >X\-T|\-\-translate >X.RS 4 >XThis causes any IP addresses found in the lookup to be looked up via a reverse DNS lookup into a DNS name, and printed out before each >X.sp >X\fIIP address \&.\&.\&.\&. NetBIOS name\fR >X.sp >Xpair that is the normal output\&. >X.RE >X.PP >X\-f|\-\-flags >X.RS 4 >XShow which flags apply to the name that has been looked up\&. Possible answers are zero or more of: Response, Authoritative, Truncated, Recursion_Desired, Recursion_Available, Broadcast\&. >X.RE >X.PP >Xname >X.RS 4 >XThis is the NetBIOS name being queried\&. Depending upon the previous options this may be a NetBIOS name or IP address\&. If a NetBIOS name then the different name types may be specified by appending \*(Aq#<type>\*(Aq to the name\&. This name may also be \*(Aq*\*(Aq, which will return all registered names within a broadcast area\&. >X.RE >X.SH "EXAMPLES" >X.PP >Xnmblookup >Xcan be used to query a WINS server (in the same way >Xnslookup >Xis used to query DNS servers)\&. To query a WINS server, >Xnmblookup >Xmust be called like this: >X.PP >Xnmblookup \-U server \-R \*(Aqname\*(Aq >X.PP >XFor example, running : >X.PP >Xnmblookup \-U samba\&.org \-R \*(AqIRIX#1B\*(Aq >X.PP >Xwould query the WINS server samba\&.org for the domain master browser (1B name type) for the IRIX workgroup\&. >X.SH "VERSION" >X.PP >XThis man page is part of version 4\&.12\&.7 of the Samba suite\&. >X.SH "SEE ALSO" >X.PP >X\fBnmbd\fR(8), >X\fBsamba\fR(7), and >X\fBsmb.conf\fR(5)\&. >X.SH "AUTHOR" >X.PP >XThe original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&. >d9007a3515c10a50f803d5fdd6598038 >echo x - inofficial/samba413/files/man/ctdb_diagnostics.1 >sed 's/^X//' >inofficial/samba413/files/man/ctdb_diagnostics.1 << '9d833f640ce0243e367e05271a9af6b5' >X'\" t >X.\" Title: ctdb_diagnostics >X.\" Author: >X.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> >X.\" Date: 11/18/2018 >X.\" Manual: CTDB - clustered TDB database >X.\" Source: ctdb >X.\" Language: English >X.\" >X.TH "CTDB_DIAGNOSTICS" "1" "11/18/2018" "ctdb" "CTDB \- clustered TDB database" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xctdb_diagnostics \- dump diagnostic information about CTDB/Samba installation >X.SH "SYNOPSIS" >X.HP \w'\fBctdb_diagnostics\fR\ 'u >X\fBctdb_diagnostics\fR [OPTIONS] \&.\&.\&. >X.SH "DESCRIPTION" >X.PP >Xctdb_diagnostics is used to dump diagnostic information about a clustered Samba installation\&. This includes configuration files, output of relevant commands and logs\&. This information can be used to check the correctness of the configuration and to diagnose problems\&. >X.SH "OPTIONS" >X.PP >X\-n <nodes> >X.RS 4 >XComma separated list of nodes to operate on >X.RE >X.PP >X\-c >X.RS 4 >XIgnore comment lines (starting with \*(Aq#\*(Aq) in file comparisons >X.RE >X.PP >X\-w >X.RS 4 >XIgnore whitespace in file comparisons >X.RE >X.PP >X\-\-no\-ads >X.RS 4 >XDo not use commands that assume an Active Directory Server >X.RE >X.SH "SEE ALSO" >X.PP >X\fBctdb\fR(1), >X\fBctdb\fR(7), >X\m[blue]\fB\%https://ctdb.samba.org/\fR\m[] >X.SH "AUTHOR" >X.br >X.PP >XThis documentation was written by Martijn van Brummelen >X.SH "COPYRIGHT" >X.br >XCopyright \(co 2015 Martijn van Brummelen >X.br >X.PP >XThis program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version\&. >X.PP >XThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&. See the GNU General Public License for more details\&. >X.PP >XYou should have received a copy of the GNU General Public License along with this program; if not, see >X\m[blue]\fB\%http://www.gnu.org/licenses\fR\m[]\&. >X.sp >9d833f640ce0243e367e05271a9af6b5 >echo x - inofficial/samba413/files/man/regtree.1 >sed 's/^X//' >inofficial/samba413/files/man/regtree.1 << '234b1bfa1761837a8e9890157d309323' >X'\" t >X.\" Title: regtree >X.\" Author: [see the "AUTHOR" section] >X.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> >X.\" Date: 09/23/2020 >X.\" Manual: System Administration tools >X.\" Source: Samba 4.0 >X.\" Language: English >X.\" >X.TH "REGTREE" "1" "09/23/2020" "Samba 4\&.0" "System Administration tools" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xregtree \- Text\-mode registry viewer >X.SH "SYNOPSIS" >X.HP \w'\fBregtree\fR\ 'u >X\fBregtree\fR [\-\-help] [\-\-backend=BACKEND] [\-\-fullpath] [\-\-no\-values] [\-\-credentials=CREDENTIALS] [location] >X.SH "DESCRIPTION" >X.PP >XThe regtree utility prints out all the contents of a Windows registry file\&. Subkeys are printed with one level more indentation than their parents\&. >X.SH "OPTIONS" >X.PP >X\-\-help >X.RS 4 >XShow list of available options\&. >X.RE >X.PP >X\-\-backend BACKEND >X.RS 4 >XName of backend to load\&. Possible values are: creg, regf, dir and rpc\&. The default is >X\fIdir\fR\&. >X.RE >X.PP >X\-\-credentials=CREDENTIALS >X.RS 4 >XCredentials to use, if any\&. Password should be separated from user name by a percent sign\&. >X.RE >X.PP >X\-\-fullpath >X.RS 4 >XPrint the full path to each key instead of only its name\&. >X.RE >X.PP >X\-\-no\-values >X.RS 4 >XDon\*(Aqt print values, just keys\&. >X.RE >X.SH "VERSION" >X.PP >XThis man page is correct for version 4\&.0 of the Samba suite\&. >X.SH "SEE ALSO" >X.PP >Xgregedit, regshell, regdiff, regpatch, samba >X.SH "AUTHOR" >X.PP >XThis utility is part of the >X\m[blue]\fBSamba\fR\m[]\&\s-2\u[1]\d\s+2 >Xsuite, which is developed by the global >X\m[blue]\fBSamba Team\fR\m[]\&\s-2\u[2]\d\s+2\&. >X.PP >XThis manpage and regtree were written by Jelmer Vernooij\&. >X.SH "NOTES" >X.IP " 1." 4 >XSamba >X.RS 4 >X\%http://www.samba.org/ >X.RE >X.IP " 2." 4 >XSamba Team >X.RS 4 >X\%http://www.samba.org/samba/team/ >X.RE >234b1bfa1761837a8e9890157d309323 >echo x - inofficial/samba413/files/man/ldbedit.1 >sed 's/^X//' >inofficial/samba413/files/man/ldbedit.1 << '4ea434ddae2b2b6c668c4ec8d7c0c159' >X'\" t >X.\" Title: ldbedit >X.\" Author: [see the "AUTHOR" section] >X.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> >X.\" Date: 09/23/2020 >X.\" Manual: System Administration tools >X.\" Source: LDB 1.1 >X.\" Language: English >X.\" >X.TH "LDBEDIT" "1" "09/23/2020" "LDB 1\&.1" "System Administration tools" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xldbedit \- Edit LDB databases using your preferred editor >X.SH "SYNOPSIS" >X.HP \w'\fBldbedit\fR\ 'u >X\fBldbedit\fR [\-?] [\-\-usage] [\-s\ base|one|sub] [\-b\ basedn] [\-a] [\-e\ editor] [\-H\ LDB\-URL] [expression] [attributes...] >X.SH "DESCRIPTION" >X.PP >Xldbedit is a utility that allows you to edit LDB entries (in tdb files, sqlite files or LDAP servers) using your preferred editor\&. ldbedit generates an LDIF file based on your query, allows you to edit the LDIF, and then merges that LDIF back into the LDB backend\&. >X.SH "OPTIONS" >X.PP >X\-?, \-\-help >X.RS 4 >XShow list of available options, and a phrase describing what that option does\&. >X.RE >X.PP >X\-\-usage >X.RS 4 >XShow list of available options\&. This is similar to the help option, however it does not provide any description, and is hence shorter\&. >X.RE >X.PP >X\-H <ldb\-url> >X.RS 4 >XLDB URL to connect to\&. For a tdb database, this will be of the form tdb://\fIfilename\fR\&. For a LDAP connection over unix domain sockets, this will be of the form ldapi://\fIsocket\fR\&. For a (potentially remote) LDAP connection over TCP, this will be of the form ldap://\fIhostname\fR\&. For an SQLite database, this will be of the form sqlite://\fIfilename\fR\&. >X.RE >X.PP >X\-s one|sub|base >X.RS 4 >XSearch scope to use\&. One\-level, subtree or base\&. >X.RE >X.PP >X\-a, \-all >X.RS 4 >XEdit all records\&. This allows you to apply the same change to a number of records at once\&. You probably want to combine this with an expression of the form "objectclass=*"\&. >X.RE >X.PP >X\-e editor, \-\-editor editor >X.RS 4 >XSpecify the editor that should be used (overrides the VISUAL and EDITOR environment variables)\&. If this option is not used, and neither VISUAL nor EDITOR environment variables are set, then the vi editor will be used\&. >X.RE >X.PP >X\-b basedn >X.RS 4 >XSpecify Base Distinguished Name to use\&. >X.RE >X.PP >X\-v, \-\-verbose >X.RS 4 >XMake ldbedit more verbose about the operations that are being performed\&. Without this option, ldbedit will only provide a summary change line\&. >X.RE >X.SH "ENVIRONMENT" >X.PP >XLDB_URL >X.RS 4 >XLDB URL to connect to\&. This can be overridden by using the \-H command\-line option\&.) >X.RE >X.PP >XVISUAL and EDITOR >X.RS 4 >XEnvironment variables used to determine what editor to use\&. VISUAL takes precedence over EDITOR, and both are overridden by the \-e command\-line option\&. >X.RE >X.SH "VERSION" >X.PP >XThis man page is correct for version 1\&.1 of LDB\&. >X.SH "SEE ALSO" >X.PP >Xldb(3), ldbmodify(1), ldbdel(1), ldif(5), vi(1) >X.SH "AUTHOR" >X.PP >Xldb was written by >X\m[blue]\fBAndrew Tridgell\fR\m[]\&\s-2\u[1]\d\s+2\&. >X.PP >XIf you wish to report a problem or make a suggestion then please see the >X\m[blue]\fB\%http://ldb.samba.org/\fR\m[] >Xweb site for current contact and maintainer information\&. >X.PP >XThis manpage was written by Jelmer Vernooij and updated by Brad Hards\&. >X.SH "NOTES" >X.IP " 1." 4 >XAndrew Tridgell >X.RS 4 >X\%https://www.samba.org/~tridge/ >X.RE >4ea434ddae2b2b6c668c4ec8d7c0c159 >echo x - inofficial/samba413/files/man/regshell.1 >sed 's/^X//' >inofficial/samba413/files/man/regshell.1 << 'b8dbd7fe396feb3822832944e36de0a8' >X'\" t >X.\" Title: regshell >X.\" Author: [see the "AUTHOR" section] >X.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> >X.\" Date: 09/23/2020 >X.\" Manual: System Administration tools >X.\" Source: Samba 4.0 >X.\" Language: English >X.\" >X.TH "REGSHELL" "1" "09/23/2020" "Samba 4\&.0" "System Administration tools" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xregshell \- Windows registry file browser using readline >X.SH "SYNOPSIS" >X.HP \w'\fBregshell\fR\ 'u >X\fBregshell\fR [\-\-help] [\-\-backend=BACKEND] [\-\-credentials=CREDENTIALS] [location] >X.SH "DESCRIPTION" >X.PP >Xregshell is a utility that lets you browse thru a Windows registry file as if you were using a regular unix shell to browse thru a file system\&. >X.SH "OPTIONS" >X.PP >X\-\-help >X.RS 4 >XShow list of available options\&. >X.RE >X.PP >X\-\-backend BACKEND >X.RS 4 >XName of backend to load\&. Possible values are: creg, regf, dir and rpc\&. The default is >X\fIdir\fR\&. >X.RE >X.PP >X\-\-credentials=CREDENTIALS >X.RS 4 >XCredentials to use, if any\&. Password should be separated from user name by a percent sign\&. >X.RE >X.SH "COMMANDS" >X.PP >Xck|cd <keyname> >X.RS 4 >XGo to the specified subkey\&. >X.RE >X.PP >Xch|predef [predefined\-key\-name] >X.RS 4 >XGo to the specified predefined key\&. >X.RE >X.PP >Xlist|ls >X.RS 4 >XList subkeys and values of the current key\&. >X.RE >X.PP >Xmkkey|mkdir <keyname> >X.RS 4 >XCreate a key with the specified >X\fIkeyname\fR >Xas a subkey of the current key\&. >X.RE >X.PP >Xrmval|rm <valname> >X.RS 4 >XDelete the specified value\&. >X.RE >X.PP >Xrmkey|rmdir <keyname> >X.RS 4 >XDelete the specified subkey recursively\&. >X.RE >X.PP >Xpwd|pwk >X.RS 4 >XPrint the full name of the current key\&. >X.RE >X.PP >Xset|update >X.RS 4 >XUpdate the value of a key value\&. Not implemented at the moment\&. >X.RE >X.PP >Xhelp|? >X.RS 4 >XPrint a list of available commands\&. >X.RE >X.PP >Xexit|quit >X.RS 4 >XLeave regshell\&. >X.RE >X.SH "EXAMPLES" >X.PP >XBrowsing thru a nt4 registry file >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X\fBregshell \-b nt4 NTUSER\&.DAT\fR >X$$$PROTO\&.HIV> \fBls\fR >XK AppEvents >XK Console >XK Control Panel >XK Environment >XK Identities >XK Keyboard Layout >XK Network >XK Printers >XK Software >XK UNICODE Program Groups >XK Windows 3\&.1 Migration Status >X$$$PROTO\&.HIV> \fBexit\fR >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XListing the subkeys of HKEY_CURRENT_USER\eAppEvents on a remote computer: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X\fBregshell \-\-remote=ncacn_np:aurelia \-c "jelmer%secret"\fR >XHKEY_CURRENT_MACHINE> \fBpredef HKEY_CURRENT_USER\fR >XHKEY_CURRENT_USER> \fBcd AppEvents\fR >XCurrent path is: HKEY_CURRENT_USER\eAppEvents >XHKEY_CURRENT_USER\eAppEvents> \fBls\fR >XK EventLabels >XK Schemes >XHKEY_CURRENT_USER\eAppEvents> \fBexit\fR >X.fi >X.if n \{\ >X.RE >X.\} >X.SH "VERSION" >X.PP >XThis man page is correct for version 4\&.0 of the Samba suite\&. >X.SH "SEE ALSO" >X.PP >Xregtree, regdiff, regpatch, gregedit, samba >X.SH "AUTHOR" >X.PP >XThis utility is part of the >X\m[blue]\fBSamba\fR\m[]\&\s-2\u[1]\d\s+2 >Xsuite, which is developed by the global >X\m[blue]\fBSamba Team\fR\m[]\&\s-2\u[2]\d\s+2\&. >X.PP >XThis manpage and regshell were written by Jelmer Vernooij\&. >X.SH "NOTES" >X.IP " 1." 4 >XSamba >X.RS 4 >X\%http://www.samba.org/ >X.RE >X.IP " 2." 4 >XSamba Team >X.RS 4 >X\%http://www.samba.org/samba/team/ >X.RE >b8dbd7fe396feb3822832944e36de0a8 >echo x - inofficial/samba413/files/man/ctdb.sysconfig.5 >sed 's/^X//' >inofficial/samba413/files/man/ctdb.sysconfig.5 << '0e1f70e47c5b9a7e218851f15b05b641' >X'\" t >X.\" Title: ctdb.sysconfig >X.\" Author: >X.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> >X.\" Date: 09/23/2020 >X.\" Manual: CTDB - clustered TDB database >X.\" Source: ctdb >X.\" Language: English >X.\" >X.TH "CTDB\&.SYSCONFIG" "5" "09/23/2020" "ctdb" "CTDB \- clustered TDB database" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xctdb.sysconfig \- CTDB daemon configuration file >X.SH "DESCRIPTION" >X.PP >XThis file contains configuration that affects the operation of CTDB\&. This is a distribution\-specific service configuration file such as >X/etc/sysconfig/ctdb >X(Red Hat) or >X/etc/default/ctdb >X(Debian) and is a shell script (see >X\fBsh\fR(1))\&. >X.SH "GLOBAL CONFIGURATION" >X.PP >XCTDB_INIT_STYLE=debian|redhat|suse >X.RS 4 >XThis is the init style used by the Linux distribution (or other operating system) being used\&. This is usually determined dynamically by checking the system\&. This variable is used by the initscript to determine which init system primitives to use\&. It is also used by some eventscripts to choose the name of initscripts for certain services, since these can vary between distributions\&. >X.sp >XIf using CTDB\*(Aqs event scripts are unable to determine an appropriate default then this option can also be placed in a relevant >X\fBctdb-script.options\fR(5) >Xfile\&. >X.sp >XDefault: NONE\&. Guessed, based on features of distribution\&. >X.RE >X.PP >XCTDB_STARTUP_TIMEOUT=\fINUM\fR >X.RS 4 >XNUM is the number of seconds to wait for >X\fBctdbd\fR(1) >Xcomplete early initialisation up to a point where it is unlikely to abort\&. If >X\fBctdbd\fR >Xdoesn\*(Aqt complete the "setup" event before this timeout then it is killed\&. >X.sp >XDefaults: 10 >X.RE >X.SH "RESOURCE LIMITS" >X.SS "Maximum number of open files" >X.PP >XCTDB can use a lot of file descriptors, especially when used with Samba\&. If there are thousands of smbd processes connected to CTDB when this can mean that thousands of file descriptors are used\&. For CTDB, it is often necessary to increase limit on the maximum number of open files\&. >X.PP >XThe maximum number of open files should be configured using an operating system mechanism\&. >X.PP >Xsystemd >X.RS 4 >XThe >XLimitNOFILE=\fBLIMIT\fR >Xoption can be used in a unit/service file increase the maximum number of open files\&. See >X\fBsystemd.exec\fR(5) >Xfor details\&. >X.RE >X.PP >XSYSV init >X.RS 4 >XUse a command like >X\fBulimit \-n \fR\fB\fBLIMIT\fR\fR >Xto increase the maximum number of open files\&. This command can be put in the relevant distribution\-specific service configuration file\&. >X.RE >X.SS "Allowing core dumps" >X.PP >XMany distributions do not allow core dump files to be generated by default\&. To assist with debugging, core files can be enabled\&. This should be configured using an operating system mechanism\&. >X.PP >Xsystemd >X.RS 4 >XThe >XLimitCORE=0|unlimited >Xoption can be used in a unit/service file\&. >X0 >Xdisallows core files, >Xunlimited >Xallows them\&. maximum number of open files\&. See >X\fBsystemd.exec\fR(5) >Xfor details\&. >X.RE >X.PP >XSYSV init >X.RS 4 >XUse a command like >X\fBulimit \-c 0|unlimited\fR >Xto disable or enable core files as required\&. This command can be put in the relevant distribution\-specific service configuration file\&. >X.RE >X.SH "FILES" >X.RS 4 >X/etc/sysconfig/ctdb >X.RE >X.RS 4 >X/etc/default/ctdb >X.RE >X.RS 4 >X/usr/local/etc/ctdb/script\&.options >X.RE >X.SH "SEE ALSO" >X.PP >X\fBctdbd\fR(1), >X\fBctdb-script.options\fR(5), >X\fBctdb\fR(7), >X\m[blue]\fB\%http://ctdb.samba.org/\fR\m[] >X.SH "AUTHOR" >X.br >X.PP >XThis documentation was written by Martin Schwenke >X.SH "COPYRIGHT" >X.br >XCopyright \(co 2007 Andrew Tridgell, Ronnie Sahlberg >X.br >X.PP >XThis program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version\&. >X.PP >XThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&. See the GNU General Public License for more details\&. >X.PP >XYou should have received a copy of the GNU General Public License along with this program; if not, see >X\m[blue]\fB\%http://www.gnu.org/licenses\fR\m[]\&. >X.sp >0e1f70e47c5b9a7e218851f15b05b641 >echo x - inofficial/samba413/files/man/ctdb.conf.5 >sed 's/^X//' >inofficial/samba413/files/man/ctdb.conf.5 << 'd237a18efc05ea7da38726aceadb6f18' >X'\" t >X.\" Title: ctdb.conf >X.\" Author: >X.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> >X.\" Date: 09/23/2020 >X.\" Manual: CTDB - clustered TDB database >X.\" Source: ctdb >X.\" Language: English >X.\" >X.TH "CTDB\&.CONF" "5" "09/23/2020" "ctdb" "CTDB \- clustered TDB database" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xctdb.conf \- CTDB configuration file >X.SH "DESCRIPTION" >X.PP >XThis file contains CTDB configuration options that affect the operation of CTDB daemons and command\-line tools\&. The default location of this file is >X/usr/local/etc/ctdb/ctdb\&.conf\&. >X.PP >XNote that this is a Samba\-style configuration file, so it has a very different syntax to previous CTDB configuration files\&. >X.PP >XFor event script options please see >X\fBctdb-script.options\fR(5)\&. >X.PP >XConfiguration options are grouped into several sections below\&. There are only a few options in each section, allowing them to be ordered (approximately) in decreasing order of importance\&. >X.SH "LOGGING CONFIGURATION" >X.PP >XOptions in this section control CTDB\*(Aqs logging\&. They are valid within the >X\fIlogging\fR >Xsection of file, indicated by >X[logging]\&. >X.PP >Xlog level = \fILOGLEVEL\fR >X.RS 4 >XLOGLEVEL is a string that controls the verbosity of ctdbd\*(Aqs logging\&. See the >XLOG LEVELS >Xsection in >X\fBctdb\fR(7) >Xfor more details\&. >X.sp >XDefault: >XNOTICE >X.RE >X.PP >Xlocation = \fISTRING\fR >X.RS 4 >XSTRING specifies where ctdbd will write its log\&. >X.sp >XValid values are: >X.PP >Xfile:\fIFILENAME\fR >X.RS 4 >XFILENAME where ctdbd will write its log\&. This is usually >X/var/log/log\&.ctdb\&. >X.RE >X.PP >Xsyslog[:\fIMETHOD\fR] >X.RS 4 >XCTDB will log to syslog\&. By default this will use the syslog(3) API\&. >X.sp >XIf METHOD is specified then it specifies an extension that causes logging to be done in a non\-blocking fashion\&. This can be useful under heavy loads that might cause the syslog daemon to dequeue messages too slowly, which would otherwise cause CTDB to block when logging\&. METHOD must be one of: >X.PP >Xnonblocking >X.RS 4 >XCTDB will log to syslog via >X/dev/log >Xin non\-blocking mode\&. >X.RE >X.PP >Xudp >X.RS 4 >XCTDB will log to syslog via UDP to localhost:514\&. The syslog daemon must be configured to listen on (at least) localhost:514\&. Most implementations will log the messages against hostname "localhost" \- this is a limit of the implementation for compatibility with more syslog daemon implementations\&. >X.RE >X.PP >Xudp\-rfc5424 >X.RS 4 >XAs with "udp" but messages are sent in RFC5424 format\&. This method will log the correct hostname but is not as widely implemented in syslog daemons\&. >X.RE >X.RE >X.sp >XDefault: file:/var/log/log\&.ctdb >X.RE >X.SH "CLUSTER CONFIGURATION" >X.PP >XOptions in this section affect the CTDB cluster setup\&. They are valid within the >X\fIcluster\fR >Xsection of file, indicated by >X[cluster]\&. >X.PP >Xrecovery lock = \fILOCK\fR >X.RS 4 >XLOCK specifies the cluster\-wide mutex used to detect and prevent a partitioned cluster (or "split brain")\&. >X.sp >XFor information about the recovery lock please see the >XRECOVERY LOCK >Xsection in >X\fBctdb\fR(7)\&. >X.sp >XDefault: NONE\&. However, uses of a recovery lock is >X\fIstrongly recommended\fR\&. >X.RE >X.PP >Xnode address = \fIIPADDR\fR >X.RS 4 >XIPADDR is the private IP address that ctdbd will bind to\&. >X.sp >XThis option is only required when automatic address detection can not be used\&. This can be the case when running multiple ctdbd daemons/nodes on the same physical host (usually for testing), using InfiniBand for the private network or on Linux when sysctl net\&.ipv4\&.ip_nonlocal_bind=1\&. >X.sp >XDefault: CTDB selects the first address from the nodes list that it can bind to\&. See also the >XPRIVATE ADDRESS >Xsection in >X\fBctdb\fR(7)\&. >X.RE >X.PP >Xtransport = tcp|ib >X.RS 4 >XThis option specifies which transport to use for ctdbd internode communications on the private network\&. >X.sp >Xib >Xmeans InfiniBand\&. The InfiniBand support is not regularly tested\&. If it is known to be broken then it may be disabled so that a value of >Xib >Xis considered invalid\&. >X.sp >XDefault: >Xtcp >X.RE >X.SH "DATABASE CONFIGURATION" >X.PP >XOptions in this section affect the CTDB database setup\&. They are valid within the >X\fIdatabase\fR >Xsection of file, indicated by >X[database]\&. >X.PP >Xvolatile database directory = \fIDIRECTORY\fR >X.RS 4 >XDIRECTORY on local storage where CTDB keeps a local copy of volatile TDB databases\&. This directory is local for each node and should not be stored on the shared cluster filesystem\&. >X.sp >XMounting a tmpfs (or similar memory filesystem) on this directory can provide a significant performance improvement when there is I/O contention on the local disk\&. >X.sp >XDefault: >X/var/lib/ctdb/volatile >X.RE >X.PP >Xpersistent database directory=\fIDIRECTORY\fR >X.RS 4 >XDIRECTORY on local storage where CTDB keeps a local copy of persistent TDB databases\&. This directory is local for each node and should not be stored on the shared cluster filesystem\&. >X.sp >XDefault: >X/var/lib/ctdb/persistent >X.RE >X.PP >Xstate database directory = \fIDIRECTORY\fR >X.RS 4 >XDIRECTORY on local storage where CTDB keeps a local copy of internal state TDB databases\&. This directory is local for each node and should not be stored on the shared cluster filesystem\&. >X.sp >XDefault: >X/var/lib/ctdb/state >X.RE >X.PP >Xtdb mutexes = true|false >X.RS 4 >XThis parameter enables TDB_MUTEX_LOCKING feature on volatile databases if the robust mutexes are supported\&. This optimizes the record locking using robust mutexes and is much more efficient that using posix locks\&. >X.sp >XIf robust mutexes are unreliable on the platform being used then they can be disabled by setting this to >Xfalse\&. >X.RE >X.PP >Xlock debug script = \fIFILENAME\fR >X.RS 4 >XFILENAME is a script used by CTDB\*(Aqs database locking code to attempt to provide debugging information when CTDB is unable to lock an entire database or a record\&. >X.sp >XThis script should be a bare filename relative to the CTDB configuration directory (/usr/local/etc/ctdb/)\&. Any directory prefix is ignored and the path is calculated relative to this directory\&. >X.sp >XCTDB provides a lock debugging script and installs it as >X/usr/local/etc/ctdb/debug_locks\&.sh\&. >X.sp >XDefault: NONE >X.RE >X.SH "EVENT HANDLING CONFIGURATION" >X.PP >XOptions in this section affect CTDB event handling\&. They are valid within the >X\fIevent\fR >Xsection of file, indicated by >X[event]\&. >X.PP >Xdebug script = \fIFILENAME\fR >X.RS 4 >XFILENAME is a script used by CTDB\*(Aqs event handling code to attempt to provide debugging information when an event times out\&. >X.sp >XThis script should be a bare filename relative to the CTDB configuration directory (/usr/local/etc/ctdb/)\&. Any directory prefix is ignored and the path is calculated relative to this directory\&. >X.sp >XCTDB provides a script for debugging timed out event scripts and installs it as >X/usr/local/etc/ctdb/debug\-hung\-script\&.sh\&. >X.sp >XDefault: NONE >X.RE >X.SH "FAILOVER CONFIGURATION" >X.PP >XOptions in this section affect CTDB failover\&. They are valid within the >X\fIfailover\fR >Xsection of file, indicated by >X[failover]\&. >X.PP >Xdisabled = true|false >X.RS 4 >XIf set to >Xtrue >Xthen public IP failover is disabled\&. >X.sp >XDefault: >Xfalse >X.RE >X.SH "LEGACY CONFIGURATION" >X.PP >XOptions in this section affect legacy CTDB setup\&. They are valid within the >X\fIlegacy\fR >Xsection of file, indicated by >X[legacy]\&. >X.PP >Xctdb start as stopped = true|false >X.RS 4 >XIf set to >Xtrue >XCTDB starts in the STOPPED state\&. >X.sp >XTo allow the node to take part in the cluster it must be manually continued with the >X\fBctdb continue\fR >Xcommand\&. >X.sp >XPlease see the >XNODE STATES >Xsection in >X\fBctdb\fR(7) >Xfor more information about the STOPPED state\&. >X.sp >XDefault: >Xfalse >X.RE >X.PP >Xstart as disabled = true|false >X.RS 4 >XIf set to >Xtrue >XCTDB starts in the DISABLED state\&. >X.sp >XTo allow the node to host public IP addresses and services, it must be manually enabled using the >X\fBctdb enable\fR >Xcommand\&. >X.sp >XPlease see the >XNODE STATES >Xsection in >X\fBctdb\fR(7) >Xfor more information about the DISABLED state\&. >X.sp >XDefault: >Xfalse >X.RE >X.PP >Xrealtime scheduling = true|false >X.RS 4 >XUsually CTDB runs with real\-time priority\&. This helps it to perform effectively on a busy system, such as when there are thousands of Samba clients\&. If you are running CTDB on a platform that does not support real\-time priority, you can set this to >Xfalse\&. >X.sp >XDefault: >Xtrue >X.RE >X.PP >Xrecmaster capability = true|false >X.RS 4 >XIndicates whether a node can become the recovery master for the cluster\&. If this is set to >Xfalse >Xthen the node will not be able to become the recovery master for the cluster\&. This feature is primarily used for making a cluster span across a WAN link and use CTDB as a WAN\-accelerator\&. >X.sp >XPlease see the >XREMOTE CLUSTER NODES >Xsection in >X\fBctdb\fR(7) >Xfor more information\&. >X.sp >XDefault: >Xtrue >X.RE >X.PP >Xlmaster capability = true|false >X.RS 4 >XIndicates whether a node can become a location master for records in a database\&. If this is set to >Xfalse >Xthen the node will not be part of the vnnmap\&. This feature is primarily used for making a cluster span across a WAN link and use CTDB as a WAN\-accelerator\&. >X.sp >XPlease see the >XREMOTE CLUSTER NODES >Xsection in >X\fBctdb\fR(7) >Xfor more information\&. >X.sp >XDefault: >Xtrue >X.RE >X.PP >Xscript log level = \fILOGLEVEL\fR >X.RS 4 >XThis option sets the debug level of event script output to LOGLEVEL\&. >X.sp >XSee the >XDEBUG LEVELS >Xsection in >X\fBctdb\fR(7) >Xfor more information\&. >X.sp >XDefault: >XERROR >X.RE >X.SH "FILES" >X.RS 4 >X/usr/local/etc/ctdb/ctdb\&.conf >X.RE >X.SH "SEE ALSO" >X.PP >X\fBctdbd\fR(1), >X\fBonnode\fR(1), >X\fBctdb.sysconfig\fR(5), >X\fBctdb-script.options\fR(5), >X\fBctdb\fR(7), >X\fBctdb-tunables\fR(7), >X\m[blue]\fB\%http://ctdb.samba.org/\fR\m[] >X.SH "AUTHOR" >X.br >X.PP >XThis documentation was written by Amitay Isaacs, Martin Schwenke >X.SH "COPYRIGHT" >X.br >XCopyright \(co 2007 Andrew Tridgell, Ronnie Sahlberg >X.br >X.PP >XThis program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version\&. >X.PP >XThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&. See the GNU General Public License for more details\&. >X.PP >XYou should have received a copy of the GNU General Public License along with this program; if not, see >X\m[blue]\fB\%http://www.gnu.org/licenses\fR\m[]\&. >X.sp >d237a18efc05ea7da38726aceadb6f18 >echo x - inofficial/samba413/files/man/samba-gpupdate.8 >sed 's/^X//' >inofficial/samba413/files/man/samba-gpupdate.8 << '239075c7eef662b18bfd8d68e0cff216' >X'\" t >X.\" Title: SAMBA_GPOUPDATE >X.\" Author: [see the "AUTHOR" section] >X.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> >X.\" Date: 2017-07-11 >X.\" Manual: System Administration tools >X.\" Source: Samba 4.8.0 >X.\" Language: English >X.\" >X.TH "SAMBA_GPOUPDATE" "8" "2017\-07\-11" "Samba 4\&.8\&.0" "System Administration tools" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xsamba-gpupdate \- apply group policy >X.SH "SYNOPSIS" >X.HP \w'\fBsamba\-gpupdate\fR\ 'u >X\fBsamba\-gpupdate\fR >X.HP \w'\fBsamba\-gpupdate\fR\ 'u >X\fBsamba\-gpupdate\fR [\fIoptions\fR] >X.SH "DESCRIPTION" >X.PP >XThis tool is part of the >X\fBsamba\fR(1) >Xsuite\&. >X.PP >X\fBsamba\-gpupdate\fR >Xa script for applying and unapplying Group Policy\&. Group Policy application is experimental\&. Currently this applies password policies (minimum/maximum password age, minimum password length, and password complexity) and kerberos policies (user/service ticket lifetime and renew lifetime)\&. >X.SH "OPTIONS" >X.PP >X\fB\-h\fR, >X\fB\-\-help\fR >Xshow this help message and exit >X.PP >X\fB\-H \fRURL, >X\fB\-\-url\fR=\fIURL\fR >XURL for the samdb >X.PP >X\fB\-X\fR, >X\fB\-\-unapply\fR >XUnapply Group Policy >X.PP >X\fB\-\-target\fR >X{Computer | User} >X.PP >XSamba Common Options: >X.PP >X\fB\-s \fRFILE, >X\fB\-\-configfile\fR=\fIFILE\fR >XConfiguration file >X.PP >X\fB\-d \fRDEBUGLEVEL, >X\fB\-\-debuglevel\fR=\fIDEBUGLEVEL\fR >Xdebug level >X.PP >X\fB\-\-option\fR=\fIOPTION\fR >Xset smb\&.conf option from command line >X.PP >X\fB\-\-realm\fR=\fIREALM\fR >Xset the realm name >X.PP >XVersion Options: >X.PP >X\fB\-V\fR, >X\fB\-\-version\fR >XDisplay version number >X.PP >XCredentials Options: >X.PP >X\fB\-\-simple\-bind\-dn\fR=\fIDN\fR >XDN to use for a simple bind >X.PP >X\fB\-\-password\fR=\fIPASSWORD\fR >XPassword >X.PP >X\fB\-U \fRUSERNAME, >X\fB\-\-username\fR=\fIUSERNAME\fR >XUsername >X.PP >X\fB\-W \fRWORKGROUP, >X\fB\-\-workgroup\fR=\fIWORKGROUP\fR >XWorkgroup >X.PP >X\fB\-N\fR, >X\fB\-\-no\-pass\fR >XDon\*(Aqt ask for a password >X.PP >X\fB\-k \fRKERBEROS, >X\fB\-\-kerberos\fR=\fIKERBEROS\fR >XUse Kerberos >X.PP >X\fB\-\-ipaddress\fR=\fIIPADDRESS\fR >XIP address of server >X.PP >X\fB\-P\fR, >X\fB\-\-machine\-pass\fR >XUse stored machine account password >X.SH "AUTHOR" >X.PP >XThe original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&. >239075c7eef662b18bfd8d68e0cff216 >echo x - inofficial/samba413/files/man/nmblookup4.1 >sed 's/^X//' >inofficial/samba413/files/man/nmblookup4.1 << '400f764f56d5a2e3387e53dabf8ff6d4' >X'\" t >X.\" Title: nmblookup4 >X.\" Author: [see the "AUTHOR" section] >X.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> >X.\" Date: 03/24/2017 >X.\" Manual: User Commands >X.\" Source: Samba 3.2 >X.\" Language: English >X.\" >X.TH "NMBLOOKUP4" "1" "03/24/2017" "Samba 3\&.2" "User Commands" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xnmblookup4 \- NetBIOS over TCP/IP client used to lookup NetBIOS names >X.SH "SYNOPSIS" >X.HP \w'\fBnmblookup4\fR\ 'u >X\fBnmblookup4\fR [\-M] [\-R] [\-S] [\-r] [\-A] [\-h] [\-B\ <broadcast\ address>] [\-U\ <unicast\ address>] [\-d\ <debug\ level>] [\-s\ <smb\ config\ file>] [\-i\ <NetBIOS\ scope>] [\-T] [\-f] {name} >X.SH "DESCRIPTION" >X.PP >XThis tool is part of the >X\fBsamba\fR(7) >Xsuite\&. >X.PP >X\fBnmblookup4\fR >Xis used to query NetBIOS names and map them to IP addresses in a network using NetBIOS over TCP/IP queries\&. The options allow the name queries to be directed at a particular IP broadcast area or to a particular machine\&. All queries are done over UDP\&. >X.SH "OPTIONS" >X.PP >X\-M >X.RS 4 >XSearches for a master browser by looking up the NetBIOS >X\fIname\fR >Xwith a type of >X\fB0x1d\fR\&. If >X\fI name\fR >Xis "\-" then it does a lookup on the special name >X\fB__MSBROWSE__\fR\&. Please note that in order to use the name "\-", you need to make sure "\-" isn\*(Aqt parsed as an argument, e\&.g\&. use : >X\fBnmblookup4 \-M \-\- \-\fR\&. >X.RE >X.PP >X\-R >X.RS 4 >XSet the recursion desired bit in the packet to do a recursive lookup\&. This is used when sending a name query to a machine running a WINS server and the user wishes to query the names in the WINS server\&. If this bit is unset the normal (broadcast responding) NetBIOS processing code on a machine is used instead\&. See RFC1001, RFC1002 for details\&. >X.RE >X.PP >X\-S >X.RS 4 >XOnce the name query has returned an IP address then do a node status query as well\&. A node status query returns the NetBIOS names registered by a host\&. >X.RE >X.PP >X\-r >X.RS 4 >XTry and bind to UDP port 137 to send and receive UDP datagrams\&. The reason for this option is a bug in Windows 95 where it ignores the source port of the requesting packet and only replies to UDP port 137\&. Unfortunately, on most UNIX systems root privilege is needed to bind to this port, and in addition, if the >X\fBnmbd\fR(8) >Xdaemon is running on this machine it also binds to this port\&. >X.RE >X.PP >X\-A >X.RS 4 >XInterpret >X\fIname\fR >Xas an IP Address and do a node status query on this address\&. >X.RE >X.PP >X\-B <broadcast address> >X.RS 4 >XSend the query to the given broadcast address\&. Without this option the default behavior of nmblookup4 is to send the query to the broadcast address of the network interfaces as either auto\-detected or defined in the >X\m[blue]\fB\fIinterfaces\fR\fR\m[]\&\s-2\u[1]\d\s+2 >Xparameter of the >X\fBsmb.conf\fR(5) >Xfile\&. >X.RE >X.PP >X\-U <unicast address> >X.RS 4 >XDo a unicast query to the specified address or host >X\fIunicast address\fR\&. This option (along with the >X\fI\-R\fR >Xoption) is needed to query a WINS server\&. >X.RE >X.PP >X\-T >X.RS 4 >XThis causes any IP addresses found in the lookup to be looked up via a reverse DNS lookup into a DNS name, and printed out before each >X.sp >X\fIIP address \&.\&.\&.\&. NetBIOS name\fR >X.sp >Xpair that is the normal output\&. >X.RE >X.PP >X\-f >X.RS 4 >XShow which flags apply to the name that has been looked up\&. Possible answers are zero or more of: Response, Authoritative, Truncated, Recursion_Desired, Recursion_Available, Broadcast\&. >X.RE >X.PP >Xname >X.RS 4 >XThis is the NetBIOS name being queried\&. Depending upon the previous options this may be a NetBIOS name or IP address\&. If a NetBIOS name then the different name types may be specified by appending \*(Aq#<type>\*(Aq to the name\&. This name may also be \*(Aq*\*(Aq, which will return all registered names within a broadcast area\&. >X.RE >X.SH "EXAMPLES" >X.PP >X\fBnmblookup4\fR >Xcan be used to query a WINS server (in the same way >X\fBnslookup\fR >Xis used to query DNS servers)\&. To query a WINS server, >X\fBnmblookup4\fR >Xmust be called like this: >X.PP >X\fBnmblookup4 \-U server \-R \*(Aqname\*(Aq\fR >X.PP >XFor example, running : >X.PP >X\fBnmblookup4 \-U samba\&.org \-R \*(AqIRIX#1B\*(Aq\fR >X.PP >Xwould query the WINS server samba\&.org for the domain master browser (1B name type) for the IRIX workgroup\&. >X.SH "VERSION" >X.PP >XThis man page is correct for version 3 of the Samba suite\&. >X.SH "SEE ALSO" >X.PP >X\fBnmbd\fR(8), >X\fBsamba\fR(7), and >X\fBsmb.conf\fR(5)\&. >X.SH "AUTHOR" >X.PP >XThe original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&. >X.PP >XThe original Samba man pages were written by Karl Auer\&. The man page sources were converted to YODL format (another excellent piece of Open Source software, available at >X\m[blue]\fBftp://ftp\&.icce\&.rug\&.nl/pub/unix/\fR\m[]\&\s-2\u[2]\d\s+2) and updated for the Samba 2\&.0 release by Jeremy Allison\&. The conversion to DocBook for Samba 2\&.2 was done by Gerald Carter\&. The conversion to DocBook XML 4\&.2 for Samba 3\&.0 was done by Alexander Bokovoy\&. >X.SH "NOTES" >X.IP " 1." 4 >X\fIinterfaces\fR >X >X.RS 4 >X\%[set $man.base.url.for.relative.links]/smb.conf.5.html#INTERFACES >X.RE >X.IP " 2." 4 >Xftp://ftp.icce.rug.nl/pub/unix/ >X.RS 4 >X\%ftp://ftp.icce.rug.nl/pub/unix/ >X.RE >400f764f56d5a2e3387e53dabf8ff6d4 >echo x - inofficial/samba413/files/man/ntlm_auth.1 >sed 's/^X//' >inofficial/samba413/files/man/ntlm_auth.1 << 'fa123ac5f3b74aa6c282e9c536f66858' >X'\" t >X.\" Title: ntlm_auth >X.\" Author: [see the "AUTHOR" section] >X.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> >X.\" Date: 09/23/2020 >X.\" Manual: User Commands >X.\" Source: Samba 4.12.7 >X.\" Language: English >X.\" >X.TH "NTLM_AUTH" "1" "09/23/2020" "Samba 4\&.12\&.7" "User Commands" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xntlm_auth \- tool to allow external access to Winbind\*(Aqs NTLM authentication function >X.SH "SYNOPSIS" >X.HP \w'\ 'u >Xntlm_auth >X.SH "DESCRIPTION" >X.PP >XThis tool is part of the >X\fBsamba\fR(7) >Xsuite\&. >X.PP >Xntlm_auth >Xis a helper utility that authenticates users using NT/LM authentication\&. It returns 0 if the users is authenticated successfully and 1 if access was denied\&. ntlm_auth uses winbind to access the user and authentication data for a domain\&. This utility is only intended to be used by other programs (currently >XSquid >Xand >Xmod_ntlm_winbind) >X.SH "OPERATIONAL REQUIREMENTS" >X.PP >XThe >X\fBwinbindd\fR(8) >Xdaemon must be operational for many of these commands to function\&. >X.PP >XSome of these commands also require access to the directory >Xwinbindd_privileged >Xin >X$LOCKDIR\&. This should be done either by running this command as root or providing group access to the >Xwinbindd_privileged >Xdirectory\&. For security reasons, this directory should not be world\-accessable\&. >X.SH "OPTIONS" >X.PP >X\-\-helper\-protocol=PROTO >X.RS 4 >XOperate as a stdio\-based helper\&. Valid helper protocols are: >X.PP >Xsquid\-2\&.4\-basic >X.RS 4 >XServer\-side helper for use with Squid 2\&.4\*(Aqs basic (plaintext) authentication\&. >X.RE >X.PP >Xsquid\-2\&.5\-basic >X.RS 4 >XServer\-side helper for use with Squid 2\&.5\*(Aqs basic (plaintext) authentication\&. >X.RE >X.PP >Xsquid\-2\&.5\-ntlmssp >X.RS 4 >XServer\-side helper for use with Squid 2\&.5\*(Aqs NTLMSSP authentication\&. >X.sp >XRequires access to the directory >Xwinbindd_privileged >Xin >X$LOCKDIR\&. The protocol used is described here: >Xhttp://devel\&.squid\-cache\&.org/ntlm/squid_helper_protocol\&.html\&. This protocol has been extended to allow the NTLMSSP Negotiate packet to be included as an argument to the >XYR >Xcommand\&. (Thus avoiding loss of information in the protocol exchange)\&. >X.RE >X.PP >Xntlmssp\-client\-1 >X.RS 4 >XClient\-side helper for use with arbitrary external programs that may wish to use Samba\*(Aqs NTLMSSP authentication knowledge\&. >X.sp >XThis helper is a client, and as such may be run by any user\&. The protocol used is effectively the reverse of the previous protocol\&. A >XYR >Xcommand (without any arguments) starts the authentication exchange\&. >X.RE >X.PP >Xgss\-spnego >X.RS 4 >XServer\-side helper that implements GSS\-SPNEGO\&. This uses a protocol that is almost the same as >Xsquid\-2\&.5\-ntlmssp, but has some subtle differences that are undocumented outside the source at this stage\&. >X.sp >XRequires access to the directory >Xwinbindd_privileged >Xin >X$LOCKDIR\&. >X.RE >X.PP >Xgss\-spnego\-client >X.RS 4 >XClient\-side helper that implements GSS\-SPNEGO\&. This also uses a protocol similar to the above helpers, but is currently undocumented\&. >X.RE >X.PP >Xntlm\-server\-1 >X.RS 4 >XServer\-side helper protocol, intended for use by a RADIUS server or the \*(Aqwinbind\*(Aq plugin for pppd, for the provision of MSCHAP and MSCHAPv2 authentication\&. >X.sp >XThis protocol consists of lines in the form: >XParameter: value >Xand >XParameter:: Base64\-encode value\&. The presence of a single period >X\&. >Xindicates that one side has finished supplying data to the other\&. (Which in turn could cause the helper to authenticate the user)\&. >X.sp >XCurrently implemented parameters from the external program to the helper are: >X.PP >XUsername >X.RS 4 >XThe username, expected to be in Samba\*(Aqs >X\m[blue]\fBunix charset\fR\m[]\&. >X.PP >XExamples: >X.RS 4 >XUsername: bob >X.sp >XUsername:: Ym9i >X.RE >X.RE >X.PP >XNT\-Domain >X.RS 4 >XThe user\*(Aqs domain, expected to be in Samba\*(Aqs >X\m[blue]\fBunix charset\fR\m[]\&. >X.PP >XExamples: >X.RS 4 >XNT\-Domain: WORKGROUP >X.sp >XNT\-Domain:: V09SS0dST1VQ >X.RE >X.RE >X.PP >XFull\-Username >X.RS 4 >XThe fully qualified username, expected to be in Samba\*(Aqs >X\m[blue]\fBunix charset\fR\m[] >Xand qualified with the >X\m[blue]\fBwinbind separator\fR\m[]\&. >X.PP >XExamples: >X.RS 4 >XFull\-Username: WORKGROUP\ebob >X.sp >XFull\-Username:: V09SS0dST1VQYm9i >X.RE >X.RE >X.PP >XLANMAN\-Challenge >X.RS 4 >XThe 8 byte >XLANMAN Challenge >Xvalue, generated randomly by the server, or (in cases such as MSCHAPv2) generated in some way by both the server and the client\&. >X.PP >XExamples: >X.RS 4 >XLANMAN\-Challenge: 0102030405060708 >X.RE >X.RE >X.PP >XLANMAN\-Response >X.RS 4 >XThe 24 byte >XLANMAN Response >Xvalue, calculated from the user\*(Aqs password and the supplied >XLANMAN Challenge\&. Typically, this is provided over the network by a client wishing to authenticate\&. >X.PP >XExamples: >X.RS 4 >XLANMAN\-Response: 0102030405060708090A0B0C0D0E0F101112131415161718 >X.RE >X.RE >X.PP >XNT\-Response >X.RS 4 >XThe >= 24 byte >XNT Response >Xcalculated from the user\*(Aqs password and the supplied >XLANMAN Challenge\&. Typically, this is provided over the network by a client wishing to authenticate\&. >X.PP >XExamples: >X.RS 4 >XNT\-Response: 0102030405060708090A0B0C0D0E0F10111213141516171 >X.RE >X.RE >X.PP >XPassword >X.RS 4 >XThe user\*(Aqs password\&. This would be provided by a network client, if the helper is being used in a legacy situation that exposes plaintext passwords in this way\&. >X.PP >XExamples: >X.RS 4 >XPassword: samba2 >X.sp >XPassword:: c2FtYmEy >X.RE >X.RE >X.PP >XRequest\-User\-Session\-Key >X.RS 4 >XUpon successful authentication, return the user session key associated with the login\&. >X.PP >XExamples: >X.RS 4 >XRequest\-User\-Session\-Key: Yes >X.RE >X.RE >X.PP >XRequest\-LanMan\-Session\-Key >X.RS 4 >XUpon successful authentication, return the LANMAN session key associated with the login\&. >X.PP >XExamples: >X.RS 4 >XRequest\-LanMan\-Session\-Key: Yes >X.RE >X.RE >X.RE >X.sp >X.if n \{\ >X.sp >X.\} >X.RS 4 >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBWarning\fR >X.ps -1 >X.br >XImplementers should take care to base64 encode any data (such as usernames/passwords) that may contain malicious user data, such as a newline\&. They may also need to decode strings from the helper, which likewise may have been base64 encoded\&. >X.sp .5v >X.RE >X.RE >X.PP >X\-\-username=USERNAME >X.RS 4 >XSpecify username of user to authenticate >X.RE >X.PP >X\-\-domain=DOMAIN >X.RS 4 >XSpecify domain of user to authenticate >X.RE >X.PP >X\-\-workstation=WORKSTATION >X.RS 4 >XSpecify the workstation the user authenticated from >X.RE >X.PP >X\-\-challenge=STRING >X.RS 4 >XNTLM challenge (in HEXADECIMAL) >X.RE >X.PP >X\-\-lm\-response=RESPONSE >X.RS 4 >XLM Response to the challenge (in HEXADECIMAL) >X.RE >X.PP >X\-\-nt\-response=RESPONSE >X.RS 4 >XNT or NTLMv2 Response to the challenge (in HEXADECIMAL) >X.RE >X.PP >X\-\-password=PASSWORD >X.RS 4 >XUser\*(Aqs plaintext password >X.sp >XIf not specified on the command line, this is prompted for when required\&. >X.sp >XFor the NTLMSSP based server roles, this parameter specifies the expected password, allowing testing without winbindd operational\&. >X.RE >X.PP >X\-\-request\-lm\-key >X.RS 4 >XRetrieve LM session key >X.RE >X.PP >X\-\-request\-nt\-key >X.RS 4 >XRequest NT key >X.RE >X.PP >X\-\-diagnostics >X.RS 4 >XPerform Diagnostics on the authentication chain\&. Uses the password from >X\-\-password >Xor prompts for one\&. >X.RE >X.PP >X\-\-require\-membership\-of={SID|Name} >X.RS 4 >XRequire that a user be a member of specified group (either name or SID) for authentication to succeed\&. >X.RE >X.PP >X\-\-pam\-winbind\-conf=FILENAME >X.RS 4 >XDefine the path to the pam_winbind\&.conf file\&. >X.RE >X.PP >X\-\-target\-hostname=HOSTNAME >X.RS 4 >XDefine the target hostname\&. >X.RE >X.PP >X\-\-target\-service=SERVICE >X.RS 4 >XDefine the target service\&. >X.RE >X.PP >X\-\-use\-cached\-creds >X.RS 4 >XWhether to use credentials cached by winbindd\&. >X.RE >X.PP >X\-\-allow\-mschapv2 >X.RS 4 >XExplicitly allow MSCHAPv2\&. >X.RE >X.PP >X\-\-offline\-logon >X.RS 4 >XAllow offline logons for plain text auth\&. >X.RE >X.PP >X\-\-configfile=<configuration file> >X.RS 4 >XThe file specified contains the configuration details required by the server\&. The information in this file includes server\-specific information such as what printcap file to use, as well as descriptions of all the services that the server is to provide\&. See >Xsmb\&.conf >Xfor more information\&. The default configuration file name is determined at compile time\&. >X.RE >X.PP >X\-V|\-\-version >X.RS 4 >XPrints the program version number\&. >X.RE >X.PP >X\-?|\-\-help >X.RS 4 >XPrint a summary of command line options\&. >X.RE >X.PP >X\-\-usage >X.RS 4 >XDisplay brief usage message\&. >X.RE >X.SH "EXAMPLE SETUP" >X.PP >XTo setup ntlm_auth for use by squid 2\&.5, with both basic and NTLMSSP authentication, the following should be placed in the >Xsquid\&.conf >Xfile\&. >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >Xauth_param ntlm program ntlm_auth \-\-helper\-protocol=squid\-2\&.5\-ntlmssp >Xauth_param basic program ntlm_auth \-\-helper\-protocol=squid\-2\&.5\-basic >Xauth_param basic children 5 >Xauth_param basic realm Squid proxy\-caching web server >Xauth_param basic credentialsttl 2 hours >X.fi >X.if n \{\ >X.RE >X.\} >X.if n \{\ >X.sp >X.\} >X.RS 4 >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBNote\fR >X.ps -1 >X.br >X.PP >XThis example assumes that ntlm_auth has been installed into your path, and that the group permissions on >Xwinbindd_privileged >Xare as described above\&. >X.sp .5v >X.RE >X.PP >XTo setup ntlm_auth for use by squid 2\&.5 with group limitation in addition to the above example, the following should be added to the >Xsquid\&.conf >Xfile\&. >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >Xauth_param ntlm program ntlm_auth \-\-helper\-protocol=squid\-2\&.5\-ntlmssp \-\-require\-membership\-of=\*(AqWORKGROUP\eDomain Users\*(Aq >Xauth_param basic program ntlm_auth \-\-helper\-protocol=squid\-2\&.5\-basic \-\-require\-membership\-of=\*(AqWORKGROUP\eDomain Users\*(Aq >X.fi >X.if n \{\ >X.RE >X.\} >X.SH "TROUBLESHOOTING" >X.PP >XIf you\*(Aqre experiencing problems with authenticating Internet Explorer running under MS Windows 9X or Millennium Edition against ntlm_auth\*(Aqs NTLMSSP authentication helper (\-\-helper\-protocol=squid\-2\&.5\-ntlmssp), then please read >Xthe Microsoft Knowledge Base article #239869 and follow instructions described there\&. >X.SH "VERSION" >X.PP >XThis man page is part of version 4\&.12\&.7 of the Samba suite\&. >X.SH "AUTHOR" >X.PP >XThe original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&. >X.PP >XThe ntlm_auth manpage was written by Jelmer Vernooij and Andrew Bartlett\&. >fa123ac5f3b74aa6c282e9c536f66858 >echo x - inofficial/samba413/files/man/regdiff.1 >sed 's/^X//' >inofficial/samba413/files/man/regdiff.1 << '2e71ea0c60b0a5626977d2da0a62bf93' >X'\" t >X.\" Title: regdiff >X.\" Author: [see the "AUTHOR" section] >X.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> >X.\" Date: 09/23/2020 >X.\" Manual: System Administration tools >X.\" Source: Samba 4.0 >X.\" Language: English >X.\" >X.TH "REGDIFF" "1" "09/23/2020" "Samba 4\&.0" "System Administration tools" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xregdiff \- Diff program for Windows registry files >X.SH "SYNOPSIS" >X.HP \w'\fBregdiff\fR\ 'u >X\fBregdiff\fR [\-\-help] [\-\-backend=BACKEND] [\-\-credentials=CREDENTIALS] [location] >X.SH "DESCRIPTION" >X.PP >Xregdiff compares two Windows registry files key by key and value by value and generates a text file that contains the differences between the two files\&. >X.PP >XA file generated by regdiff can later be applied to a registry file by the regpatch utility\&. >X.PP >Xregdiff and regpatch use the same file format as the regedit32\&.exe utility from Windows\&. >X.SH "OPTIONS" >X.PP >X\-\-help >X.RS 4 >XShow list of available options\&. >X.RE >X.PP >X\-\-backend BACKEND >X.RS 4 >XName of backend to load\&. Possible values are: creg, regf, dir and rpc\&. The default is >X\fIdir\fR\&. >X.sp >XThis argument can be specified twice: once for the first registry file and once for the second\&. >X.RE >X.PP >X\-\-credentials=CREDENTIALS >X.RS 4 >XCredentials to use, if any\&. Password should be separated from user name by a percent sign\&. >X.sp >XThis argument can be specified twice: once for the first registry file and once for the second\&. >X.RE >X.SH "VERSION" >X.PP >XThis man page is correct for version 4\&.0 of the Samba suite\&. >X.SH "SEE ALSO" >X.PP >Xgregedit, regshell, regpatch, regtree, samba, patch, diff >X.SH "AUTHOR" >X.PP >XThis utility is part of the >X\m[blue]\fBSamba\fR\m[]\&\s-2\u[1]\d\s+2 >Xsuite, which is developed by the global >X\m[blue]\fBSamba Team\fR\m[]\&\s-2\u[2]\d\s+2\&. >X.PP >XThis manpage and regdiff were written by Jelmer Vernooij\&. >X.SH "NOTES" >X.IP " 1." 4 >XSamba >X.RS 4 >X\%http://www.samba.org/ >X.RE >X.IP " 2." 4 >XSamba Team >X.RS 4 >X\%http://www.samba.org/samba/team/ >X.RE >2e71ea0c60b0a5626977d2da0a62bf93 >echo x - inofficial/samba413/files/man/ldbrename.1 >sed 's/^X//' >inofficial/samba413/files/man/ldbrename.1 << '8cb9a833a2581675251155f9bad078c1' >X'\" t >X.\" Title: ldbrename >X.\" Author: [see the "AUTHOR" section] >X.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> >X.\" Date: 09/23/2020 >X.\" Manual: System Administration tools >X.\" Source: LDB 1.1 >X.\" Language: English >X.\" >X.TH "LDBRENAME" "1" "09/23/2020" "LDB 1\&.1" "System Administration tools" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xldbrename \- Edit LDB databases using your favorite editor >X.SH "SYNOPSIS" >X.HP \w'\fBldbrename\fR\ 'u >X\fBldbrename\fR [\-h] [\-o\ options] {olddn} {newdn} >X.SH "DESCRIPTION" >X.PP >Xldbrename is a utility that allows you to rename trees in an LDB database based by DN\&. This utility takes two arguments: the original DN name of the top element and the DN to change it to\&. >X.SH "OPTIONS" >X.PP >X\-h >X.RS 4 >XShow list of available options\&. >X.RE >X.PP >X\-H <ldb\-url> >X.RS 4 >XLDB URL to connect to\&. See ldb(3) for details\&. >X.RE >X.PP >X\-o options >X.RS 4 >XExtra ldb options, such as modules\&. >X.RE >X.SH "ENVIRONMENT" >X.PP >XLDB_URL >X.RS 4 >XLDB URL to connect to (can be overridden by using the \-H command\-line option\&.) >X.RE >X.SH "VERSION" >X.PP >XThis man page is correct for version 1\&.1 of LDB\&. >X.SH "SEE ALSO" >X.PP >Xldb(3), ldbmodify, ldbdel, ldif(5) >X.SH "AUTHOR" >X.PP >Xldb was written by >X\m[blue]\fBAndrew Tridgell\fR\m[]\&\s-2\u[1]\d\s+2\&. >X.PP >XIf you wish to report a problem or make a suggestion then please see the >X\m[blue]\fB\%http://ldb.samba.org/\fR\m[] >Xweb site for current contact and maintainer information\&. >X.PP >XThis manpage was written by Jelmer Vernooij\&. >X.SH "NOTES" >X.IP " 1." 4 >XAndrew Tridgell >X.RS 4 >X\%https://www.samba.org/~tridge/ >X.RE >8cb9a833a2581675251155f9bad078c1 >echo x - inofficial/samba413/files/man/ldbsearch.1 >sed 's/^X//' >inofficial/samba413/files/man/ldbsearch.1 << 'a5dac77ea7929a1650c01b1be9b98de7' >X'\" t >X.\" Title: ldbsearch >X.\" Author: [see the "AUTHOR" section] >X.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> >X.\" Date: 09/23/2020 >X.\" Manual: System Administration tools >X.\" Source: LDB 1.1 >X.\" Language: English >X.\" >X.TH "LDBSEARCH" "1" "09/23/2020" "LDB 1\&.1" "System Administration tools" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xldbsearch \- Search for records in a LDB database >X.SH "SYNOPSIS" >X.HP \w'\fBldbsearch\fR\ 'u >X\fBldbsearch\fR [\-h] [\-s\ base|one|sub] [\-b\ basedn] [\-i] [\-H\ LDB\-URL] [expression] [attributes] >X.SH "DESCRIPTION" >X.PP >Xldbsearch searches a LDB database for records matching the specified expression (see the ldapsearch(1) manpage for a description of the expression format)\&. For each record, the specified attributes are printed\&. >X.SH "OPTIONS" >X.PP >X\-h >X.RS 4 >XShow list of available options\&. >X.RE >X.PP >X\-H <ldb\-url> >X.RS 4 >XLDB URL to connect to\&. See ldb(3) for details\&. >X.RE >X.PP >X\-s one|sub|base >X.RS 4 >XSearch scope to use\&. One\-level, subtree or base\&. >X.RE >X.PP >X\-i >X.RS 4 >XRead search expressions from stdin\&. >X.RE >X.PP >X\-b basedn >X.RS 4 >XSpecify Base DN to use\&. >X.RE >X.SH "ENVIRONMENT" >X.PP >XLDB_URL >X.RS 4 >XLDB URL to connect to (can be overridden by using the \-H command\-line option\&.) >X.RE >X.SH "VERSION" >X.PP >XThis man page is correct for version 1\&.1 of LDB\&. >X.SH "SEE ALSO" >X.PP >Xldb(3), ldbedit(1) >X.SH "AUTHOR" >X.PP >Xldb was written by >X\m[blue]\fBAndrew Tridgell\fR\m[]\&\s-2\u[1]\d\s+2\&. >X.PP >XIf you wish to report a problem or make a suggestion then please see the >X\m[blue]\fB\%http://ldb.samba.org/\fR\m[] >Xweb site for current contact and maintainer information\&. >X.PP >XThis manpage was written by Jelmer Vernooij\&. >X.SH "NOTES" >X.IP " 1." 4 >XAndrew Tridgell >X.RS 4 >X\%https://www.samba.org/~tridge/ >X.RE >a5dac77ea7929a1650c01b1be9b98de7 >echo x - inofficial/samba413/files/man/tdbtool.8 >sed 's/^X//' >inofficial/samba413/files/man/tdbtool.8 << 'fcb2a6e59daa32a2fe97c6e9106f398f' >X'\" t >X.\" Title: tdbtool >X.\" Author: [see the "AUTHOR" section] >X.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> >X.\" Date: 2015-04-25 >X.\" Manual: System Administration tools >X.\" Source: Samba 4.0 >X.\" Language: English >X.\" >X.TH "TDBTOOL" "8" "2015\-04\-25" "Samba 4\&.0" "System Administration tools" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xtdbtool \- manipulate the contents TDB files >X.SH "SYNOPSIS" >X.HP \w'\fBtdbtool\fR\ 'u >X\fBtdbtool\fR >X.HP \w'\fBtdbtool\fR\ 'u >X\fBtdbtool\fR [\-l] \fITDBFILE\fR [\fICOMMANDS\fR...] >X.SH "DESCRIPTION" >X.PP >XThis tool is part of the >X\fBsamba\fR(1) >Xsuite\&. >X.PP >X\fBtdbtool\fR >Xa tool for displaying and altering the contents of Samba TDB (Trivial DataBase) files\&. Each of the commands listed below can be entered interactively or provided on the command line\&. >X.SH "OPTIONS" >X.PP >X\-l >X.RS 4 >XThis options disables any locking, by passing TDB_NOLOCK to tdb_open_ex()\&. Only use this for database files which are not used by any other process! And also only if it is otherwise not possible to open the database, e\&.g\&. databases which were created with mutex locking\&. >X.RE >X.SH "COMMANDS" >X.PP >X\fBcreate\fR \fITDBFILE\fR >X.RS 4 >XCreate a new database named >X\fITDBFILE\fR\&. >X.RE >X.PP >X\fBopen\fR \fITDBFILE\fR >X.RS 4 >XOpen an existing database named >X\fITDBFILE\fR\&. >X.RE >X.PP >X\fBerase\fR >X.RS 4 >XErase the current database\&. >X.RE >X.PP >X\fBdump\fR >X.RS 4 >XDump the current database as strings\&. >X.RE >X.PP >X\fBcdump\fR >X.RS 4 >XDump the current database as connection records\&. >X.RE >X.PP >X\fBkeys\fR >X.RS 4 >XDump the current database keys as strings\&. >X.RE >X.PP >X\fBhexkeys\fR >X.RS 4 >XDump the current database keys as hex values\&. >X.RE >X.PP >X\fBinfo\fR >X.RS 4 >XPrint summary information about the current database\&. >X.RE >X.PP >X\fBinsert\fR \fIKEY\fR \fIDATA\fR >X.RS 4 >XInsert a record into the current database\&. >X.RE >X.PP >X\fBmove\fR \fIKEY\fR \fITDBFILE\fR >X.RS 4 >XMove a record from the current database into >X\fITDBFILE\fR\&. >X.RE >X.PP >X\fBstore\fR \fIKEY\fR \fIDATA\fR >X.RS 4 >XStore (replace) a record in the current database\&. >X.RE >X.PP >X\fBshow\fR \fIKEY\fR >X.RS 4 >XShow a record by key\&. >X.RE >X.PP >X\fBdelete\fR \fIKEY\fR >X.RS 4 >XDelete a record by key\&. >X.RE >X.PP >X\fBlist\fR >X.RS 4 >XPrint the current database hash table and free list\&. >X.RE >X.PP >X\fBfree\fR >X.RS 4 >XPrint the current database and free list\&. >X.RE >X.PP >X\fB!\fR \fICOMMAND\fR >X.RS 4 >XExecute the given system command\&. >X.RE >X.PP >X\fBfirst\fR >X.RS 4 >XPrint the first record in the current database\&. >X.RE >X.PP >X\fBnext\fR >X.RS 4 >XPrint the next record in the current database\&. >X.RE >X.PP >X\fBcheck\fR >X.RS 4 >XCheck the integrity of the current database\&. >X.RE >X.PP >X\fBrepack\fR >X.RS 4 >XRepack a database using a temporary file to remove fragmentation\&. >X.RE >X.PP >X\fBquit\fR >X.RS 4 >XExit >X\fBtdbtool\fR\&. >X.RE >X.SH "CAVEATS" >X.PP >XThe contents of the Samba TDB files are private to the implementation and should not be altered with >X\fBtdbtool\fR\&. >X.SH "VERSION" >X.PP >XThis man page is correct for version 3\&.6 of the Samba suite\&. >X.SH "AUTHOR" >X.PP >XThe original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&. >fcb2a6e59daa32a2fe97c6e9106f398f >echo x - inofficial/samba413/files/man/ping_pong.1 >sed 's/^X//' >inofficial/samba413/files/man/ping_pong.1 << '0e2f6bca34fa8aa103013a183f3edc34' >X'\" t >X.\" Title: ping_pong >X.\" Author: >X.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> >X.\" Date: 09/23/2020 >X.\" Manual: CTDB - clustered TDB database >X.\" Source: ctdb >X.\" Language: English >X.\" >X.TH "PING_PONG" "1" "09/23/2020" "ctdb" "CTDB \- clustered TDB database" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xping_pong \- measures the ping\-pong byte range lock latency >X.SH "SYNOPSIS" >X.HP \w'\fBping_pong\fR\ 'u >X\fBping_pong\fR {\-r | \-w | \-rw} [\-m] [\-c] {\fIFILENAME\fR} {\fINUM\-LOCKS\fR} >X.SH "DESCRIPTION" >X.PP >Xping_pong measures the byte range lock latency\&. It is especially useful on a cluster of nodes sharing a common lock manager as it will give some indication of the lock manager\*(Aqs performance under stress\&. >X.PP >XFILENAME is a file on shared storage to use for byte range locking tests\&. >X.PP >XNUM\-LOCKS is the number of byte range locks, so needs to be (strictly) greater than the number of nodes in the cluster\&. >X.SH "OPTIONS" >X.PP >X\-r >X.RS 4 >Xtest read performance >X.RE >X.PP >X\-w >X.RS 4 >Xtest write performance >X.RE >X.PP >X\-m >X.RS 4 >Xuse mmap >X.RE >X.PP >X\-c >X.RS 4 >Xvalidate the locks >X.RE >X.SH "EXAMPLES" >X.PP >XTesting lock coherence >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X ping_pong test\&.dat N >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XTesting lock coherence with lock validation >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X ping_pong \-c test\&.dat N >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XTesting IO coherence >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X ping_pong \-rw test\&.dat N >X >X.fi >X.if n \{\ >X.RE >X.\} >X.SH "SEE ALSO" >X.PP >X\fBctdb\fR(7), >X\m[blue]\fB\%https://wiki.samba.org/index.php/Ping_pong\fR\m[] >X.SH "AUTHOR" >X.br >X.PP >XThis documentation was written by Mathieu Parent >X.SH "COPYRIGHT" >X.br >XCopyright \(co 2002 Andrew Tridgell >X.br >X.PP >XThis program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version\&. >X.PP >XThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&. See the GNU General Public License for more details\&. >X.PP >XYou should have received a copy of the GNU General Public License along with this program; if not, see >X\m[blue]\fB\%http://www.gnu.org/licenses\fR\m[]\&. >X.sp >0e2f6bca34fa8aa103013a183f3edc34 >echo x - inofficial/samba413/files/man/ndrdump.1 >sed 's/^X//' >inofficial/samba413/files/man/ndrdump.1 << 'd5718a81b4a896a81fb2227bca8a3ea5' >X'\" t >X.\" Title: ndrdump >X.\" Author: [see the "AUTHOR" section] >X.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> >X.\" Date: 09/23/2020 >X.\" Manual: System Administration tools >X.\" Source: Samba 4.0 >X.\" Language: English >X.\" >X.TH "NDRDUMP" "1" "09/23/2020" "Samba 4\&.0" "System Administration tools" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xndrdump \- DCE/RPC Packet Parser and Dumper >X.SH "SYNOPSIS" >X.HP \w'\fBndrdump\fR\ 'u >X\fBndrdump\fR [\-c\ context] {pipe} {format} {in|out|struct} {filename} >X.HP \w'\fBndrdump\fR\ 'u >X\fBndrdump\fR [pipe] >X.HP \w'\fBndrdump\fR\ 'u >X\fBndrdump\fR >X.SH "DESCRIPTION" >X.PP >Xndrdump tries to parse the specified >X\fIfilename\fR >Xusing Samba\*(Aqs parser for the specified pipe and format\&. The third argument should be either >X\fIin\fR, >X\fIout\fR >Xor >X\fIstruct\fRdepending on whether the data should be parsed as a request, reply or a public structure\&. >X.PP >XRunning ndrdump without arguments will list the pipes for which parsers are available\&. >X.PP >XRunning ndrdump with one argument will list the functions and public structures that Samba can parse for the specified pipe\&. >X.PP >XThe primary function of ndrdump is debugging Samba\*(Aqs internal DCE/RPC parsing functions\&. The file being parsed is usually one exported by wiresharks >X\(lqExport selected packet bytes\(rq >Xfunction\&. >X.PP >XThe context argument can be used to load context data from the request packet when parsing reply packets (such as array lengths)\&. >X.SH "VERSION" >X.PP >XThis man page is correct for version 4\&.0 of the Samba suite\&. >X.SH "SEE ALSO" >X.PP >Xwireshark, pidl >X.SH "AUTHOR" >X.PP >XThis utility is part of the >X\m[blue]\fBSamba\fR\m[]\&\s-2\u[1]\d\s+2 >Xsuite, which is developed by the global >X\m[blue]\fBSamba Team\fR\m[]\&\s-2\u[2]\d\s+2\&. >X.PP >Xndrdump was written by Andrew Tridgell\&. >X.PP >XThis manpage was written by Jelmer Vernooij\&. >X.SH "NOTES" >X.IP " 1." 4 >XSamba >X.RS 4 >X\%http://www.samba.org/ >X.RE >X.IP " 2." 4 >XSamba Team >X.RS 4 >X\%http://www.samba.org/samba/team/ >X.RE >d5718a81b4a896a81fb2227bca8a3ea5 >echo x - inofficial/samba413/files/man/oLschema2ldif.1 >sed 's/^X//' >inofficial/samba413/files/man/oLschema2ldif.1 << 'e2105ec4b1034eb2d8413de4275473b0' >X'\" t >X.\" Title: oLschema2ldif >X.\" Author: [see the "AUTHOR" section] >X.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> >X.\" Date: 09/23/2020 >X.\" Manual: System Administration tools >X.\" Source: Samba 4.0 >X.\" Language: English >X.\" >X.TH "OLSCHEMA2LDIF" "1" "09/23/2020" "Samba 4\&.0" "System Administration tools" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >XoLschema2ldif \- Converts LDAP schema\*(Aqs to LDB\-compatible LDIF >X.SH "SYNOPSIS" >X.HP \w'\fBoLschema2ldif\fR\ 'u >X\fBoLschema2ldif\fR [\-I\ INPUT\-FILE] [\-O\ OUTPUT\-FILE] >X.SH "DESCRIPTION" >X.PP >XoLschema2ldif is a simple tool that converts standard OpenLDAP schema files to a LDIF format that is understood by LDB\&. >X.SH "OPTIONS" >X.PP >X\-I input\-file >X.RS 4 >XOpenLDAP schema to read\&. If none are specified, the schema file will be read from standard input\&. >X.RE >X.PP >X\-O output\-file >X.RS 4 >XFile to write ldif version of schema to\&. >X.RE >X.SH "VERSION" >X.PP >XThis man page is correct for version 4\&.0 of the Samba suite\&. >X.SH "SEE ALSO" >X.PP >Xldb(7), ldbmodify, ldbdel, ldif(5) >X.SH "AUTHOR" >X.PP >Xldb was written by >X\m[blue]\fBAndrew Tridgell\fR\m[]\&\s-2\u[1]\d\s+2\&. oLschema2ldif was written by >X\m[blue]\fBSimo Sorce\fR\m[]\&\s-2\u[2]\d\s+2\&. >X.PP >XIf you wish to report a problem or make a suggestion then please see the >X\m[blue]\fB\%http://ldb.samba.org/\fR\m[] >Xweb site for current contact and maintainer information\&. >X.SH "NOTES" >X.IP " 1." 4 >XAndrew Tridgell >X.RS 4 >X\%https://www.samba.org/~tridge/ >X.RE >X.IP " 2." 4 >XSimo Sorce >X.RS 4 >X\%mailto:idra@samba.org >X.RE >e2105ec4b1034eb2d8413de4275473b0 >echo x - inofficial/samba413/files/man/ldbdel.1 >sed 's/^X//' >inofficial/samba413/files/man/ldbdel.1 << '5b872c066879401091cccd87bc7e545b' >X'\" t >X.\" Title: ldbdel >X.\" Author: [see the "AUTHOR" section] >X.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> >X.\" Date: 09/23/2020 >X.\" Manual: System Administration tools >X.\" Source: LDB 1.1 >X.\" Language: English >X.\" >X.TH "LDBDEL" "1" "09/23/2020" "LDB 1\&.1" "System Administration tools" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xldbdel \- Command\-line program for deleting LDB records >X.SH "SYNOPSIS" >X.HP \w'\fBldbdel\fR\ 'u >X\fBldbdel\fR [\-h] [\-H\ LDB\-URL] [dn] [\&.\&.\&.] >X.SH "DESCRIPTION" >X.PP >Xldbdel deletes records from an ldb(3) database\&. It deletes the records identified by the dn\*(Aqs specified on the command\-line\&. >X.PP >Xldbdel uses either the database that is specified with the \-H option or the database specified by the LDB_URL environment variable\&. >X.SH "OPTIONS" >X.PP >X\-h >X.RS 4 >XShow list of available options\&. >X.RE >X.PP >X\-H <ldb\-url> >X.RS 4 >XLDB URL to connect to\&. See ldb(3) for details\&. >X.RE >X.SH "ENVIRONMENT" >X.PP >XLDB_URL >X.RS 4 >XLDB URL to connect to (can be overridden by using the \-H command\-line option\&.) >X.RE >X.SH "VERSION" >X.PP >XThis man page is correct for version 1\&.1 of LDB\&. >X.SH "SEE ALSO" >X.PP >Xldb(3), ldbmodify, ldbadd, ldif(5) >X.SH "AUTHOR" >X.PP >Xldb was written by >X\m[blue]\fBAndrew Tridgell\fR\m[]\&\s-2\u[1]\d\s+2\&. >X.PP >XIf you wish to report a problem or make a suggestion then please see the >X\m[blue]\fB\%http://ldb.samba.org/\fR\m[] >Xweb site for current contact and maintainer information\&. >X.PP >Xldbdel was written by Andrew Tridgell\&. >X.PP >XThis manpage was written by Jelmer Vernooij\&. >X.SH "NOTES" >X.IP " 1." 4 >XAndrew Tridgell >X.RS 4 >X\%https://www.samba.org/~tridge/ >X.RE >5b872c066879401091cccd87bc7e545b >echo x - inofficial/samba413/files/man/tdbdump.8 >sed 's/^X//' >inofficial/samba413/files/man/tdbdump.8 << '9d45b67c200d9a7026cd5ce3e897b6bc' >X'\" t >X.\" Title: tdbdump >X.\" Author: [see the "AUTHOR" section] >X.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> >X.\" Date: 2015-04-25 >X.\" Manual: System Administration tools >X.\" Source: Samba 3.6 >X.\" Language: English >X.\" >X.TH "TDBDUMP" "8" "2015\-04\-25" "Samba 3\&.6" "System Administration tools" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xtdbdump \- tool for printing the contents of a TDB file >X.SH "SYNOPSIS" >X.HP \w'\fBtdbdump\fR\ 'u >X\fBtdbdump\fR [\-k\ \fIkeyname\fR] [\-e] [\-h] {filename} >X.SH "DESCRIPTION" >X.PP >XThis tool is part of the >X\fBsamba\fR(1) >Xsuite\&. >X.PP >X\fBtdbdump\fR >Xis a very simple utility that \*(Aqdumps\*(Aq the contents of a TDB (Trivial DataBase) file to standard output in a human\-readable format\&. >X.PP >XThis tool can be used when debugging problems with TDB files\&. It is intended for those who are somewhat familiar with Samba internals\&. >X.SH "OPTIONS" >X.PP >X\-h >X.RS 4 >XGet help information\&. >X.RE >X.PP >X\-k \fIkeyname\fR >X.RS 4 >XThe >X\fB\-k\fR >Xoption restricts dumping to a single key, if found\&. >X.RE >X.PP >X\-e >X.RS 4 >XThe >X\fB\-e\fR >Xtries to dump out from a corrupt database\&. Naturally, such a dump is unreliable, at best\&. >X.RE >X.SH "VERSION" >X.PP >XThis man page is correct for version 3 of the Samba suite\&. >X.SH "AUTHOR" >X.PP >XThe original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&. >X.PP >XThe tdbdump man page was written by Jelmer Vernooij\&. >9d45b67c200d9a7026cd5ce3e897b6bc >echo x - inofficial/samba413/files/man/ctdb.1 >sed 's/^X//' >inofficial/samba413/files/man/ctdb.1 << '9aea3a54722cc0e4b493132e4cdc05f5' >X'\" t >X.\" Title: ctdb >X.\" Author: >X.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> >X.\" Date: 09/23/2020 >X.\" Manual: CTDB - clustered TDB database >X.\" Source: ctdb >X.\" Language: English >X.\" >X.TH "CTDB" "1" "09/23/2020" "ctdb" "CTDB \- clustered TDB database" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xctdb \- CTDB management utility >X.SH "SYNOPSIS" >X.HP \w'\fBctdb\fR\ 'u >X\fBctdb\fR [\fIOPTION\fR...] {\fICOMMAND\fR} [\fICOMMAND\-ARGS\fR] >X.SH "DESCRIPTION" >X.PP >Xctdb is a utility to view and manage a CTDB cluster\&. >X.PP >XThe following terms are used when referring to nodes in a cluster: >X.PP >XPNN >X.RS 4 >XPhysical Node Number\&. The physical node number is an integer that describes the node in the cluster\&. The first node has physical node number 0\&. in a cluster\&. >X.RE >X.PP >XPNN\-LIST >X.RS 4 >XThis is either a single PNN, a comma\-separate list of PNNs or "all"\&. >X.RE >X.PP >XCommands that reference a database use the following terms: >X.PP >XDB >X.RS 4 >XThis is either a database name, such as >Xlocking\&.tdb >Xor a database ID such as "0x42fe72c5"\&. >X.RE >X.PP >XDB\-LIST >X.RS 4 >XA space separated list of at least one >X\fIDB\fR\&. >X.RE >X.SH "OPTIONS" >X.PP >X\-n \fIPNN\fR >X.RS 4 >XThe node specified by PNN should be queried for the requested information\&. Default is to query the daemon running on the local host\&. >X.RE >X.PP >X\-Y >X.RS 4 >XProduce output in machine readable form for easier parsing by scripts\&. This uses a field delimiter of \*(Aq:\*(Aq\&. Not all commands support this option\&. >X.RE >X.PP >X\-x \fISEPARATOR\fR >X.RS 4 >XUse SEPARATOR to delimit fields in machine readable output\&. This implies \-Y\&. >X.RE >X.PP >X\-X >X.RS 4 >XProduce output in machine readable form for easier parsing by scripts\&. This uses a field delimiter of \*(Aq|\*(Aq\&. Not all commands support this option\&. >X.sp >XThis is equivalent to "\-x|" and avoids some shell quoting issues\&. >X.RE >X.PP >X\-t \fITIMEOUT\fR >X.RS 4 >XIndicates that ctdb should wait up to TIMEOUT seconds for a response to most commands sent to the CTDB daemon\&. The default is 10 seconds\&. >X.RE >X.PP >X\-T \fITIMELIMIT\fR >X.RS 4 >XIndicates that TIMELIMIT is the maximum run time (in seconds) for the ctdb command\&. When TIMELIMIT is exceeded the ctdb command will terminate with an error\&. The default is 120 seconds\&. >X.RE >X.PP >X\-? \-\-help >X.RS 4 >XPrint some help text to the screen\&. >X.RE >X.PP >X\-\-usage >X.RS 4 >XPrint usage information to the screen\&. >X.RE >X.PP >X\-d \-\-debug=\fIDEBUGLEVEL\fR >X.RS 4 >XChange the debug level for the command\&. Default is NOTICE\&. >X.RE >X.SH "ADMINISTRATIVE COMMANDS" >X.PP >XThese are commands used to monitor and administer a CTDB cluster\&. >X.SS "pnn" >X.PP >XThis command displays the PNN of the current node\&. >X.SS "status" >X.PP >XThis command shows the current status of all CTDB nodes based on information from the queried node\&. >X.PP >XNote: If the queried node is INACTIVE then the status might not be current\&. >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBNode status\fR >X.RS 4 >X.PP >XThis includes the number of physical nodes and the status of each node\&. See >X\fBctdb\fR(7) >Xfor information about node states\&. >X.RE >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBGeneration\fR >X.RS 4 >X.PP >XThe generation id is a number that indicates the current generation of a cluster instance\&. Each time a cluster goes through a reconfiguration or a recovery its generation id will be changed\&. >X.PP >XThis number does not have any particular meaning other than to keep track of when a cluster has gone through a recovery\&. It is a random number that represents the current instance of a ctdb cluster and its databases\&. The CTDB daemon uses this number internally to be able to tell when commands to operate on the cluster and the databases was issued in a different generation of the cluster, to ensure that commands that operate on the databases will not survive across a cluster database recovery\&. After a recovery, all old outstanding commands will automatically become invalid\&. >X.PP >XSometimes this number will be shown as "INVALID"\&. This only means that the ctdbd daemon has started but it has not yet merged with the cluster through a recovery\&. All nodes start with generation "INVALID" and are not assigned a real generation id until they have successfully been merged with a cluster through a recovery\&. >X.RE >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBVirtual Node Number (VNN) map\fR >X.RS 4 >X.PP >XConsists of the number of virtual nodes and mapping from virtual node numbers to physical node numbers\&. Only nodes that are participating in the VNN map can become lmaster for database records\&. >X.RE >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBRecovery mode\fR >X.RS 4 >X.PP >XThis is the current recovery mode of the cluster\&. There are two possible modes: >X.PP >XNORMAL \- The cluster is fully operational\&. >X.PP >XRECOVERY \- The cluster databases have all been frozen, pausing all services while the cluster awaits a recovery process to complete\&. A recovery process should finish within seconds\&. If a cluster is stuck in the RECOVERY state this would indicate a cluster malfunction which needs to be investigated\&. >X.PP >XOnce the recovery master detects an inconsistency, for example a node becomes disconnected/connected, the recovery daemon will trigger a cluster recovery process, where all databases are remerged across the cluster\&. When this process starts, the recovery master will first "freeze" all databases to prevent applications such as samba from accessing the databases and it will also mark the recovery mode as RECOVERY\&. >X.PP >XWhen the CTDB daemon starts up, it will start in RECOVERY mode\&. Once the node has been merged into a cluster and all databases have been recovered, the node mode will change into NORMAL mode and the databases will be "thawed", allowing samba to access the databases again\&. >X.RE >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBRecovery master\fR >X.RS 4 >X.PP >XThis is the cluster node that is currently designated as the recovery master\&. This node is responsible of monitoring the consistency of the cluster and to perform the actual recovery process when reqired\&. >X.PP >XOnly one node at a time can be the designated recovery master\&. Which node is designated the recovery master is decided by an election process in the recovery daemons running on each node\&. >X.RE >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBExample\fR >X.RS 4 >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X# ctdb status >XNumber of nodes:4 >Xpnn:0 192\&.168\&.2\&.200 OK (THIS NODE) >Xpnn:1 192\&.168\&.2\&.201 OK >Xpnn:2 192\&.168\&.2\&.202 OK >Xpnn:3 192\&.168\&.2\&.203 OK >XGeneration:1362079228 >XSize:4 >Xhash:0 lmaster:0 >Xhash:1 lmaster:1 >Xhash:2 lmaster:2 >Xhash:3 lmaster:3 >XRecovery mode:NORMAL (0) >XRecovery master:0 >X >X.fi >X.if n \{\ >X.RE >X.\} >X.RE >X.SS "nodestatus [\fIPNN\-LIST\fR]" >X.PP >XThis command is similar to the >X\fBstatus\fR >Xcommand\&. It displays the "node status" subset of output\&. The main differences are: >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04'\(bu\h'+03'\c >X.\} >X.el \{\ >X.sp -1 >X.IP \(bu 2.3 >X.\} >XThe exit code is the bitwise\-OR of the flags for each specified node, while >X\fBctdb status\fR >Xexits with 0 if it was able to retrieve status for all nodes\&. >X.RE >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04'\(bu\h'+03'\c >X.\} >X.el \{\ >X.sp -1 >X.IP \(bu 2.3 >X.\} >X\fBctdb status\fR >Xprovides status information for all nodes\&. >X\fBctdb nodestatus\fR >Xdefaults to providing status for only the current node\&. If PNN\-LIST is provided then status is given for the indicated node(s)\&. >X.RE >X.PP >XA common invocation in scripts is >X\fBctdb nodestatus all\fR >Xto check whether all nodes in a cluster are healthy\&. >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBExample\fR >X.RS 4 >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X# ctdb nodestatus >Xpnn:0 10\&.0\&.0\&.30 OK (THIS NODE) >X >X# ctdb nodestatus all >XNumber of nodes:2 >Xpnn:0 10\&.0\&.0\&.30 OK (THIS NODE) >Xpnn:1 10\&.0\&.0\&.31 OK >X >X.fi >X.if n \{\ >X.RE >X.\} >X.RE >X.SS "recmaster" >X.PP >XThis command shows the pnn of the node which is currently the recmaster\&. >X.PP >XNote: If the queried node is INACTIVE then the status might not be current\&. >X.SS "uptime" >X.PP >XThis command shows the uptime for the ctdb daemon\&. When the last recovery or ip\-failover completed and how long it took\&. If the "duration" is shown as a negative number, this indicates that there is a recovery/failover in progress and it started that many seconds ago\&. >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBExample\fR >X.RS 4 >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X# ctdb uptime >XCurrent time of node : Thu Oct 29 10:38:54 2009 >XCtdbd start time : (000 16:54:28) Wed Oct 28 17:44:26 2009 >XTime of last recovery/failover: (000 16:53:31) Wed Oct 28 17:45:23 2009 >XDuration of last recovery/failover: 2\&.248552 seconds >X >X.fi >X.if n \{\ >X.RE >X.\} >X.RE >X.SS "listnodes" >X.PP >XThis command shows lists the ip addresses of all the nodes in the cluster\&. >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBExample\fR >X.RS 4 >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X# ctdb listnodes >X192\&.168\&.2\&.200 >X192\&.168\&.2\&.201 >X192\&.168\&.2\&.202 >X192\&.168\&.2\&.203 >X >X.fi >X.if n \{\ >X.RE >X.\} >X.RE >X.SS "natgw {master|list|status}" >X.PP >XThis command shows different aspects of NAT gateway status\&. For an overview of CTDB\*(Aqs NAT gateway functionality please see the >XNAT GATEWAY >Xsection in >X\fBctdb\fR(7)\&. >X.PP >Xmaster >X.RS 4 >XShow the PNN and private IP address of the current NAT gateway master node\&. >X.sp >XExample output: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X1 192\&.168\&.2\&.201 >X >X.fi >X.if n \{\ >X.RE >X.\} >X.RE >X.PP >Xlist >X.RS 4 >XList the private IP addresses of nodes in the current NAT gateway group, annotating the master node\&. >X.sp >XExample output: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X192\&.168\&.2\&.200 >X192\&.168\&.2\&.201 MASTER >X192\&.168\&.2\&.202 >X192\&.168\&.2\&.203 >X >X.fi >X.if n \{\ >X.RE >X.\} >X.RE >X.PP >Xstatus >X.RS 4 >XList the nodes in the current NAT gateway group and their status\&. >X.sp >XExample output: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >Xpnn:0 192\&.168\&.2\&.200 UNHEALTHY (THIS NODE) >Xpnn:1 192\&.168\&.2\&.201 OK >Xpnn:2 192\&.168\&.2\&.202 OK >Xpnn:3 192\&.168\&.2\&.203 OK >X >X.fi >X.if n \{\ >X.RE >X.\} >X.RE >X.SS "ping" >X.PP >XThis command will "ping" specified CTDB nodes in the cluster to verify that they are running\&. >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBExample\fR >X.RS 4 >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X# ctdb ping >Xresponse from 0 time=0\&.000054 sec (3 clients) >X >X.fi >X.if n \{\ >X.RE >X.\} >X.RE >X.SS "ifaces" >X.PP >XThis command will display the list of network interfaces, which could host public addresses, along with their status\&. >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBExample\fR >X.RS 4 >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X# ctdb ifaces >XInterfaces on node 0 >Xname:eth5 link:up references:2 >Xname:eth4 link:down references:0 >Xname:eth3 link:up references:1 >Xname:eth2 link:up references:1 >X >X# ctdb \-X ifaces >X|Name|LinkStatus|References| >X|eth5|1|2| >X|eth4|0|0| >X|eth3|1|1| >X|eth2|1|1| >X >X.fi >X.if n \{\ >X.RE >X.\} >X.RE >X.SS "ip" >X.PP >XThis command will display the list of public addresses that are provided by the cluster and which physical node is currently serving this ip\&. By default this command will ONLY show those public addresses that are known to the node itself\&. To see the full list of all public ips across the cluster you must use "ctdb ip all"\&. >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBExample\fR >X.RS 4 >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X# ctdb ip \-v >XPublic IPs on node 0 >X172\&.31\&.91\&.82 node[1] active[] available[eth2,eth3] configured[eth2,eth3] >X172\&.31\&.91\&.83 node[0] active[eth3] available[eth2,eth3] configured[eth2,eth3] >X172\&.31\&.91\&.84 node[1] active[] available[eth2,eth3] configured[eth2,eth3] >X172\&.31\&.91\&.85 node[0] active[eth2] available[eth2,eth3] configured[eth2,eth3] >X172\&.31\&.92\&.82 node[1] active[] available[eth5] configured[eth4,eth5] >X172\&.31\&.92\&.83 node[0] active[eth5] available[eth5] configured[eth4,eth5] >X172\&.31\&.92\&.84 node[1] active[] available[eth5] configured[eth4,eth5] >X172\&.31\&.92\&.85 node[0] active[eth5] available[eth5] configured[eth4,eth5] >X >X# ctdb \-X ip \-v >X|Public IP|Node|ActiveInterface|AvailableInterfaces|ConfiguredInterfaces| >X|172\&.31\&.91\&.82|1||eth2,eth3|eth2,eth3| >X|172\&.31\&.91\&.83|0|eth3|eth2,eth3|eth2,eth3| >X|172\&.31\&.91\&.84|1||eth2,eth3|eth2,eth3| >X|172\&.31\&.91\&.85|0|eth2|eth2,eth3|eth2,eth3| >X|172\&.31\&.92\&.82|1||eth5|eth4,eth5| >X|172\&.31\&.92\&.83|0|eth5|eth5|eth4,eth5| >X|172\&.31\&.92\&.84|1||eth5|eth4,eth5| >X|172\&.31\&.92\&.85|0|eth5|eth5|eth4,eth5| >X >X.fi >X.if n \{\ >X.RE >X.\} >X.RE >X.SS "ipinfo \fIIP\fR" >X.PP >XThis command will display details about the specified public addresses\&. >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBExample\fR >X.RS 4 >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X# ctdb ipinfo 172\&.31\&.92\&.85 >XPublic IP[172\&.31\&.92\&.85] info on node 0 >XIP:172\&.31\&.92\&.85 >XCurrentNode:0 >XNumInterfaces:2 >XInterface[1]: Name:eth4 Link:down References:0 >XInterface[2]: Name:eth5 Link:up References:2 (active) >X >X.fi >X.if n \{\ >X.RE >X.\} >X.RE >X.SS "event run|status|script list|script enable|script disable" >X.PP >XThis command is used to control event daemon and to inspect status of various events\&. >X.PP >XThe commands below require a component to be specified\&. In the current version the only valid component is >Xlegacy\&. >X.PP >Xrun \fITIMEOUT\fR \fICOMPONENT\fR \fIEVENT\fR [\fIARGUMENTS\fR] >X.RS 4 >XThis command can be used to manually run specified EVENT in COMPONENT with optional ARGUMENTS\&. The event will be allowed to run a maximum of TIMEOUT seconds\&. If TIMEOUT is 0, then there is no time limit for running the event\&. >X.RE >X.PP >Xstatus \fICOMPONENT\fR \fIEVENT\fR >X.RS 4 >XThis command displays the last execution status of the specified EVENT in COMPONENT\&. >X.sp >XThe command will terminate with the exit status corresponding to the overall status of event that is displayed\&. >X.sp >XThe output is the list of event scripts executed\&. Each line shows the name, status, duration and start time for each script\&. >X.sp >XExample output: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X00\&.ctdb OK 0\&.014 Sat Dec 17 19:39:11 2016 >X01\&.reclock OK 0\&.013 Sat Dec 17 19:39:11 2016 >X05\&.system OK 0\&.029 Sat Dec 17 19:39:11 2016 >X06\&.nfs OK 0\&.014 Sat Dec 17 19:39:11 2016 >X10\&.interface OK 0\&.037 Sat Dec 17 19:39:11 2016 >X11\&.natgw OK 0\&.011 Sat Dec 17 19:39:11 2016 >X11\&.routing OK 0\&.007 Sat Dec 17 19:39:11 2016 >X13\&.per_ip_routing OK 0\&.007 Sat Dec 17 19:39:11 2016 >X20\&.multipathd OK 0\&.007 Sat Dec 17 19:39:11 2016 >X31\&.clamd OK 0\&.007 Sat Dec 17 19:39:11 2016 >X40\&.vsftpd OK 0\&.013 Sat Dec 17 19:39:11 2016 >X41\&.httpd OK 0\&.018 Sat Dec 17 19:39:11 2016 >X49\&.winbind OK 0\&.023 Sat Dec 17 19:39:11 2016 >X50\&.samba OK 0\&.100 Sat Dec 17 19:39:12 2016 >X60\&.nfs OK 0\&.376 Sat Dec 17 19:39:12 2016 >X70\&.iscsi OK 0\&.009 Sat Dec 17 19:39:12 2016 >X91\&.lvs OK 0\&.007 Sat Dec 17 19:39:12 2016 >X >X.fi >X.if n \{\ >X.RE >X.\} >X.RE >X.PP >Xscript list \fICOMPONENT\fR >X.RS 4 >XList the available event scripts in COMPONENT\&. Enabled scripts are flagged with a \*(Aq*\*(Aq\&. >X.sp >XGenerally, event scripts are provided by CTDB\&. However, local or 3rd party event scripts may also be available\&. These are shown in a separate section after those provided by CTDB\&. >X.sp >XExample output: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X* 00\&.ctdb >X* 01\&.reclock >X* 05\&.system >X* 06\&.nfs >X* 10\&.interface >X 11\&.natgw >X 11\&.routing >X 13\&.per_ip_routing >X 20\&.multipathd >X 31\&.clamd >X 40\&.vsftpd >X 41\&.httpd >X* 49\&.winbind >X* 50\&.samba >X* 60\&.nfs >X 70\&.iscsi >X 91\&.lvs >X >X* 02\&.local >X >X.fi >X.if n \{\ >X.RE >X.\} >X.RE >X.PP >Xscript enable \fICOMPONENT\fR \fISCRIPT\fR >X.RS 4 >XEnable the specified event SCRIPT in COMPONENT\&. Only enabled scripts will be executed when running any event\&. >X.RE >X.PP >Xscript disable \fICOMPONENT\fR \fISCRIPT\fR >X.RS 4 >XDisable the specified event SCRIPT in COMPONENT\&. This will prevent the script from executing when running any event\&. >X.RE >X.SS "scriptstatus" >X.PP >XThis command displays which event scripts where run in the previous monitoring cycle and the result of each script\&. If a script failed with an error, causing the node to become unhealthy, the output from that script is also shown\&. >X.PP >XThis command is deprecated\&. It\*(Aqs provided for backward compatibility\&. In place of >X\fBctdb scriptstatus\fR, use >X\fBctdb event status\fR\&. >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBExample\fR >X.RS 4 >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X# ctdb scriptstatus >X00\&.ctdb OK 0\&.011 Sat Dec 17 19:40:46 2016 >X01\&.reclock OK 0\&.010 Sat Dec 17 19:40:46 2016 >X05\&.system OK 0\&.030 Sat Dec 17 19:40:46 2016 >X06\&.nfs OK 0\&.014 Sat Dec 17 19:40:46 2016 >X10\&.interface OK 0\&.041 Sat Dec 17 19:40:46 2016 >X11\&.natgw OK 0\&.008 Sat Dec 17 19:40:46 2016 >X11\&.routing OK 0\&.007 Sat Dec 17 19:40:46 2016 >X13\&.per_ip_routing OK 0\&.007 Sat Dec 17 19:40:46 2016 >X20\&.multipathd OK 0\&.007 Sat Dec 17 19:40:46 2016 >X31\&.clamd OK 0\&.007 Sat Dec 17 19:40:46 2016 >X40\&.vsftpd OK 0\&.013 Sat Dec 17 19:40:46 2016 >X41\&.httpd OK 0\&.015 Sat Dec 17 19:40:46 2016 >X49\&.winbind OK 0\&.022 Sat Dec 17 19:40:46 2016 >X50\&.samba ERROR 0\&.077 Sat Dec 17 19:40:46 2016 >X OUTPUT: ERROR: samba tcp port 445 is not responding >X >X.fi >X.if n \{\ >X.RE >X.\} >X.RE >X.SS "listvars" >X.PP >XList all tuneable variables, except the values of the obsolete tunables like VacuumMinInterval\&. The obsolete tunables can be retrieved only explicitly with the "ctdb getvar" command\&. >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBExample\fR >X.RS 4 >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X# ctdb listvars >XSeqnumInterval = 1000 >XControlTimeout = 60 >XTraverseTimeout = 20 >XKeepaliveInterval = 5 >XKeepaliveLimit = 5 >XRecoverTimeout = 120 >XRecoverInterval = 1 >XElectionTimeout = 3 >XTakeoverTimeout = 9 >XMonitorInterval = 15 >XTickleUpdateInterval = 20 >XEventScriptTimeout = 30 >XMonitorTimeoutCount = 20 >XRecoveryGracePeriod = 120 >XRecoveryBanPeriod = 300 >XDatabaseHashSize = 100001 >XDatabaseMaxDead = 5 >XRerecoveryTimeout = 10 >XEnableBans = 1 >XNoIPFailback = 0 >XVerboseMemoryNames = 0 >XRecdPingTimeout = 60 >XRecdFailCount = 10 >XLogLatencyMs = 0 >XRecLockLatencyMs = 1000 >XRecoveryDropAllIPs = 120 >XVacuumInterval = 10 >XVacuumMaxRunTime = 120 >XRepackLimit = 10000 >XVacuumFastPathCount = 60 >XMaxQueueDropMsg = 1000000 >XAllowUnhealthyDBRead = 0 >XStatHistoryInterval = 1 >XDeferredAttachTO = 120 >XAllowClientDBAttach = 1 >XRecoverPDBBySeqNum = 1 >XDeferredRebalanceOnNodeAdd = 300 >XFetchCollapse = 1 >XHopcountMakeSticky = 50 >XStickyDuration = 600 >XStickyPindown = 200 >XNoIPTakeover = 0 >XDBRecordCountWarn = 100000 >XDBRecordSizeWarn = 10000000 >XDBSizeWarn = 100000000 >XPullDBPreallocation = 10485760 >XLockProcessesPerDB = 200 >XRecBufferSizeLimit = 1000000 >XQueueBufferSize = 1024 >XIPAllocAlgorithm = 2 >X >X.fi >X.if n \{\ >X.RE >X.\} >X.RE >X.SS "getvar \fINAME\fR" >X.PP >XGet the runtime value of a tuneable variable\&. >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBExample\fR >X.RS 4 >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X# ctdb getvar MonitorInterval >XMonitorInterval = 15 >X >X.fi >X.if n \{\ >X.RE >X.\} >X.RE >X.SS "setvar \fINAME\fR \fIVALUE\fR" >X.PP >XSet the runtime value of a tuneable variable\&. >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBExample\fR >X.RS 4 >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X# ctdb setvar MonitorInterval 20 >X >X.fi >X.if n \{\ >X.RE >X.\} >X.RE >X.SS "lvs {master|list|status}" >X.PP >XThis command shows different aspects of LVS status\&. For an overview of CTDB\*(Aqs LVS functionality please see the >XLVS >Xsection in >X\fBctdb\fR(7)\&. >X.PP >Xmaster >X.RS 4 >XShows the PNN of the current LVS master node\&. >X.sp >XExample output: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X2 >X >X.fi >X.if n \{\ >X.RE >X.\} >X.RE >X.PP >Xlist >X.RS 4 >XLists the currently usable LVS nodes\&. >X.sp >XExample output: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X2 10\&.0\&.0\&.13 >X3 10\&.0\&.0\&.14 >X >X.fi >X.if n \{\ >X.RE >X.\} >X.RE >X.PP >Xstatus >X.RS 4 >XList the nodes in the current LVS group and their status\&. >X.sp >XExample output: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >Xpnn:0 10\&.0\&.0\&.11 UNHEALTHY (THIS NODE) >Xpnn:1 10\&.0\&.0\&.12 UNHEALTHY >Xpnn:2 10\&.0\&.0\&.13 OK >Xpnn:3 10\&.0\&.0\&.14 OK >X >X.fi >X.if n \{\ >X.RE >X.\} >X.RE >X.SS "getcapabilities" >X.PP >XThis command shows the capabilities of the current node\&. See the >XCAPABILITIES >Xsection in >X\fBctdb\fR(7) >Xfor more details\&. >X.PP >XExample output: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >XRECMASTER: YES >XLMASTER: YES >X >X.fi >X.if n \{\ >X.RE >X.\} >X.SS "statistics" >X.PP >XCollect statistics from the CTDB daemon about how many calls it has served\&. Information about various fields in statistics can be found in >X\fBctdb-statistics\fR(7)\&. >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBExample\fR >X.RS 4 >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X# ctdb statistics >XCTDB version 1 >XCurrent time of statistics : Tue Mar 8 15:18:51 2016 >XStatistics collected since : (003 21:31:32) Fri Mar 4 17:47:19 2016 >X num_clients 9 >X frozen 0 >X recovering 0 >X num_recoveries 2 >X client_packets_sent 8170534 >X client_packets_recv 7166132 >X node_packets_sent 16549998 >X node_packets_recv 5244418 >X keepalive_packets_sent 201969 >X keepalive_packets_recv 201969 >X node >X req_call 26 >X reply_call 0 >X req_dmaster 9 >X reply_dmaster 12 >X reply_error 0 >X req_message 1339231 >X req_control 8177506 >X reply_control 6831284 >X client >X req_call 15 >X req_message 334809 >X req_control 6831308 >X timeouts >X call 0 >X control 0 >X traverse 0 >X locks >X num_calls 8 >X num_current 0 >X num_pending 0 >X num_failed 0 >X total_calls 15 >X pending_calls 0 >X childwrite_calls 0 >X pending_childwrite_calls 0 >X memory_used 394879 >X max_hop_count 1 >X total_ro_delegations 0 >X total_ro_revokes 0 >X hop_count_buckets: 8 5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 >X lock_buckets: 0 0 8 0 0 0 0 0 0 0 0 0 0 0 0 0 >X locks_latency MIN/AVG/MAX 0\&.010005/0\&.010418/0\&.011010 sec out of 8 >X reclock_ctdbd MIN/AVG/MAX 0\&.002538/0\&.002538/0\&.002538 sec out of 1 >X reclock_recd MIN/AVG/MAX 0\&.000000/0\&.000000/0\&.000000 sec out of 0 >X call_latency MIN/AVG/MAX 0\&.000044/0\&.002142/0\&.011702 sec out of 15 >X childwrite_latency MIN/AVG/MAX 0\&.000000/0\&.000000/0\&.000000 sec out of 0 >X >X.fi >X.if n \{\ >X.RE >X.\} >X.RE >X.SS "statisticsreset" >X.PP >XThis command is used to clear all statistics counters in a node\&. >X.PP >XExample: ctdb statisticsreset >X.SS "dbstatistics \fIDB\fR" >X.PP >XDisplay statistics about the database DB\&. Information about various fields in dbstatistics can be found in >X\fBctdb-statistics\fR(7)\&. >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBExample\fR >X.RS 4 >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X# ctdb dbstatistics locking\&.tdb >XDB Statistics: locking\&.tdb >X ro_delegations 0 >X ro_revokes 0 >X locks >X total 14356 >X failed 0 >X current 0 >X pending 0 >X hop_count_buckets: 28087 2 1 0 0 0 0 0 0 0 0 0 0 0 0 0 >X lock_buckets: 0 14188 38 76 32 19 3 0 0 0 0 0 0 0 0 0 >X locks_latency MIN/AVG/MAX 0\&.001066/0\&.012686/4\&.202292 sec out of 14356 >X vacuum_latency MIN/AVG/MAX 0\&.000472/0\&.002207/15\&.243570 sec out of 224530 >X Num Hot Keys: 1 >X Count:8 Key:ff5bd7cb3ee3822edc1f0000000000000000000000000000 >X >X.fi >X.if n \{\ >X.RE >X.\} >X.RE >X.SS "getreclock" >X.PP >XShow details of the recovery lock, if any\&. >X.PP >XExample output: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X /clusterfs/\&.ctdb/recovery\&.lock >X >X.fi >X.if n \{\ >X.RE >X.\} >X.SS "getdebug" >X.PP >XGet the current debug level for the node\&. the debug level controls what information is written to the log file\&. >X.PP >XThe debug levels are mapped to the corresponding syslog levels\&. When a debug level is set, only those messages at that level and higher levels will be printed\&. >X.PP >XThe list of debug levels from highest to lowest are : >X.PP >XERROR WARNING NOTICE INFO DEBUG >X.SS "setdebug \fIDEBUGLEVEL\fR" >X.PP >XSet the debug level of a node\&. This controls what information will be logged\&. >X.PP >XThe debuglevel is one of ERROR WARNING NOTICE INFO DEBUG >X.SS "getpid" >X.PP >XThis command will return the process id of the ctdb daemon\&. >X.SS "disable" >X.PP >XThis command is used to administratively disable a node in the cluster\&. A disabled node will still participate in the cluster and host clustered TDB records but its public ip address has been taken over by a different node and it no longer hosts any services\&. >X.SS "enable" >X.PP >XRe\-enable a node that has been administratively disabled\&. >X.SS "stop" >X.PP >XThis command is used to administratively STOP a node in the cluster\&. A STOPPED node is connected to the cluster but will not host any public ip addresse, nor does it participate in the VNNMAP\&. The difference between a DISABLED node and a STOPPED node is that a STOPPED node does not host any parts of the database which means that a recovery is required to stop/continue nodes\&. >X.SS "continue" >X.PP >XRe\-start a node that has been administratively stopped\&. >X.SS "addip \fIIPADDR\fR/\fImask\fR \fIIFACE\fR" >X.PP >XThis command is used to add a new public ip to a node during runtime\&. It should be followed by a >X\fBctdb ipreallocate\fR\&. This allows public addresses to be added to a cluster without having to restart the ctdb daemons\&. >X.PP >XNote that this only updates the runtime instance of ctdb\&. Any changes will be lost next time ctdb is restarted and the public addresses file is re\-read\&. If you want this change to be permanent you must also update the public addresses file manually\&. >X.SS "delip \fIIPADDR\fR" >X.PP >XThis command flags IPADDR for deletion from a node at runtime\&. It should be followed by a >X\fBctdb ipreallocate\fR\&. If IPADDR is currently hosted by the node it is being removed from, this ensures that the IP will first be failed over to another node, if possible, and that it is then actually removed\&. >X.PP >XNote that this only updates the runtime instance of CTDB\&. Any changes will be lost next time CTDB is restarted and the public addresses file is re\-read\&. If you want this change to be permanent you must also update the public addresses file manually\&. >X.SS "moveip \fIIPADDR\fR \fIPNN\fR" >X.PP >XThis command can be used to manually fail a public ip address to a specific node\&. >X.PP >XIn order to manually override the "automatic" distribution of public ip addresses that ctdb normally provides, this command only works when you have changed the tunables for the daemon to: >X.PP >XIPAllocAlgorithm != 0 >X.PP >XNoIPFailback = 1 >X.SS "shutdown" >X.PP >XThis command will shutdown a specific CTDB daemon\&. >X.SS "setlmasterrole on|off" >X.PP >XThis command is used to enable/disable the LMASTER capability for a node at runtime\&. This capability determines whether or not a node can be used as an LMASTER for records in the database\&. A node that does not have the LMASTER capability will not show up in the vnnmap\&. >X.PP >XNodes will by default have this capability, but it can be stripped off nodes by the setting in the sysconfig file or by using this command\&. >X.PP >XOnce this setting has been enabled/disabled, you need to perform a recovery for it to take effect\&. >X.PP >XSee also "ctdb getcapabilities" >X.SS "setrecmasterrole on|off" >X.PP >XThis command is used to enable/disable the RECMASTER capability for a node at runtime\&. This capability determines whether or not a node can be used as an RECMASTER for the cluster\&. A node that does not have the RECMASTER capability can not win a recmaster election\&. A node that already is the recmaster for the cluster when the capability is stripped off the node will remain the recmaster until the next cluster election\&. >X.PP >XNodes will by default have this capability, but it can be stripped off nodes by the setting in the sysconfig file or by using this command\&. >X.PP >XSee also "ctdb getcapabilities" >X.SS "reloadnodes" >X.PP >XThis command is used when adding new nodes, or removing existing nodes from an existing cluster\&. >X.PP >XProcedure to add nodes: >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04' 1.\h'+01'\c >X.\} >X.el \{\ >X.sp -1 >X.IP " 1." 4.2 >X.\} >XTo expand an existing cluster, first ensure with >X\fBctdb status\fR >Xthat all nodes are up and running and that they are all healthy\&. Do not try to expand a cluster unless it is completely healthy! >X.RE >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04' 2.\h'+01'\c >X.\} >X.el \{\ >X.sp -1 >X.IP " 2." 4.2 >X.\} >XOn all nodes, edit >X/usr/local/etc/ctdb/nodes >Xand >X\fIadd the new nodes at the end of this file\fR\&. >X.RE >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04' 3.\h'+01'\c >X.\} >X.el \{\ >X.sp -1 >X.IP " 3." 4.2 >X.\} >XVerify that all the nodes have identical >X/usr/local/etc/ctdb/nodes >Xfiles after adding the new nodes\&. >X.RE >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04' 4.\h'+01'\c >X.\} >X.el \{\ >X.sp -1 >X.IP " 4." 4.2 >X.\} >XRun >X\fBctdb reloadnodes\fR >Xto force all nodes to reload the nodes file\&. >X.RE >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04' 5.\h'+01'\c >X.\} >X.el \{\ >X.sp -1 >X.IP " 5." 4.2 >X.\} >XUse >X\fBctdb status\fR >Xon all nodes and verify that they now show the additional nodes\&. >X.RE >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04' 6.\h'+01'\c >X.\} >X.el \{\ >X.sp -1 >X.IP " 6." 4.2 >X.\} >XInstall and configure the new node and bring it online\&. >X.RE >X.PP >XProcedure to remove nodes: >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04' 1.\h'+01'\c >X.\} >X.el \{\ >X.sp -1 >X.IP " 1." 4.2 >X.\} >XTo remove nodes from an existing cluster, first ensure with >X\fBctdb status\fR >Xthat all nodes, except the node to be deleted, are up and running and that they are all healthy\&. Do not try to remove nodes from a cluster unless the cluster is completely healthy! >X.RE >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04' 2.\h'+01'\c >X.\} >X.el \{\ >X.sp -1 >X.IP " 2." 4.2 >X.\} >XShutdown and power off the node to be removed\&. >X.RE >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04' 3.\h'+01'\c >X.\} >X.el \{\ >X.sp -1 >X.IP " 3." 4.2 >X.\} >XOn all other nodes, edit the >X/usr/local/etc/ctdb/nodes >Xfile and >X\fIcomment out\fR >Xthe nodes to be removed\&. >X\fIDo not delete the lines for the deleted nodes\fR, just comment them out by adding a \*(Aq#\*(Aq at the beginning of the lines\&. >X.RE >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04' 4.\h'+01'\c >X.\} >X.el \{\ >X.sp -1 >X.IP " 4." 4.2 >X.\} >XRun >X\fBctdb reloadnodes\fR >Xto force all nodes to reload the nodes file\&. >X.RE >X.sp >X.RS 4 >X.ie n \{\ >X\h'-04' 5.\h'+01'\c >X.\} >X.el \{\ >X.sp -1 >X.IP " 5." 4.2 >X.\} >XUse >X\fBctdb status\fR >Xon all nodes and verify that the deleted nodes are no longer listed\&. >X.RE >X.SS "reloadips [\fIPNN\-LIST\fR]" >X.PP >XThis command reloads the public addresses configuration file on the specified nodes\&. When it completes addresses will be reconfigured and reassigned across the cluster as necessary\&. >X.PP >XThis command is currently unable to make changes to the netmask or interfaces associated with existing addresses\&. Such changes must be made in 2 steps by deleting addresses in question and re\-adding then\&. Unfortunately this will disrupt connections to the changed addresses\&. >X.SS "getdbmap" >X.PP >XThis command lists all clustered TDB databases that the CTDB daemon has attached to\&. Some databases are flagged as PERSISTENT, this means that the database stores data persistently and the data will remain across reboots\&. One example of such a database is secrets\&.tdb where information about how the cluster was joined to the domain is stored\&. Some database are flagged as REPLICATED, this means that the data in that database is replicated across all the nodes\&. But the data will not remain across reboots\&. This type of database is used by CTDB to store it\*(Aqs internal state\&. >X.PP >XIf a PERSISTENT database is not in a healthy state the database is flagged as UNHEALTHY\&. If there\*(Aqs at least one completely healthy node running in the cluster, it\*(Aqs possible that the content is restored by a recovery run automatically\&. Otherwise an administrator needs to analyze the problem\&. >X.PP >XSee also "ctdb getdbstatus", "ctdb backupdb", "ctdb restoredb", "ctdb dumpbackup", "ctdb wipedb", "ctdb setvar AllowUnhealthyDBRead 1" and (if samba or tdb\-utils are installed) "tdbtool check"\&. >X.PP >XMost databases are not persistent and only store the state information that the currently running samba daemons need\&. These databases are always wiped when ctdb/samba starts and when a node is rebooted\&. >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBExample\fR >X.RS 4 >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X# ctdb getdbmap >XNumber of databases:10 >Xdbid:0x435d3410 name:notify\&.tdb path:/var/lib/ctdb/notify\&.tdb\&.0 >Xdbid:0x42fe72c5 name:locking\&.tdb path:/var/lib/ctdb/locking\&.tdb\&.0 >Xdbid:0x1421fb78 name:brlock\&.tdb path:/var/lib/ctdb/brlock\&.tdb\&.0 >Xdbid:0x17055d90 name:connections\&.tdb path:/var/lib/ctdb/connections\&.tdb\&.0 >Xdbid:0xc0bdde6a name:sessionid\&.tdb path:/var/lib/ctdb/sessionid\&.tdb\&.0 >Xdbid:0x122224da name:test\&.tdb path:/var/lib/ctdb/test\&.tdb\&.0 >Xdbid:0x2672a57f name:idmap2\&.tdb path:/var/lib/ctdb/persistent/idmap2\&.tdb\&.0 PERSISTENT >Xdbid:0xb775fff6 name:secrets\&.tdb path:/var/lib/ctdb/persistent/secrets\&.tdb\&.0 PERSISTENT >Xdbid:0xe98e08b6 name:group_mapping\&.tdb path:/var/lib/ctdb/persistent/group_mapping\&.tdb\&.0 PERSISTENT >Xdbid:0x7bbbd26c name:passdb\&.tdb path:/var/lib/ctdb/persistent/passdb\&.tdb\&.0 PERSISTENT >X >X# ctdb getdbmap # example for unhealthy database >XNumber of databases:1 >Xdbid:0xb775fff6 name:secrets\&.tdb path:/var/lib/ctdb/persistent/secrets\&.tdb\&.0 PERSISTENT UNHEALTHY >X >X# ctdb \-X getdbmap >X|ID|Name|Path|Persistent|Unhealthy| >X|0x7bbbd26c|passdb\&.tdb|/var/lib/ctdb/persistent/passdb\&.tdb\&.0|1|0| >X >X.fi >X.if n \{\ >X.RE >X.\} >X.RE >X.SS "backupdb \fIDB\fR \fIFILE\fR" >X.PP >XCopy the contents of database DB to FILE\&. FILE can later be read back using >X\fBrestoredb\fR\&. This is mainly useful for backing up persistent databases such as >Xsecrets\&.tdb >Xand similar\&. >X.SS "restoredb \fIFILE\fR [\fIDB\fR]" >X.PP >XThis command restores a persistent database that was previously backed up using backupdb\&. By default the data will be restored back into the same database as it was created from\&. By specifying dbname you can restore the data into a different database\&. >X.SS "setdbreadonly \fIDB\fR" >X.PP >XThis command will enable the read\-only record support for a database\&. This is an experimental feature to improve performance for contended records primarily in locking\&.tdb and brlock\&.tdb\&. When enabling this feature you must set it on all nodes in the cluster\&. >X.SS "setdbsticky \fIDB\fR" >X.PP >XThis command will enable the sticky record support for the specified database\&. This is an experimental feature to improve performance for contended records primarily in locking\&.tdb and brlock\&.tdb\&. When enabling this feature you must set it on all nodes in the cluster\&. >X.SH "INTERNAL COMMANDS" >X.PP >XInternal commands are used by CTDB\*(Aqs scripts and are not required for managing a CTDB cluster\&. Their parameters and behaviour are subject to change\&. >X.SS "gettickles \fIIPADDR\fR" >X.PP >XShow TCP connections that are registered with CTDB to be "tickled" if there is a failover\&. >X.SS "gratarp \fIIPADDR\fR \fIINTERFACE\fR" >X.PP >XSend out a gratuitous ARP for the specified interface through the specified interface\&. This command is mainly used by the ctdb eventscripts\&. >X.SS "pdelete \fIDB\fR \fIKEY\fR" >X.PP >XDelete KEY from DB\&. >X.SS "pfetch \fIDB\fR \fIKEY\fR" >X.PP >XPrint the value associated with KEY in DB\&. >X.SS "pstore \fIDB\fR \fIKEY\fR \fIFILE\fR" >X.PP >XStore KEY in DB with contents of FILE as the associated value\&. >X.SS "ptrans \fIDB\fR [\fIFILE\fR]" >X.PP >XRead a list of key\-value pairs, one per line from FILE, and store them in DB using a single transaction\&. An empty value is equivalent to deleting the given key\&. >X.PP >XThe key and value should be separated by spaces or tabs\&. Each key/value should be a printable string enclosed in double\-quotes\&. >X.SS "runstate [setup|first_recovery|startup|running]" >X.PP >XPrint the runstate of the specified node\&. Runstates are used to serialise important state transitions in CTDB, particularly during startup\&. >X.PP >XIf one or more optional runstate arguments are specified then the node must be in one of these runstates for the command to succeed\&. >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBExample\fR >X.RS 4 >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X# ctdb runstate >XRUNNING >X >X.fi >X.if n \{\ >X.RE >X.\} >X.RE >X.SS "setifacelink \fIIFACE\fR up|down" >X.PP >XSet the internal state of network interface IFACE\&. This is typically used in the >X10\&.interface >Xscript in the "monitor" event\&. >X.PP >XExample: ctdb setifacelink eth0 up >X.SS "tickle" >X.PP >XRead a list of TCP connections, one per line, from standard input and send a TCP tickle to the source host for each connection\&. A connection is specified as: >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X \fISRC\-IPADDR\fR:\fISRC\-PORT\fR \fIDST\-IPADDR\fR:\fIDST\-PORT\fR >X >X.fi >X.if n \{\ >X.RE >X.\} >X.PP >XA single connection can be specified on the command\-line rather than on standard input\&. >X.PP >XA TCP tickle is a TCP ACK packet with an invalid sequence and acknowledge number and will when received by the source host result in it sending an immediate correct ACK back to the other end\&. >X.PP >XTCP tickles are useful to "tickle" clients after a IP failover has occurred since this will make the client immediately recognize the TCP connection has been disrupted and that the client will need to reestablish\&. This greatly speeds up the time it takes for a client to detect and reestablish after an IP failover in the ctdb cluster\&. >X.SS "version" >X.PP >XDisplay the CTDB version\&. >X.SH "DEBUGGING COMMANDS" >X.PP >XThese commands are primarily used for CTDB development and testing and should not be used for normal administration\&. >X.SS "OPTIONS" >X.PP >X\-\-print\-emptyrecords >X.RS 4 >XThis enables printing of empty records when dumping databases with the catdb, cattbd and dumpdbbackup commands\&. Records with empty data segment are considered deleted by ctdb and cleaned by the vacuuming mechanism, so this switch can come in handy for debugging the vacuuming behaviour\&. >X.RE >X.PP >X\-\-print\-datasize >X.RS 4 >XThis lets database dumps (catdb, cattdb, dumpdbbackup) print the size of the record data instead of dumping the data contents\&. >X.RE >X.PP >X\-\-print\-lmaster >X.RS 4 >XThis lets catdb print the lmaster for each record\&. >X.RE >X.PP >X\-\-print\-hash >X.RS 4 >XThis lets database dumps (catdb, cattdb, dumpdbbackup) print the hash for each record\&. >X.RE >X.PP >X\-\-print\-recordflags >X.RS 4 >XThis lets catdb and dumpdbbackup print the record flags for each record\&. Note that cattdb always prints the flags\&. >X.RE >X.SS "process\-exists \fIPID\fR \fI[SRVID]\fR" >X.PP >XThis command checks if a specific process exists on the CTDB host\&. This is mainly used by Samba to check if remote instances of samba are still running or not\&. When the optional SRVID argument is specified, the command check if a specific process exists on the CTDB host and has registered for specified SRVID\&. >X.SS "getdbstatus \fIDB\fR" >X.PP >XThis command displays more details about a database\&. >X.sp >X.it 1 an-trap >X.nr an-no-space-flag 1 >X.nr an-break-flag 1 >X.br >X.ps +1 >X\fBExample\fR >X.RS 4 >X.sp >X.if n \{\ >X.RS 4 >X.\} >X.nf >X# ctdb getdbstatus test\&.tdb\&.0 >Xdbid: 0x122224da >Xname: test\&.tdb >Xpath: /var/lib/ctdb/test\&.tdb\&.0 >XPERSISTENT: no >XHEALTH: OK >X >X# ctdb getdbstatus registry\&.tdb # with a corrupted TDB >Xdbid: 0xf2a58948 >Xname: registry\&.tdb >Xpath: /var/lib/ctdb/persistent/registry\&.tdb\&.0 >XPERSISTENT: yes >XHEALTH: NO\-HEALTHY\-NODES \- ERROR \- Backup of corrupted TDB in \*(Aq/var/lib/ctdb/persistent/registry\&.tdb\&.0\&.corrupted\&.20091208091949\&.0Z\*(Aq >X >X.fi >X.if n \{\ >X.RE >X.\} >X.RE >X.SS "catdb \fIDB\fR" >X.PP >XPrint a dump of the clustered TDB database DB\&. >X.SS "cattdb \fIDB\fR" >X.PP >XPrint a dump of the contents of the local TDB database DB\&. >X.SS "dumpdbbackup \fIFILE\fR" >X.PP >XPrint a dump of the contents from database backup FILE, similar to >X\fBcatdb\fR\&. >X.SS "wipedb \fIDB\fR" >X.PP >XRemove all contents of database DB\&. >X.SS "recover" >X.PP >XThis command will trigger the recovery daemon to do a cluster recovery\&. >X.SS "ipreallocate, sync" >X.PP >XThis command will force the recovery master to perform a full ip reallocation process and redistribute all ip addresses\&. This is useful to "reset" the allocations back to its default state if they have been changed using the "moveip" command\&. While a "recover" will also perform this reallocation, a recovery is much more hevyweight since it will also rebuild all the databases\&. >X.SS "attach \fIDBNAME\fR [persistent|replicated]" >X.PP >XCreate a new CTDB database called DBNAME and attach to it on all nodes\&. >X.SS "detach \fIDB\-LIST\fR" >X.PP >XDetach specified non\-persistent database(s) from the cluster\&. This command will disconnect specified database(s) on all nodes in the cluster\&. This command should only be used when none of the specified database(s) are in use\&. >X.PP >XAll nodes should be active and tunable AllowClientDBAccess should be disabled on all nodes before detaching databases\&. >X.SS "dumpmemory" >X.PP >XThis is a debugging command\&. This command will make the ctdb daemon to write a fill memory allocation map to standard output\&. >X.SS "rddumpmemory" >X.PP >XThis is a debugging command\&. This command will dump the talloc memory allocation tree for the recovery daemon to standard output\&. >X.SS "ban \fIBANTIME\fR" >X.PP >XAdministratively ban a node for BANTIME seconds\&. The node will be unbanned after BANTIME seconds have elapsed\&. >X.PP >XA banned node does not participate in the cluster\&. It does not host any records for the clustered TDB and does not host any public IP addresses\&. >X.PP >XNodes are automatically banned if they misbehave\&. For example, a node may be banned if it causes too many cluster recoveries\&. >X.PP >XTo administratively exclude a node from a cluster use the >X\fBstop\fR >Xcommand\&. >X.SS "unban" >X.PP >XThis command is used to unban a node that has either been administratively banned using the ban command or has been automatically banned\&. >X.SH "SEE ALSO" >X.PP >X\fBctdbd\fR(1), >X\fBonnode\fR(1), >X\fBctdb\fR(7), >X\fBctdb-statistics\fR(7), >X\fBctdb-tunables\fR(7), >X\m[blue]\fB\%http://ctdb.samba.org/\fR\m[] >X.SH "AUTHOR" >X.br >X.PP >XThis documentation was written by Ronnie Sahlberg, Amitay Isaacs, Martin Schwenke >X.SH "COPYRIGHT" >X.br >XCopyright \(co 2007 Andrew Tridgell, Ronnie Sahlberg >X.br >X.PP >XThis program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version\&. >X.PP >XThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&. See the GNU General Public License for more details\&. >X.PP >XYou should have received a copy of the GNU General Public License along with this program; if not, see >X\m[blue]\fB\%http://www.gnu.org/licenses\fR\m[]\&. >X.sp >9aea3a54722cc0e4b493132e4cdc05f5 >echo x - inofficial/samba413/files/man/ldbmodify.1 >sed 's/^X//' >inofficial/samba413/files/man/ldbmodify.1 << 'bd8a8fc02ff008f89f614055874666f9' >X'\" t >X.\" Title: ldbmodify >X.\" Author: [see the "AUTHOR" section] >X.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> >X.\" Date: 09/23/2020 >X.\" Manual: System Administration tools >X.\" Source: LDB 1.1 >X.\" Language: English >X.\" >X.TH "LDBMODIFY" "1" "09/23/2020" "LDB 1\&.1" "System Administration tools" >X.\" ----------------------------------------------------------------- >X.\" * Define some portability stuff >X.\" ----------------------------------------------------------------- >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.\" http://bugs.debian.org/507673 >X.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html >X.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >X.ie \n(.g .ds Aq \(aq >X.el .ds Aq ' >X.\" ----------------------------------------------------------------- >X.\" * set default formatting >X.\" ----------------------------------------------------------------- >X.\" disable hyphenation >X.nh >X.\" disable justification (adjust text to left margin only) >X.ad l >X.\" ----------------------------------------------------------------- >X.\" * MAIN CONTENT STARTS HERE * >X.\" ----------------------------------------------------------------- >X.SH "NAME" >Xldbmodify \- Modify records in a LDB database >X.SH "SYNOPSIS" >X.HP \w'\fBldbmodify\fR\ 'u >X\fBldbmodify\fR [\-H\ LDB\-URL] [ldif\-file] >X.SH "DESCRIPTION" >X.PP >Xldbmodify changes, adds and deletes records in a LDB database\&. The changes that should be made to the LDB database are read from the specified LDIF\-file\&. If \- is specified as the filename, input is read from stdin\&. >X.PP >XFor now, see ldapmodify(1) for details on the LDIF file format\&. >X.SH "OPTIONS" >X.PP >X\-H <ldb\-url> >X.RS 4 >XLDB URL to connect to\&. See ldb(3) for details\&. >X.RE >X.SH "ENVIRONMENT" >X.PP >XLDB_URL >X.RS 4 >XLDB URL to connect to (can be overridden by using the \-H command\-line option\&.) >X.RE >X.SH "VERSION" >X.PP >XThis man page is correct for version 1\&.1 of LDB\&. >X.SH "SEE ALSO" >X.PP >Xldb(3), ldbedit >X.SH "AUTHOR" >X.PP >Xldb was written by >X\m[blue]\fBAndrew Tridgell\fR\m[]\&\s-2\u[1]\d\s+2\&. >X.PP >XIf you wish to report a problem or make a suggestion then please see the >X\m[blue]\fB\%http://ldb.samba.org/\fR\m[] >Xweb site for current contact and maintainer information\&. >X.PP >XThis manpage was written by Jelmer Vernooij\&. >X.SH "NOTES" >X.IP " 1." 4 >XAndrew Tridgell >X.RS 4 >X\%https://www.samba.org/~tridge/ >X.RE >bd8a8fc02ff008f89f614055874666f9 >echo x - inofficial/samba413/files/patch-source3_modules_vfs__fruit.c >sed 's/^X//' >inofficial/samba413/files/patch-source3_modules_vfs__fruit.c << '4565d0ce30b2b8501c06ffb4d1bb3a04' >XFrom d9b748869a8f4018ebee302aae8246bf29f60309 Mon Sep 17 00:00:00 2001 >XFrom: "Timur I. Bakeyev" <timur@iXsystems.com> >XDate: Fri, 1 Jun 2018 01:35:08 +0800 >XSubject: [PATCH] vfs_fruit: allow broken AFP_Signature where the first >X byte is 0 >X >XFreeBSD bug ... caused the first byte of the AFP_AfpInfo xattr to be 0 >Xinstead of 'A'. This hack allows such broken AFP_AfpInfo blobs to be >Xparsed by afpinfo_unpack(). >X >XFreeBSD Bug: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228462 >X >XSigned-off-by: Ralph Boehme <slow@samba.org> >X >X--- source3/lib/adouble.c.orig 2020-07-09 09:33:56.000000000 +0000 >X+++ source3/lib/adouble.c 2021-02-15 17:23:56.234185000 +0000 >X@@ -2665,6 +2665,8 @@ >X return AFP_INFO_SIZE; >X } >X >X+#define BROKEN_FREEBSD_AFP_Signature 0x00465000 >X+ >X /** >X * Unpack a buffer into a AfpInfo structure >X * >X@@ -2682,12 +2684,22 @@ >X ai->afpi_Version = RIVAL(data, 4); >X ai->afpi_BackupTime = RIVAL(data, 12); >X memcpy(ai->afpi_FinderInfo, (const char *)data + 16, >X- sizeof(ai->afpi_FinderInfo)); >X+ sizeof(ai->afpi_FinderInfo)); >X >X- if (ai->afpi_Signature != AFP_Signature >X- || ai->afpi_Version != AFP_Version) { >X- DEBUG(1, ("Bad AfpInfo signature or version\n")); >X+ if (ai->afpi_Signature != AFP_Signature) { >X+ DBG_WARNING("Bad AFP signature [%x]\n", ai->afpi_Signature); >X+ >X+ if (ai->afpi_Signature != BROKEN_FREEBSD_AFP_Signature) { >X+ DBG_ERR("Bad AfpInfo signature\n"); >X+ TALLOC_FREE(ai); >X+ return NULL; >X+ } >X+ } >X+ >X+ if (ai->afpi_Version != AFP_Version) { >X+ DBG_ERR("Bad AfpInfo version\n"); >X TALLOC_FREE(ai); >X+ return NULL; >X } >X >X return ai; >X--- source3/modules/vfs_fruit.c.orig 2021-01-26 07:16:58.000000000 +0000 >X+++ source3/modules/vfs_fruit.c 2021-02-15 17:26:14.147230000 +0000 >X@@ -2146,13 +2146,24 @@ >X struct fio *fio = (struct fio *)VFS_FETCH_FSP_EXTENSION(handle, fsp); >X ssize_t nread; >X int ret; >X+ char *p = (char *)data; >X >X if (fio->fake_fd) { >X return -1; >X } >X >X nread = SMB_VFS_NEXT_PREAD(handle, fsp, data, n, offset); >X- if (nread == -1 || nread == n) { >X+ >X+ if (nread == -1) { >X+ return -1; >X+ } >X+ >X+ if (nread == n) { >X+ if (offset == 0 && nread > 3 && p[0] == 0 && p[1] == 'F' && p[2] == 'P') { >X+ DBG_NOTICE("Fixing AFP_Info of [%s]\n", >X+ fsp_str_dbg(fsp)); >X+ p[0] = 'A'; >X+ } >X return nread; >X } >X >4565d0ce30b2b8501c06ffb4d1bb3a04 >echo x - inofficial/samba413/files/patch-source3_registry_tests_test__regfio.c >sed 's/^X//' >inofficial/samba413/files/patch-source3_registry_tests_test__regfio.c << '15551a63410d39029ba84d01cd65dbc8' >X--- source3/registry/tests/test_regfio.c.orig 2020-07-09 09:33:56.000000000 +0000 >X+++ source3/registry/tests/test_regfio.c 2021-02-15 17:34:37.803535000 +0000 >X@@ -25,6 +25,7 @@ >X >X #include <errno.h> >X #include <stdlib.h> >X+#include <unistd.h> >X #include <sys/types.h> >X #include <sys/stat.h> >X #include <fcntl.h> >15551a63410d39029ba84d01cd65dbc8 >echo x - inofficial/samba413/files/patch-source3_wscript >sed 's/^X//' >inofficial/samba413/files/patch-source3_wscript << 'f35db665cd065d47822b454539d4dc7b' >X--- source3/wscript.orig 2020-12-15 07:53:45.000000000 +0000 >X+++ source3/wscript 2021-02-15 17:40:36.044259000 +0000 >X@@ -71,6 +71,7 @@ >X opt.samba_add_onoff_option('sendfile-support', default=None) >X opt.samba_add_onoff_option('utmp') >X opt.samba_add_onoff_option('avahi', with_name="enable", without_name="disable") >X+ opt.samba_add_onoff_option('dnssd', with_name="enable", without_name="disable") >X opt.samba_add_onoff_option('iconv') >X opt.samba_add_onoff_option('acl-support') >X opt.samba_add_onoff_option('dnsupdate') >X@@ -851,34 +852,39 @@ >X >X if Options.options.with_utmp: >X conf.env.with_utmp = True >X- if not conf.CHECK_HEADERS('utmp.h'): conf.env.with_utmp = False >X- conf.CHECK_FUNCS('pututline pututxline updwtmp updwtmpx getutmpx getutxent') >X- conf.CHECK_STRUCTURE_MEMBER('struct utmp', 'ut_name', headers='utmp.h', >X+ if not conf.CHECK_HEADERS('utmpx.h') and not conf.CHECK_HEADERS('utmp.h'): >X+ conf.env.with_utmp = False >X+ if conf.CONFIG_SET('HAVE_UTMPX_H'): >X+ conf.DEFINE('STRUCT_UTMP', 'struct utmpx') >X+ elif conf.CONFIG_SET('HAVE_UTMP_H'): >X+ conf.DEFINE('STRUCT_UTMP', 'struct utmp') >X+ conf.CHECK_FUNCS('pututxline getutxid getutxline updwtmpx getutmpx setutxent endutxent') >X+ conf.CHECK_FUNCS('pututline getutid getutline updwtmp getutmp setutent endutent') >X+ conf.CHECK_STRUCTURE_MEMBER('STRUCT_UTMP', 'ut_name', headers='utmpx.h utmp.h', >X define='HAVE_UT_UT_NAME') >X- conf.CHECK_STRUCTURE_MEMBER('struct utmp', 'ut_user', headers='utmp.h', >X+ >X+ conf.CHECK_STRUCTURE_MEMBER('STRUCT_UTMP', 'ut_user', headers='utmpx.h utmp.h', >X define='HAVE_UT_UT_USER') >X- conf.CHECK_STRUCTURE_MEMBER('struct utmp', 'ut_id', headers='utmp.h', >X+ conf.CHECK_STRUCTURE_MEMBER('STRUCT_UTMP', 'ut_id', headers='utmpx.h utmp.h', >X define='HAVE_UT_UT_ID') >X- conf.CHECK_STRUCTURE_MEMBER('struct utmp', 'ut_host', headers='utmp.h', >X+ conf.CHECK_STRUCTURE_MEMBER('STRUCT_UTMP', 'ut_host', headers='utmpx.h utmp.h', >X define='HAVE_UT_UT_HOST') >X- conf.CHECK_STRUCTURE_MEMBER('struct utmp', 'ut_time', headers='utmp.h', >X+ conf.CHECK_STRUCTURE_MEMBER('STRUCT_UTMP', 'ut_time', headers='utmpx.h utmp.h', >X define='HAVE_UT_UT_TIME') >X- conf.CHECK_STRUCTURE_MEMBER('struct utmp', 'ut_tv', headers='utmp.h', >X+ conf.CHECK_STRUCTURE_MEMBER('STRUCT_UTMP', 'ut_tv', headers='utmpx.h utmp.h', >X define='HAVE_UT_UT_TV') >X- conf.CHECK_STRUCTURE_MEMBER('struct utmp', 'ut_type', headers='utmp.h', >X+ conf.CHECK_STRUCTURE_MEMBER('STRUCT_UTMP', 'ut_type', headers='utmpx.h utmp.h', >X define='HAVE_UT_UT_TYPE') >X- conf.CHECK_STRUCTURE_MEMBER('struct utmp', 'ut_pid', headers='utmp.h', >X+ conf.CHECK_STRUCTURE_MEMBER('STRUCT_UTMP', 'ut_pid', headers='utmpx.h utmp.h', >X define='HAVE_UT_UT_PID') >X- conf.CHECK_STRUCTURE_MEMBER('struct utmp', 'ut_exit.e_exit', headers='utmp.h', >X+ conf.CHECK_STRUCTURE_MEMBER('STRUCT_UTMP', 'ut_exit.e_exit', headers='utmpx.h utmp.h', >X define='HAVE_UT_UT_EXIT') >X- conf.CHECK_STRUCTURE_MEMBER('struct utmpx', 'ut_syslen', headers='utmpx.h', >X- define='HAVE_UX_UT_SYSLEN') >X- conf.CHECK_STRUCTURE_MEMBER('struct utmpx', 'ut_host', headers='utmpx.h', >X- define='HAVE_UX_UT_HOST') >X+ conf.CHECK_STRUCTURE_MEMBER('STRUCT_UTMP', 'ut_syslen', headers='utmpx.h utmp.h', >X+ define='HAVE_UT_UT_SYSLEN') >X conf.CHECK_CODE('struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);', >X 'PUTUTLINE_RETURNS_UTMP', headers='utmp.h', >X msg="Checking whether pututline returns pointer") >X- conf.CHECK_SIZEOF(['((struct utmp *)NULL)->ut_line'], headers='utmp.h', >X+ conf.CHECK_SIZEOF(['((STRUCT_UTMP *)NULL)->ut_line'], headers='utmpx.h utmp.h', >X define='SIZEOF_UTMP_UT_LINE', critical=False) >X if not conf.CONFIG_SET('SIZEOF_UTMP_UT_LINE'): >X conf.env.with_utmp = False >X@@ -899,6 +905,17 @@ >X else: >X conf.SET_TARGET_TYPE('avahi-common', 'EMPTY') >X conf.SET_TARGET_TYPE('avahi-client', 'EMPTY') >X+ >X+ if Options.options.with_dnssd: >X+ conf.env.with_dnssd = True >X+ if not conf.CHECK_HEADERS('dns_sd.h'): >X+ conf.env.with_dnssd = False >X+ if not conf.CHECK_FUNCS_IN('DNSServiceRegister', 'dns_sd'): >X+ conf.env.with_dnssd = False >X+ if conf.env.with_dnssd: >X+ conf.DEFINE('WITH_DNSSD_SUPPORT', 1) >X+ else: >X+ conf.SET_TARGET_TYPE('dns_sd', 'EMPTY') >X >X if Options.options.with_iconv: >X conf.env.with_iconv = True >f35db665cd065d47822b454539d4dc7b >echo x - inofficial/samba413/files/patch-buildtools_scripts_abi__gen.sh >sed 's/^X//' >inofficial/samba413/files/patch-buildtools_scripts_abi__gen.sh << '0ed3897d95873d3a74f3305b5ed443b9' >X--- buildtools/scripts/abi_gen.sh.orig 2020-07-09 09:33:55.000000000 +0000 >X+++ buildtools/scripts/abi_gen.sh 2021-02-15 16:50:13.531035000 +0000 >X@@ -9,13 +9,14 @@ >X cat <<EOF >X set height 0 >X set width 0 >X+set print sevenbit-strings on >X EOF >X-nm "$SHAREDLIB" | cut -d' ' -f2- | egrep '^[BDGTRVWS]' | grep -v @ | egrep -v ' (__bss_start|_edata|_init|_fini|_end)' | cut -c3- | sort | while read s; do >X- echo "echo $s: " >X- echo p $s >X+nm "$SHAREDLIB" | cut -d" " -f2- | awk '/^[BDGTRVWS]/ && !/@|__bss_start|_edata|_init|_fini|_end/ { print $2 }' | sort | while read s; do >X+ echo "echo $s:\\ " >X+ echo whatis $s >X done >X ) > $GDBSCRIPT >X >X # forcing the terminal avoids a problem on Fedora12 >X-TERM=none gdb -n -batch -x $GDBSCRIPT "$SHAREDLIB" < /dev/null >X+TERM=none %%GDB_CMD%% -batch -x $GDBSCRIPT "$SHAREDLIB" < /dev/null | sed -e 's/:type =/:/g' >X rm -f $GDBSCRIPT >0ed3897d95873d3a74f3305b5ed443b9 >echo x - inofficial/samba413/files/patch-dwrap >sed 's/^X//' >inofficial/samba413/files/patch-dwrap << 'ac1e4856e19bf8cbf8bf15eaa692df32' >X--- lib/dbwrap/dbwrap.c.orig 2020-07-09 09:33:56.000000000 +0000 >X+++ lib/dbwrap/dbwrap.c 2021-02-15 16:58:57.730147000 +0000 >X@@ -28,6 +28,9 @@ >X #include "lib/util/util_tdb.h" >X #include "lib/util/tevent_ntstatus.h" >X >X+#undef DBGC_CLASS >X+#define DBGC_CLASS DBGC_LOCKING >X+ >X /* >X * Fall back using fetch if no genuine exists operation is provided >X */ >X--- lib/dbwrap/dbwrap_local_open.c.orig 2020-07-09 09:33:56.000000000 +0000 >X+++ lib/dbwrap/dbwrap_local_open.c 2021-02-15 16:58:57.731931000 +0000 >X@@ -23,6 +23,9 @@ >X #include "dbwrap/dbwrap_tdb.h" >X #include "tdb.h" >X >X+#undef DBGC_CLASS >X+#define DBGC_CLASS DBGC_LOCKING >X+ >X struct db_context *dbwrap_local_open(TALLOC_CTX *mem_ctx, >X const char *name, >X int hash_size, int tdb_flags, >X--- lib/dbwrap/dbwrap_rbt.c.orig 2020-07-09 09:33:56.000000000 +0000 >X+++ lib/dbwrap/dbwrap_rbt.c 2021-02-15 16:58:57.732765000 +0000 >X@@ -24,6 +24,9 @@ >X #include "../lib/util/rbtree.h" >X #include "../lib/util/dlinklist.h" >X >X+#undef DBGC_CLASS >X+#define DBGC_CLASS DBGC_LOCKING >X+ >X #define DBWRAP_RBT_ALIGN(_size_) (((_size_)+15)&~15) >X >X struct db_rbt_ctx { >X--- lib/dbwrap/dbwrap_tdb.c.orig 2020-07-09 09:33:56.000000000 +0000 >X+++ lib/dbwrap/dbwrap_tdb.c 2021-02-15 16:58:57.733546000 +0000 >X@@ -29,6 +29,9 @@ >X #include "lib/param/param.h" >X #include "libcli/util/error.h" >X >X+#undef DBGC_CLASS >X+#define DBGC_CLASS DBGC_LOCKING >X+ >X struct db_tdb_ctx { >X struct tdb_wrap *wtdb; >X >X--- lib/dbwrap/dbwrap_util.c.orig 2020-07-09 09:33:56.000000000 +0000 >X+++ lib/dbwrap/dbwrap_util.c 2021-02-15 16:58:57.734376000 +0000 >X@@ -26,6 +26,9 @@ >X #include "dbwrap.h" >X #include "lib/util/util_tdb.h" >X >X+#undef DBGC_CLASS >X+#define DBGC_CLASS DBGC_LOCKING >X+ >X struct dbwrap_fetch_int32_state { >X NTSTATUS status; >X int32_t result; >X--- source3/lib/dbwrap/dbwrap_ctdb.c.orig 2020-07-09 09:33:56.000000000 +0000 >X+++ source3/lib/dbwrap/dbwrap_ctdb.c 2021-02-15 16:58:57.735408000 +0000 >X@@ -38,6 +38,9 @@ >X #include "lib/cluster_support.h" >X #include "lib/util/tevent_ntstatus.h" >X >X+#undef DBGC_CLASS >X+#define DBGC_CLASS DBGC_LOCKING >X+ >X struct db_ctdb_transaction_handle { >X struct db_ctdb_ctx *ctx; >X /* >X--- source3/lib/dbwrap/dbwrap_open.c.orig 2020-07-09 09:33:56.000000000 +0000 >X+++ source3/lib/dbwrap/dbwrap_open.c 2021-02-15 16:58:57.736524000 +0000 >X@@ -31,6 +31,9 @@ >X #include "ctdbd_conn.h" >X #include "messages.h" >X >X+#undef DBGC_CLASS >X+#define DBGC_CLASS DBGC_LOCKING >X+ >X bool db_is_local(const char *name) >X { >X const char *sockname = lp_ctdbd_socket(); >X--- source3/lib/dbwrap/dbwrap_watch.c.orig 2020-07-09 09:33:56.000000000 +0000 >X+++ source3/lib/dbwrap/dbwrap_watch.c 2021-02-15 16:58:57.737420000 +0000 >X@@ -28,6 +28,9 @@ >X #include "server_id_watch.h" >X #include "lib/dbwrap/dbwrap_private.h" >X >X+#undef DBGC_CLASS >X+#define DBGC_CLASS DBGC_LOCKING >X+ >X struct dbwrap_watcher { >X /* >X * Process watching this record >ac1e4856e19bf8cbf8bf15eaa692df32 >echo x - inofficial/samba413/files/patch-dynconfig_wscript >sed 's/^X//' >inofficial/samba413/files/patch-dynconfig_wscript << '2bf1f6d7404ce3ab350512107d1f0a94' >X--- dynconfig/wscript.orig 2020-07-09 09:33:56.000000000 +0000 >X+++ dynconfig/wscript 2021-02-15 17:01:01.953514000 +0000 >X@@ -146,6 +146,8 @@ >X 'PKGCONFIGDIR' : { >X 'STD-PATH': '${LIBDIR}/pkgconfig', >X 'FHS-PATH': '${LIBDIR}/pkgconfig', >X+ 'OPTION': '--with-pkgconfigdir', >X+ 'HELPTEXT': 'Where to put .pc files', >X }, >X 'CODEPAGEDIR' : { >X 'STD-PATH': '${DATADIR}/codepages', >X@@ -252,8 +254,8 @@ >X 'DELAY': True, >X }, >X 'CONFIGFILE' : { >X- 'STD-PATH': '${CONFIGDIR}/smb.conf', >X- 'FHS-PATH': '${CONFIGDIR}/smb.conf', >X+ 'STD-PATH': '${CONFIGDIR}/%%SAMBA4_CONFIG%%', >X+ 'FHS-PATH': '${CONFIGDIR}/%%SAMBA4_CONFIG%%', >X 'DELAY': True, >X }, >X 'LMHOSTSFILE' : { >X@@ -312,9 +314,6 @@ >X flavor = 'FHS-PATH' >X else: >X flavor = 'STD-PATH' >X- if conf.env.PREFIX == '/usr' or conf.env.PREFIX == '/usr/local': >X- Logs.error("Don't install directly under /usr or /usr/local without using the FHS option (--enable-fhs)") >X- raise Errors.WafError("ERROR: invalid --prefix=%s value" % (conf.env.PREFIX)) >X >X explicit_set ={} >X >2bf1f6d7404ce3ab350512107d1f0a94 >echo x - inofficial/samba413/files/patch-source3_wscript__build >sed 's/^X//' >inofficial/samba413/files/patch-source3_wscript__build << '63bbf27c647e092ea1d9bae0e1271e49' >X--- source3/wscript_build.orig 2021-01-26 07:16:58.000000000 +0000 >X+++ source3/wscript_build 2021-02-15 17:41:24.676651000 +0000 >X@@ -233,11 +233,9 @@ >X talloc >X replace >X util_reg >X- samba-util >X- samba-security >X errors3 >X dbwrap >X- samba3-util >X+ samba3util >X ''') >X >X # Do not link against this use 'smbconf' >X@@ -495,7 +493,7 @@ >X >X bld.SAMBA3_LIBRARY('smbldap', >X source='lib/smbldap.c', >X- deps='ldap lber samba-util smbconf', >X+ deps='ldap lber samba3util smbd_shim samba-debug smbconf', >X enabled=bld.CONFIG_SET("HAVE_LDAP"), >X private_library=False, >X abi_directory='lib/ABI', >X@@ -716,6 +714,7 @@ >X samba3core >X param_service >X AVAHI >X+ dns_sd >X PRINTBASE >X PROFILE >X LOCKING >X@@ -1124,6 +1123,7 @@ >X msrpc3 >X RPC_NDR_SRVSVC >X cli_smb_common >X+ dns_sd >X archive >X ''') >X >X@@ -1148,8 +1148,8 @@ >X enabled=bld.CONFIG_SET('HAVE_CUPS')) >X >X bld.SAMBA3_BINARY('smbspool_argv_wrapper', >X- source='script/tests/smbspool_argv_wrapper.c', >X- for_selftest=True) >X+ source='script/tests/smbspool_argv_wrapper.c', >X+ for_selftest=True) >X >X bld.SAMBA3_BINARY('locktest2', >X source='torture/locktest2.c', >X@@ -1298,7 +1298,7 @@ >X smbconf >X SMBREADLINE >X ''', >X- for_selftest=True) >X+ install=True) >X >X bld.SAMBA3_BINARY('versiontest', >X source='lib/version_test.c', >63bbf27c647e092ea1d9bae0e1271e49 >echo x - inofficial/samba413/files/patch-source3_include_includes.h >sed 's/^X//' >inofficial/samba413/files/patch-source3_include_includes.h << '93fc9e975715096b38247c2aee455208' >X--- source3/include/includes.h.orig 2020-07-09 09:33:56.000000000 +0000 >X+++ source3/include/includes.h 2021-02-15 17:13:02.454877000 +0000 >X@@ -327,6 +327,8 @@ >X * the *bottom* of include files so as not to conflict. */ >X #ifdef ENABLE_DMALLOC >X # include <dmalloc.h> >X+#elif ENABLE_JEMALLOC >X+# include <jemalloc/jemalloc.h> >X #endif >X >X >93fc9e975715096b38247c2aee455208 >echo x - inofficial/samba413/files/patch-source3_modules_vfs__virusfilter__utils.c >sed 's/^X//' >inofficial/samba413/files/patch-source3_modules_vfs__virusfilter__utils.c << '6650cbc2aba6d2bf742be7694eb74602' >X--- source3/modules/vfs_virusfilter_utils.c.orig 2020-07-09 09:33:56.000000000 +0000 >X+++ source3/modules/vfs_virusfilter_utils.c 2021-02-15 17:33:56.933222000 +0000 >X@@ -399,6 +399,10 @@ >X >X bool PRINTF_ATTRIBUTE(2, 3) virusfilter_io_writefl( >X struct virusfilter_io_handle *io_h, >X+ const char *data_fmt, ...) PRINTF_ATTRIBUTE(2, 3); >X+ >X+bool virusfilter_io_writefl( >X+ struct virusfilter_io_handle *io_h, >X const char *data_fmt, ...) >X { >X va_list ap; >X@@ -422,6 +426,10 @@ >X >X bool PRINTF_ATTRIBUTE(2, 0) virusfilter_io_vwritefl( >X struct virusfilter_io_handle *io_h, >X+ const char *data_fmt, va_list ap) PRINTF_ATTRIBUTE(2, 0); >X+ >X+bool virusfilter_io_vwritefl( >X+ struct virusfilter_io_handle *io_h, >X const char *data_fmt, va_list ap) >X { >X char data[VIRUSFILTER_IO_BUFFER_SIZE + VIRUSFILTER_IO_EOL_SIZE]; >X@@ -671,6 +679,11 @@ >X } >X >X bool PRINTF_ATTRIBUTE(3, 4) virusfilter_io_writefl_readl( >X+ struct virusfilter_io_handle *io_h, >X+ char **read_line, >X+ const char *fmt, ...) PRINTF_ATTRIBUTE(3, 4); >X+ >X+bool virusfilter_io_writefl_readl( >X struct virusfilter_io_handle *io_h, >X char **read_line, >X const char *fmt, ...) >6650cbc2aba6d2bf742be7694eb74602 >echo x - inofficial/samba413/files/patch-source4_kdc_kdc-service-mit.c >sed 's/^X//' >inofficial/samba413/files/patch-source4_kdc_kdc-service-mit.c << 'a91a258c570b96fe81ab99a1e7d75ae1' >X--- source4/kdc/kdc-service-mit.c.orig 2019-01-15 10:07:00 UTC >X+++ source4/kdc/kdc-service-mit.c >X@@ -36,9 +36,13 @@ >X #include "kdc/samba_kdc.h" >X #include "kdc/kdc-server.h" >X #include "kdc/kpasswd-service.h" >X-#include <kadm5/admin.h> >X #include <kdb.h> >X >X+#pragma clang diagnostic push >X+#pragma clang diagnostic ignored "-Wstrict-prototypes" >X+#include <kadm5/admin.h> >X+#pragma clang diagnostic pop >X+ >X #include "source4/kdc/mit_kdc_irpc.h" >X >X /* PROTOTYPES */ >a91a258c570b96fe81ab99a1e7d75ae1 >echo x - inofficial/samba413/files/patch-buildtools_wafsamba_samba__install.py >sed 's/^X//' >inofficial/samba413/files/patch-buildtools_wafsamba_samba__install.py << '7da26ee42330f2191ea0022f3900f3d0' >X--- buildtools/wafsamba/samba_install.py.orig 2020-07-09 09:33:55.000000000 +0000 >X+++ buildtools/wafsamba/samba_install.py 2021-02-15 16:53:07.652758000 +0000 >X@@ -115,7 +115,7 @@ >X inst_name = bld.make_libname(t.target) >X elif self.vnum: >X vnum_base = self.vnum.split('.')[0] >X- install_name = bld.make_libname(target_name, version=self.vnum) >X+ install_name = bld.make_libname(target_name, version=vnum_base) >X install_link = bld.make_libname(target_name, version=vnum_base) >X inst_name = bld.make_libname(t.target) >X if not self.private_library or not t.env.SONAME_ST: >7da26ee42330f2191ea0022f3900f3d0 >echo x - inofficial/samba413/files/pkg-message.in >sed 's/^X//' >inofficial/samba413/files/pkg-message.in << 'a9a844fb5cb8798cf025951885a26936' >X[ >X{ type: install >X message: <<EOM >XHow to start: http://wiki.samba.org/index.php/Samba4/HOWTO >X >X* Your configuration is: %%SAMBA4_CONFDIR%%/%%SAMBA4_CONFIG%% >X >X* All the relevant databases are under: %%SAMBA4_LOCKDIR%% >X >X* All the logs are under: %%SAMBA4_LOGDIR%% >X >X%%AD_DC%%* Provisioning script is: %%PREFIX%%/bin/samba-tool >X%%AD_DC%% >X%%NSUPDATE%%You will need to specify location of the 'nsupdate' command in the >X%%NSUPDATE%%%%SAMBA4_CONFIG%% file: >X%%NSUPDATE%% >X%%NSUPDATE%% nsupdate command = %%PREFIX%%/bin/samba-nsupdate -g >X%%NSUPDATE%% >XFor additional documentation check: http://wiki.samba.org/index.php/Samba4 >X >XBug reports should go to the: https://bugzilla.samba.org/ >XEOM >X} >X] >a9a844fb5cb8798cf025951885a26936 >echo x - inofficial/samba413/files/patch-mdns >sed 's/^X//' >inofficial/samba413/files/patch-mdns << 'ed49afe899674482d13db8140a2051ad' >XFrom 923bc7a1afeb0b920e60e14846987ae1d2d7dca4 Mon Sep 17 00:00:00 2001 >XFrom: John Hixson <john@ixsystems.com> >XDate: Thu, 7 Dec 2017 09:36:32 -0500 >XSubject: [PATCH] Freenas/master mdns fixes (#22) >X >X* mDNS fixes for Samba (work in progress). >X >X* Fix mDNS - Can advertise on individual interfaces >X >X* Fix mDNS browsing in smbclient >X >XSigned-off-by: Timur I. Bakeyev <timur@iXsystems.com> >X >X--- source3/client/dnsbrowse.c.orig 2019-01-15 10:07:00 UTC >X+++ source3/client/dnsbrowse.c >X@@ -39,6 +39,7 @@ struct mdns_smbsrv_result >X struct mdns_browse_state >X { >X struct mdns_smbsrv_result *listhead; /* Browse result list head */ >X+ TALLOC_CTX * ctx; >X int browseDone; >X >X }; >X@@ -64,7 +65,7 @@ static void do_smb_resolve(struct mdns_s >X struct timeval tv; >X DNSServiceErrorType err; >X >X- TALLOC_CTX * ctx = talloc_tos(); >X+ TALLOC_CTX * ctx = talloc_new(NULL); >X >X err = DNSServiceResolve(&mdns_conn_sdref, 0 /* flags */, >X browsesrv->ifIndex, >X@@ -91,7 +92,7 @@ static void do_smb_resolve(struct mdns_s >X } >X } >X >X- TALLOC_FREE(fdset); >X+ TALLOC_FREE(ctx); >X DNSServiceRefDeallocate(mdns_conn_sdref); >X } >X >X@@ -124,18 +125,19 @@ do_smb_browse_reply(DNSServiceRef sdRef, >X return; >X } >X >X- bresult = talloc_array(talloc_tos(), struct mdns_smbsrv_result, 1); >X+ bresult = talloc_array(bstatep->ctx, struct mdns_smbsrv_result, 1); >X if (bresult == NULL) { >X return; >X } >X >X+ bresult->nextResult = NULL; >X if (bstatep->listhead != NULL) { >X bresult->nextResult = bstatep->listhead; >X } >X >X- bresult->serviceName = talloc_strdup(talloc_tos(), serviceName); >X- bresult->regType = talloc_strdup(talloc_tos(), regtype); >X- bresult->domain = talloc_strdup(talloc_tos(), replyDomain); >X+ bresult->serviceName = talloc_strdup(bstatep->ctx, serviceName); >X+ bresult->regType = talloc_strdup(bstatep->ctx, regtype); >X+ bresult->domain = talloc_strdup(bstatep->ctx, replyDomain); >X bresult->ifIndex = interfaceIndex; >X bstatep->listhead = bresult; >X } >X@@ -151,10 +153,13 @@ int do_smb_browse(void) >X DNSServiceRef mdns_conn_sdref = NULL; >X DNSServiceErrorType err; >X >X- TALLOC_CTX * ctx = talloc_stackframe(); >X+ TALLOC_CTX * ctx = talloc_new(NULL); >X >X ZERO_STRUCT(bstate); >X >X+ bstate.ctx = ctx; >X+ bstate.listhead = NULL; >X+ >X err = DNSServiceBrowse(&mdns_conn_sdref, 0, 0, "_smb._tcp", "", >X do_smb_browse_reply, &bstate); >X >X--- source3/smbd/dnsregister.c.orig 2019-01-15 10:07:00 UTC >X+++ source3/smbd/dnsregister.c >X@@ -29,6 +29,29 @@ >X * browse for advertised SMB services. >X */ >X >X+/* >X+ * Time Machine Errata: >X+ * sys=adVF=0x100 -- this is required when ._adisk._tcp is present on device. When it is >X+ * set, the MacOS client will send a NetShareEnumAll IOCTL and shares will be visible. >X+ * Otherwise, Finder will only see the Time Machine share. In the absence of ._adisk._tcp >X+ * MacOS will _always_ send NetShareEnumAll IOCTL. >X+ * >X+ * waMa=0 -- MacOS server uses waMa=0, while embedded devices have it set to their Mac Address. >X+ * Speculation in Samba-Technical indicates that this stands for "Wireless AirDisk Mac Address". >X+ * >X+ * adVU -- AirDisk Volume UUID. Mac OS servers generate a UUID. Time machine over SMB works without one >X+ * set. Netatalk generates a UUID and stores it persistently in afp_voluuid.conf. This can be >X+ * set by adding the share parameter "fruit:volume_uuid = " >X+ * >X+ * dk(n)=adVF= >X+ * 0xa1, 0x81 - AFP support >X+ * 0xa2, 0x82 - SMB support >X+ * 0xa3, 0x83 - AFP and SMB support >X+ * >X+ * adVN -- AirDisk Volume Name. We set this to the share name. >X+ * >X+ */ >X+ >X #define DNS_REG_RETRY_INTERVAL (5*60) /* in seconds */ >X >X #ifdef WITH_DNSSD_SUPPORT >X@@ -36,85 +59,177 @@ >X #include <dns_sd.h> >X >X struct dns_reg_state { >X- struct tevent_context *event_ctx; >X- uint16_t port; >X- DNSServiceRef srv_ref; >X- struct tevent_timer *te; >X- int fd; >X- struct tevent_fd *fde; >X+ int count; >X+ struct reg_state { >X+ DNSServiceRef srv_ref; >X+ TALLOC_CTX *mem_ctx; >X+ struct tevent_context *event_ctx; >X+ struct tevent_timer *te; >X+ struct tevent_fd *fde; >X+ uint16_t port; >X+ int if_index; >X+ int fd; >X+ } *drs; >X }; >X >X-static int dns_reg_state_destructor(struct dns_reg_state *dns_state) >X+static void dns_register_smbd_retry(struct tevent_context *ctx, >X+ struct tevent_timer *te, >X+ struct timeval now, >X+ void *private_data); >X+static void dns_register_smbd_fde_handler(struct tevent_context *ev, >X+ struct tevent_fd *fde, >X+ uint16_t flags, >X+ void *private_data); >X+ >X+ >X+static int reg_state_destructor(struct reg_state *state) >X { >X- if (dns_state->srv_ref != NULL) { >X+ if (state == NULL) { >X+ return -1; >X+ } >X+ >X+ if (state->srv_ref != NULL) { >X /* Close connection to the mDNS daemon */ >X- DNSServiceRefDeallocate(dns_state->srv_ref); >X- dns_state->srv_ref = NULL; >X+ DNSServiceRefDeallocate(state->srv_ref); >X+ state->srv_ref = NULL; >X } >X >X /* Clear event handler */ >X- TALLOC_FREE(dns_state->te); >X- TALLOC_FREE(dns_state->fde); >X- dns_state->fd = -1; >X+ TALLOC_FREE(state->te); >X+ TALLOC_FREE(state->fde); >X+ state->fd = -1; >X >X return 0; >X } >X >X-static void dns_register_smbd_retry(struct tevent_context *ctx, >X- struct tevent_timer *te, >X- struct timeval now, >X- void *private_data); >X-static void dns_register_smbd_fde_handler(struct tevent_context *ev, >X- struct tevent_fd *fde, >X- uint16_t flags, >X- void *private_data); >X+int TXTRecordPrintf(TXTRecordRef * rec, const char * key, const char * fmt, ... ) >X+{ >X+ int ret = 0; >X+ char *str; >X+ va_list ap; >X+ va_start( ap, fmt ); >X >X-static bool dns_register_smbd_schedule(struct dns_reg_state *dns_state, >X+ if( 0 > vasprintf(&str, fmt, ap ) ) { >X+ va_end(ap); >X+ return -1; >X+ } >X+ va_end(ap); >X+ >X+ if( kDNSServiceErr_NoError != TXTRecordSetValue(rec, key, strlen(str), str) ) { >X+ ret = -1; >X+ } >X+ >X+ free(str); >X+ return ret; >X+} >X+ >X+int TXTRecordKeyPrintf(TXTRecordRef * rec, const char * key_fmt, int key_var, const char * fmt, ...) >X+{ >X+ int ret = 0; >X+ char *key = NULL, *str = NULL; >X+ va_list ap; >X+ >X+ if( 0 > asprintf(&key, key_fmt, key_var)) { >X+ DEBUG(1, ("Failed in asprintf\n")); >X+ return -1; >X+ } >X+ >X+ va_start( ap, fmt ); >X+ if( 0 > vasprintf(&str, fmt, ap )) { >X+ va_end(ap); >X+ DEBUG(1, ("Failed in vasprintf\n")); >X+ ret = -1; >X+ goto exit; >X+ } >X+ va_end(ap); >X+ >X+ if( kDNSServiceErr_NoError != TXTRecordSetValue(rec, key, strlen(str), str) ) { >X+ DEBUG(1, ("Failed in TXTRecordSetValuen")); >X+ ret = -1; >X+ goto exit; >X+ } >X+ >X+ exit: >X+ if (str) >X+ free(str); >X+ if (key) >X+ free(key); >X+ return ret; >X+} >X+ >X+ >X+static bool dns_register_smbd_schedule(struct reg_state *state, >X struct timeval tval) >X { >X- dns_reg_state_destructor(dns_state); >X+ reg_state_destructor(state); >X >X- dns_state->te = tevent_add_timer(dns_state->event_ctx, >X- dns_state, >X+ state->te = tevent_add_timer(state->event_ctx, >X+ state->mem_ctx, >X tval, >X dns_register_smbd_retry, >X- dns_state); >X- if (!dns_state->te) { >X+ state); >X+ if (!state->te) { >X return false; >X } >X >X return true; >X } >X >X+static void dns_register_smbd_callback(DNSServiceRef service, >X+ DNSServiceFlags flags, >X+ DNSServiceErrorType errorCode, >X+ const char *name, >X+ const char *type, >X+ const char *domain, >X+ void *context) >X+{ >X+ if (errorCode != kDNSServiceErr_NoError) { >X+ DEBUG(6, ("error=%d\n", errorCode)); >X+ } else { >X+ DEBUG(6, ("%-15s %s.%s%s\n", "REGISTER", name, type, domain)); >X+ } >X+} >X+ >X static void dns_register_smbd_retry(struct tevent_context *ctx, >X struct tevent_timer *te, >X struct timeval now, >X void *private_data) >X { >X- struct dns_reg_state *dns_state = talloc_get_type_abort(private_data, >X- struct dns_reg_state); >X+ struct reg_state *state = (struct reg_state *)private_data; >X DNSServiceErrorType err; >X+ int snum; >X+ size_t dk = 0; >X+ bool sys_txt_created = false; >X+ TXTRecordRef txt_adisk; >X+ TXTRecordRef txt_devinfo; >X+ char *servname; >X+ char *v_uuid; >X+ int num_services = lp_numservices(); >X >X- dns_reg_state_destructor(dns_state); >X+ reg_state_destructor(state); >X >X- DEBUG(6, ("registering _smb._tcp service on port %d\n", >X- dns_state->port)); >X+ TXTRecordCreate(&txt_adisk, 0, NULL); >X+ >X+ DEBUG(6, ("registering _smb._tcp service on port %d index %d\n", >X+ state->port, state->if_index)); >X >X /* Register service with DNS. Connects with the mDNS >X * daemon running on the local system to perform DNS >X * service registration. >X */ >X- err = DNSServiceRegister(&dns_state->srv_ref, 0 /* flags */, >X- kDNSServiceInterfaceIndexAny, >X- NULL /* service name */, >X- "_smb._tcp" /* service type */, >X- NULL /* domain */, >X- "" /* SRV target host name */, >X- htons(dns_state->port), >X- 0 /* TXT record len */, >X- NULL /* TXT record data */, >X- NULL /* callback func */, >X- NULL /* callback context */); >X+ err = DNSServiceRegister(&state->srv_ref, >X+ 0 /* flags */, >X+ state->if_index /* interface index */, >X+ NULL /* service name */, >X+ "_smb._tcp" /* service type */, >X+ NULL /* domain */, >X+ "" /* SRV target host name */, >X+ htons(state->port) /* port */, >X+ 0 /* TXT record len */, >X+ NULL /* TXT record data */, >X+ dns_register_smbd_callback /* callback func */, >X+ NULL /* callback context */); >X+ >X >X if (err != kDNSServiceErr_NoError) { >X /* Failed to register service. Schedule a re-try attempt. >X@@ -123,24 +238,96 @@ static void dns_register_smbd_retry(stru >X goto retry; >X } >X >X- dns_state->fd = DNSServiceRefSockFD(dns_state->srv_ref); >X- if (dns_state->fd == -1) { >X+ /* >X+ * Check for services that are configured as Time Machine targets >X+ * >X+ */ >X+ for (snum = 0; snum < num_services; snum++) { >X+ if (lp_snum_ok(snum) && lp_parm_bool(snum, "fruit", "time machine", false)) >X+ { >X+ if (!sys_txt_created) { >X+ if( 0 > TXTRecordPrintf(&txt_adisk, "sys", "adVF=0x100") ) { >X+ DEBUG(1, ("Failed to create Zeroconf TXTRecord for sys") ); >X+ goto retry; >X+ } >X+ else >X+ { >X+ sys_txt_created = true; >X+ } >X+ } >X+ >X+ v_uuid = lp_parm_const_string(snum, "fruit", "volume_uuid", NULL); >X+ servname = lp_const_servicename(snum); >X+ DEBUG(1, ("Registering volume %s for TimeMachine\n", servname)); >X+ if (v_uuid) { >X+ if( 0 > TXTRecordKeyPrintf(&txt_adisk, "dk%zu", dk++, "adVN=%s,adVF=0x82,adVU=%s", >X+ servname, v_uuid) ) { >X+ DEBUG(1, ("Could not set Zeroconf TXTRecord for dk%zu \n", dk)); >X+ goto retry; >X+ } >X+ DEBUG(1, ("Registering TimeMachine with the following TXT parameters: " >X+ "dk%zu,adVN=%s,adVF=0x82,adVU=%s\n", dk, servname, v_uuid) ); >X+ } >X+ else { >X+ if( 0 > TXTRecordKeyPrintf(&txt_adisk, "dk%zu", dk++, "adVN=%s,adVF=0x82", >X+ servname) ) { >X+ DEBUG(1, ("Could not set Zeroconf TXTRecord for dk%zu \n", dk)); >X+ goto retry; >X+ } >X+ DEBUG(1, ("Registering TimeMachine with the following TXT parameters: " >X+ "dk%zu,adVN=%s,adVF=0x82\n", dk, servname) ); >X+ } >X+ } >X+ } >X+ >X+ if (dk) { >X+ err = DNSServiceRegister(&state->srv_ref, >X+ 0 /* flags */, >X+ state->if_index /* interface index */, >X+ NULL /* service name */, >X+ "_adisk._tcp" /* service type */, >X+ NULL /* domain */, >X+ "" /* SRV target host name */, >X+ /* >X+ * We would probably use port 0 zero, but we can't, from man DNSServiceRegister: >X+ * "A value of 0 for a port is passed to register placeholder services. >X+ * Place holder services are not found when browsing, but other >X+ * clients cannot register with the same name as the placeholder service." >X+ * We therefor use port 9 which is used by the adisk service type. >X+ */ >X+ htons(9) /* port */, >X+ TXTRecordGetLength(&txt_adisk) /* TXT record len */, >X+ TXTRecordGetBytesPtr(&txt_adisk) /* TXT record data */, >X+ dns_register_smbd_callback /* callback func */, >X+ NULL /* callback context */); >X+ >X+ >X+ if (err != kDNSServiceErr_NoError) { >X+ /* Failed to register service. Schedule a re-try attempt. >X+ */ >X+ DEBUG(1, ("unable to register with mDNS (err %d)\n", err)); >X+ goto retry; >X+ } >X+ } >X+ >X+ state->fd = DNSServiceRefSockFD(state->srv_ref); >X+ if (state->fd == -1) { >X goto retry; >X } >X >X- dns_state->fde = tevent_add_fd(dns_state->event_ctx, >X- dns_state, >X- dns_state->fd, >X- TEVENT_FD_READ, >X- dns_register_smbd_fde_handler, >X- dns_state); >X- if (!dns_state->fde) { >X+ state->fde = tevent_add_fd(state->event_ctx, >X+ state->mem_ctx, >X+ state->fd, >X+ TEVENT_FD_READ, >X+ dns_register_smbd_fde_handler, >X+ state); >X+ if (!state->fde) { >X goto retry; >X } >X >X return; >X retry: >X- dns_register_smbd_schedule(dns_state, >X+ dns_register_smbd_schedule(state, >X timeval_current_ofs(DNS_REG_RETRY_INTERVAL, 0)); >X } >X >X@@ -150,44 +337,77 @@ static void dns_register_smbd_fde_handle >X uint16_t flags, >X void *private_data) >X { >X- struct dns_reg_state *dns_state = talloc_get_type_abort(private_data, >X- struct dns_reg_state); >X+ struct reg_state *state = (struct reg_state *)private_data; >X DNSServiceErrorType err; >X >X- err = DNSServiceProcessResult(dns_state->srv_ref); >X+ err = DNSServiceProcessResult(state->srv_ref); >X if (err != kDNSServiceErr_NoError) { >X- DEBUG(3, ("failed to process mDNS result (err %d), re-trying\n", >X- err)); >X+ DEBUG(3, ("failed to process mDNS result (err %d), re-trying\n", err)); >X goto retry; >X } >X >X- talloc_free(dns_state); >X return; >X >X retry: >X- dns_register_smbd_schedule(dns_state, >X- timeval_current_ofs(DNS_REG_RETRY_INTERVAL, 0)); >X+ dns_register_smbd_schedule(state, timeval_zero()); >X+} >X+ >X+static int dns_reg_state_destructor(struct dns_reg_state *state) >X+{ >X+ if (state != NULL) { >X+ talloc_free(state); >X+ } >X+ return 0; >X } >X >X+ >X bool smbd_setup_mdns_registration(struct tevent_context *ev, >X TALLOC_CTX *mem_ctx, >X uint16_t port) >X { >X struct dns_reg_state *dns_state; >X+ bool bind_all = true; >X+ int i; >X >X dns_state = talloc_zero(mem_ctx, struct dns_reg_state); >X- if (dns_state == NULL) { >X+ if (dns_state == NULL) >X+ return false; >X+ >X+ if (lp_interfaces() && lp_bind_interfaces_only()) >X+ bind_all = false; >X+ >X+ dns_state->count = iface_count(); >X+ if (dns_state->count <= 0 || bind_all == true) >X+ dns_state->count = 1; >X+ >X+ dns_state->drs = talloc_array(mem_ctx, struct reg_state, dns_state->count); >X+ if (dns_state->drs == NULL) { >X+ talloc_free(dns_state); >X return false; >X } >X- dns_state->event_ctx = ev; >X- dns_state->port = port; >X- dns_state->fd = -1; >X >X- talloc_set_destructor(dns_state, dns_reg_state_destructor); >X+ for (i = 0; i < dns_state->count; i++) { >X+ struct interface *iface = get_interface(i); >X+ struct reg_state *state = &dns_state->drs[i]; >X >X- return dns_register_smbd_schedule(dns_state, timeval_zero()); >X+ state->mem_ctx = mem_ctx; >X+ state->srv_ref = NULL; >X+ state->event_ctx = ev; >X+ state->te = NULL; >X+ state->fde = NULL; >X+ state->port = port; >X+ state->fd = -1; >X+ >X+ state->if_index = bind_all ? kDNSServiceInterfaceIndexAny : iface->if_index; >X+ >X+ dns_register_smbd_schedule(&dns_state->drs[i], timeval_zero()); >X+ } >X+ >X+ talloc_set_destructor(dns_state, dns_reg_state_destructor); >X+ return true; >X } >X >X+ >X #else /* WITH_DNSSD_SUPPORT */ >X >X bool smbd_setup_mdns_registration(struct tevent_context *ev, >ed49afe899674482d13db8140a2051ad >echo x - inofficial/samba413/files/README.FreeBSD.in >sed 's/^X//' >inofficial/samba413/files/README.FreeBSD.in << '10176b6c6484155a78f594892f46e4e8' >X >X !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! >X !!! Please read before runing any tools !!! >X !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! >X >XDocumentation >X============= >X >X o https://wiki.samba.org/index.php/Samba4/HOWTO >X >X o https://wiki.samba.org/index.php/Samba_AD_DC_HOWTO >X >X o https://wiki.samba.org/index.php/Samba4/samba-tool/domain/classicupgrade/HOWTO >X >XFreeBSD specific information >X============================ >X >X* Your configuration is in: %%SAMBA4_CONFDIR%%/%%SAMBA4_CONFIG%% >X >X* All the logs are under: %%SAMBA4_LOGDIR%% >X >X* All the relevant databases are under: %%SAMBA4_LOCKDIR%% >X >X* Provisioning script is: %%PREFIX%%/bin/samba-tool >X >XSamba4 provisioning requires file system(s) with the ACLs support. On >XUFS2 you need to enable POSIX ACLs by adding 'acls' option to the mount >Xflags, on ZFS you need to use NFSv4 ACLs and `zfsacl` VFS module to get >Xprovisioning work. >X >XThere is a hack in the code, that makes provisioning work on UFS2 and in >Xthe jails on the price of using USER extattr(2) namespace, which is less >Xsecure than SYSTEM namespace, as can be edited not only by root user, but >Xalso by the owner of the file. >X >XFor the provisioning on ZFS you need to use additional parameters to the >Xsamba-tool, that would explicitly add `zfsacl` to the default `vfs objects`: >X >X # samba-tool domain provision --interactive \ >X --option="vfs objects"="dfs_samba4 zfsacl" >X >XTo run this port you need to perform the following steps: >X--------------------------------------------------------- >X >X0. If you had Samba3 port installed before, please, *take backups* of >Xall the relevant files. That includes 'smb.conf' file and all the >Xcontent of the '/var/db/samba/' directory. >X >X1a. Create new '%%SAMBA4_CONFDIR%%/%%SAMBA4_CONFIG%%' file by running: >X >X # samba-tool domain provision >X >X1b. Or upgrade from the Samba3 'smb.conf' file by running: >X >X # samba-tool domain classicupgrade >X >X%%NSUPDATE%%1c. You will need to specify location of the 'nsupdate' command in the >X%%NSUPDATE%%'%%SAMBA4_CONFIG%%' file: >X%%NSUPDATE%% >X%%NSUPDATE%% nsupdate command = %%PREFIX%%/bin/samba-nsupdate -g >X%%NSUPDATE%% >X2. Put string 'samba_server_enable="YES"' into your /etc/rc.conf. >X >X3. Make sure that your server doesn't run Samba3, OpenLDAP and named. >XStop them, if necessary. >X >X4. Run '%%PREFIX%%/etc/rc.d/samba_server start' or reboot. >X >XPlease, check archives of samba@lists.samba.org and ask there for help, >Xif necessary: >X >X https://lists.samba.org/archive/samba/ >X >XIn case you found a bug which is clearly not related to the port build >Xprocess itself, plese file a bug report at: >X >X https://bugzilla.samba.org/ >X >XAnd add me to CC list. >X >XYou may find those tools helpful: >X--------------------------------- >X >XMicrosoft Remote Server Administration Tools (RSAT) for: >X >X* Vista: http://www.microsoft.com/en-us/download/details.aspx?id=21090 >X* Windows 7: http://www.microsoft.com/en-us/download/details.aspx?id=7887 >X >X >XFreeBSD Samba4 port maintainer: Timur I. Bakeyev <timur@FreeBSD.org> >10176b6c6484155a78f594892f46e4e8 >echo x - inofficial/samba413/files/patch-source3_lib_util.c >sed 's/^X//' >inofficial/samba413/files/patch-source3_lib_util.c << 'e9fe1ad8dd35ff1266b635de75cc2f6e' >X--- source3/lib/util.c.orig 2020-07-09 09:33:56.000000000 +0000 >X+++ source3/lib/util.c 2021-02-15 17:14:51.870464000 +0000 >X@@ -1899,7 +1899,10 @@ >X >X int timeval_to_msec(struct timeval t) >X { >X- return t.tv_sec * 1000 + (t.tv_usec+999) / 1000; >X+ unsigned long result; >X+ >X+ result = t.tv_sec * 1000 + (t.tv_usec+999) / 1000; >X+ return result > INT_MAX ? INT_MAX : result; >X } >X >X /******************************************************************* >e9fe1ad8dd35ff1266b635de75cc2f6e >echo x - inofficial/samba413/files/patch-lib_ldb_ldb__key__value_ldb__kv__cache.c >sed 's/^X//' >inofficial/samba413/files/patch-lib_ldb_ldb__key__value_ldb__kv__cache.c << 'cbeb7b818f8710bb4d7e921eb30c5a42' >X--- lib/ldb/ldb_key_value/ldb_kv_cache.c.orig 2020-07-09 09:33:56.000000000 +0000 >X+++ lib/ldb/ldb_key_value/ldb_kv_cache.c 2021-02-15 17:02:58.718750000 +0000 >X@@ -92,7 +92,9 @@ >X { >X const struct ldb_schema_attribute *sa1 = (const struct ldb_schema_attribute *)p1; >X const struct ldb_schema_attribute *sa2 = (const struct ldb_schema_attribute *)p2; >X- return ldb_attr_cmp(sa1->name, sa2->name); >X+ int res = ldb_attr_cmp(sa1->name, sa2->name); >X+ >X+ return (res) ? res : (sa1->flags > sa2->flags) ? 1 : (sa1->flags < sa2->flags) ? -1 : 0; >X } >X >X /* >cbeb7b818f8710bb4d7e921eb30c5a42 >echo x - inofficial/samba413/files/patch-lib_ldb_wscript >sed 's/^X//' >inofficial/samba413/files/patch-lib_ldb_wscript << '64af040752ef425061fb02d12f4ba466' >X--- lib/ldb/wscript.orig 2020-07-09 09:33:56.000000000 +0000 >X+++ lib/ldb/wscript 2021-02-15 17:04:10.779580000 +0000 >X@@ -207,7 +207,7 @@ >X if bld.env.standalone_ldb: >X if not 'PACKAGE_VERSION' in bld.env: >X bld.env.PACKAGE_VERSION = VERSION >X- bld.env.PKGCONFIGDIR = '${LIBDIR}/pkgconfig' >X+ bld.env.PKGCONFIGDIR = '%%PKGCONFIGDIR%%' >X private_library = False >X else: >X private_library = True >X@@ -284,7 +284,6 @@ >X pc_files='ldb.pc', >X vnum=VERSION, >X private_library=private_library, >X- manpages='man/ldb.3', >X abi_directory='ABI', >X abi_match = abi_match) >X >X@@ -437,7 +436,7 @@ >X >X LDB_TOOLS='ldbadd ldbsearch ldbdel ldbmodify ldbedit ldbrename' >X for t in LDB_TOOLS.split(): >X- bld.SAMBA_BINARY(t, 'tools/%s.c' % t, deps='ldb-cmdline ldb', >X+ bld.SAMBA_BINARY('samba-%s' % t, 'tools/%s.c' % t, deps='ldb-cmdline ldb', >X manpages='man/%s.1' % t) >X >X # ldbtest doesn't get installed >X@@ -449,10 +448,10 @@ >X else: >X lmdb_deps = '' >X # ldbdump doesn't get installed >X- bld.SAMBA_BINARY('ldbdump', >X+ bld.SAMBA_BINARY('samba-ldbdump', >X 'tools/ldbdump.c', >X deps='ldb-cmdline ldb' + lmdb_deps, >X- install=False) >X+ install=True) >X >X bld.SAMBA_LIBRARY('ldb-cmdline', >X source='tools/ldbutil.c tools/cmdline.c', >X@@ -497,11 +496,6 @@ >X deps='cmocka ldb', >X install=False) >X >X- bld.SAMBA_BINARY('ldb_match_test', >X- source='tests/ldb_match_test.c', >X- deps='cmocka ldb', >X- install=False) >X- >X bld.SAMBA_BINARY('ldb_key_value_test', >X source='tests/ldb_key_value_test.c', >X deps='cmocka ldb ldb_tdb_err_map', >X@@ -628,7 +622,6 @@ >X 'ldb_msg_test', >X 'ldb_tdb_kv_ops_test', >X 'ldb_tdb_test', >X- 'ldb_match_test', >X 'ldb_key_value_test', >X # we currently don't run ldb_key_value_sub_txn_tdb_test as it >X # tests the nested/sub transaction handling >64af040752ef425061fb02d12f4ba466 >echo x - inofficial/samba413/files/patch-lib_util_wscript__build >sed 's/^X//' >inofficial/samba413/files/patch-lib_util_wscript__build << 'e4a9408972285d568cbd23199c5e92c4' >X--- lib/util/wscript_build.orig 2020-08-28 09:32:54.000000000 +0000 >X+++ lib/util/wscript_build 2021-02-15 17:07:57.270651000 +0000 >X@@ -176,7 +176,7 @@ >X >X bld.SAMBA_LIBRARY('samba-modules', >X source='modules.c', >X- deps='samba-errors samba-util', >X+ deps='samba-errors samba-util samba-debug', >X local_include=False, >X private_library=True) >X >e4a9408972285d568cbd23199c5e92c4 >echo x - inofficial/samba413/files/patch-source3_utils_net.c >sed 's/^X//' >inofficial/samba413/files/patch-source3_utils_net.c << 'df7ba320edea498aba68bb0050caaf38' >X--- source3/utils/net.c.orig 2020-07-09 09:33:56.000000000 +0000 >X+++ source3/utils/net.c 2021-02-15 17:38:30.248171000 +0000 >X@@ -1382,8 +1382,13 @@ >X lp_set_cmdline("netbios name", c->opt_requester_name); >X } >X >X- if (!c->opt_user_name && getenv("LOGNAME")) { >X- c->opt_user_name = getenv("LOGNAME"); >X+ if (!c->opt_user_name) { >X+ if(getenv("LOGNAME")) >X+ c->opt_user_name = getenv("LOGNAME"); >X+ else >X+ d_fprintf(stderr, >X+ _("Environment LOGNAME is not defined." >X+ " Trying anonymous access.\n")); >X } >X >X if (!c->opt_workgroup) { >df7ba320edea498aba68bb0050caaf38 >echo x - inofficial/samba413/files/patch-lib_talloc_wscript >sed 's/^X//' >inofficial/samba413/files/patch-lib_talloc_wscript << '5fcd46d37595417b70e062871f9a6937' >X--- lib/talloc/wscript.orig 2019-05-07 08:38:21 UTC >X+++ lib/talloc/wscript >X@@ -45,13 +45,14 @@ def configure(conf): >X conf.env.TALLOC_COMPAT1 = False >X if conf.env.standalone_talloc: >X conf.env.TALLOC_COMPAT1 = Options.options.TALLOC_COMPAT1 >X- conf.env.PKGCONFIGDIR = '${LIBDIR}/pkgconfig' >X+ conf.env.PKGCONFIGDIR = '%%PKGCONFIGDIR%%' >X conf.env.TALLOC_VERSION = VERSION >X >X conf.CHECK_XSLTPROC_MANPAGES() >X >X conf.CHECK_HEADERS('sys/auxv.h') >X conf.CHECK_FUNCS('getauxval') >X+ conf.CHECK_FUNCS('arc4random') >X >X conf.SAMBA_CONFIG_H() >X >5fcd46d37595417b70e062871f9a6937 >echo x - inofficial/samba413/files/patch-lib_talloc_talloc.c >sed 's/^X//' >inofficial/samba413/files/patch-lib_talloc_talloc.c << '476d59eb42409547b1353b3381a7f601' >X--- lib/talloc/talloc.c.orig 2020-07-09 09:33:56.000000000 +0000 >X+++ lib/talloc/talloc.c 2021-02-15 17:05:50.559749000 +0000 >X@@ -396,6 +396,9 @@ >X void talloc_lib_init(void) >X { >X uint32_t random_value; >X+#if defined(HAVE_ARC4RANDOM) >X+ random_value = arc4random(); >X+#else >X #if defined(HAVE_GETAUXVAL) && defined(AT_RANDOM) >X uint8_t *p; >X /* >X@@ -429,6 +432,7 @@ >X */ >X random_value = ((uintptr_t)talloc_lib_init & 0xFFFFFFFF); >X } >X+#endif /* HAVE_ARC4RANDOM */ >X talloc_magic = random_value & ~TALLOC_FLAG_MASK; >X } >X #else >476d59eb42409547b1353b3381a7f601 >echo x - inofficial/samba413/files/patch-third__party_wscript >sed 's/^X//' >inofficial/samba413/files/patch-third__party_wscript << '9b3e0a35e22194613c8bc375052c5f3b' >X--- third_party/wscript.orig 2020-09-15 22:45:54 UTC >X+++ third_party/wscript >X@@ -7,7 +7,6 @@ from waflib import Options, Errors >X >X # work out what python external libraries we need to install >X external_pkgs = { >X- "iso8601": "pyiso8601/iso8601", >X } >X >X >9b3e0a35e22194613c8bc375052c5f3b >echo x - inofficial/samba413/files/patch-lib_replace_wscript >sed 's/^X//' >inofficial/samba413/files/patch-lib_replace_wscript << '8810795ba88321f1222acc5fcef593f5' >X--- lib/replace/wscript.orig 2020-09-15 13:43:18.000000000 +0000 >X+++ lib/replace/wscript 2021-02-15 17:05:05.690530000 +0000 >X@@ -130,7 +130,7 @@ >X conf.CHECK_HEADERS('sys/atomic.h stdatomic.h') >X conf.CHECK_HEADERS('libgen.h') >X >X- if conf.CHECK_CFLAGS('-Wno-format-truncation'): >X+ if conf.CHECK_CFLAGS(['-Wno-format-truncation'] + conf.env.WERROR_CFLAGS): >X conf.define('HAVE_WNO_FORMAT_TRUNCATION', '1') >X >X if conf.CHECK_CFLAGS('-Wno-unused-function'): >8810795ba88321f1222acc5fcef593f5 >echo x - inofficial/samba413/files/patch-lib_tdb_wscript >sed 's/^X//' >inofficial/samba413/files/patch-lib_tdb_wscript << 'da0a967a6ea84e71a83c9b102bf0aba8' >X--- lib/tdb/wscript.orig 2019-07-02 22:39:54 UTC >X+++ lib/tdb/wscript >X@@ -145,20 +145,20 @@ def build(bld): >X 'tdb', >X install=False) >X >X- bld.SAMBA_BINARY('tdbrestore', >X+ bld.SAMBA_BINARY('samba-tdbrestore', >X 'tools/tdbrestore.c', >X 'tdb', manpages='man/tdbrestore.8') >X >X- bld.SAMBA_BINARY('tdbdump', >X+ bld.SAMBA_BINARY('samba-tdbdump', >X 'tools/tdbdump.c', >X 'tdb', manpages='man/tdbdump.8') >X >X- bld.SAMBA_BINARY('tdbbackup', >X+ bld.SAMBA_BINARY('samba-tdbbackup', >X 'tools/tdbbackup.c', >X 'tdb', >X manpages='man/tdbbackup.8') >X >X- bld.SAMBA_BINARY('tdbtool', >X+ bld.SAMBA_BINARY('samba-tdbtool', >X 'tools/tdbtool.c', >X 'tdb', manpages='man/tdbtool.8') >X >da0a967a6ea84e71a83c9b102bf0aba8 >echo x - inofficial/samba413/files/patch-source3_librpc_crypto_gse.c >sed 's/^X//' >inofficial/samba413/files/patch-source3_librpc_crypto_gse.c << '125add5be92e5fd6fd7b57a3065b587e' >X--- source3/librpc/crypto/gse.c.orig 2020-07-09 09:33:56.000000000 +0000 >X+++ source3/librpc/crypto/gse.c 2021-02-15 17:16:05.959103000 +0000 >X@@ -627,11 +627,12 @@ >X struct gse_context *gse_ctx = >X talloc_get_type_abort(gensec_security->private_data, >X struct gse_context); >X- OM_uint32 gss_maj, gss_min; >X+ OM_uint32 gss_min; >X gss_buffer_desc in_data; >X gss_buffer_desc out_data; >X DATA_BLOB blob = data_blob_null; >X NTSTATUS status; >X+ OM_uint32 gss_maj = -1; >X OM_uint32 time_rec = 0; >X struct timeval tv; >X >125add5be92e5fd6fd7b57a3065b587e >echo x - inofficial/samba413/files/patch-source3_utils_net__time.c >sed 's/^X//' >inofficial/samba413/files/patch-source3_utils_net__time.c << 'a3ace0825110a93c01360ecbcdf71ad6' >X--- source3/utils/net_time.c.orig 2020-07-09 09:33:56.000000000 +0000 >X+++ source3/utils/net_time.c 2021-02-15 17:38:59.280288000 +0000 >X@@ -82,10 +82,15 @@ >X if (!tm) { >X return "unknown"; >X } >X- >X+#if defined(FREEBSD) >X+ return talloc_asprintf(talloc_tos(), "%02d%02d%02d%02d%02d.%02d", >X+ tm->tm_year + 1900, tm->tm_mon+1, tm->tm_mday, >X+ tm->tm_hour, tm->tm_min, tm->tm_sec); >X+#else >X return talloc_asprintf(talloc_tos(), "%02d%02d%02d%02d%04d.%02d", >X tm->tm_mon+1, tm->tm_mday, tm->tm_hour, >X tm->tm_min, tm->tm_year + 1900, tm->tm_sec); >X+#endif >X } >X >X int net_time_usage(struct net_context *c, int argc, const char **argv) >a3ace0825110a93c01360ecbcdf71ad6 >echo x - inofficial/samba413/files/patch-source3_smbd_quotas.c >sed 's/^X//' >inofficial/samba413/files/patch-source3_smbd_quotas.c << '785141b2e382a256b7bd448b9afade2b' >X--- source3/smbd/quotas.c.orig 2019-01-15 10:07:00 UTC >X+++ source3/smbd/quotas.c >X@@ -125,6 +125,7 @@ static bool nfs_quotas(char *nfspath, ui >X if (!cutstr) >X return False; >X >X+ memset(&D, '\0', sizeof(D)); >X memset(cutstr, '\0', len+1); >X host = strncat(cutstr,mnttype, sizeof(char) * len ); >X DEBUG(5,("nfs_quotas: looking for mount on \"%s\"\n", cutstr)); >X@@ -133,7 +134,7 @@ static bool nfs_quotas(char *nfspath, ui >X args.gqa_pathp = testpath+1; >X args.gqa_uid = uid; >X >X- DEBUG(5,("nfs_quotas: Asking for host \"%s\" rpcprog \"%i\" rpcvers \"%i\" network \"%s\"\n", host, RQUOTAPROG, RQUOTAVERS, "udp")); >X+ DEBUG(5,("nfs_quotas: Asking for host \"%s\" rpcprog \"%lu\" rpcvers \"%lu\" network \"%s\"\n", host, RQUOTAPROG, RQUOTAVERS, "udp")); >X >X if ((clnt = clnt_create(host, RQUOTAPROG, RQUOTAVERS, "udp")) == NULL) { >X ret = False; >785141b2e382a256b7bd448b9afade2b >echo x - inofficial/samba413/files/patch-examples_pdb_wscript__build >sed 's/^X//' >inofficial/samba413/files/patch-examples_pdb_wscript__build << '3169cc2a2aae5d868e418f4e045ff0d9' >X--- examples/pdb/wscript_build.orig 2019-01-15 10:07:00 UTC >X+++ examples/pdb/wscript_build >X@@ -3,7 +3,7 @@ >X bld.SAMBA3_MODULE('pdb_test', >X subsystem='pdb', >X source='test.c', >X- deps='samba-util', >X+ deps='samba-util samba-debug', >X init_function='', >X internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_test'), >X enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_test')) >3169cc2a2aae5d868e418f4e045ff0d9 >echo x - inofficial/samba413/files/patch-buildtools_wafsamba_wafsamba.py >sed 's/^X//' >inofficial/samba413/files/patch-buildtools_wafsamba_wafsamba.py << 'f40528d63370c236b8ce8de1b5bf2646' >X--- ./buildtools/wafsamba/wafsamba.py.orig 2020-11-03 12:33:19.000000000 +0000 >X+++ ./buildtools/wafsamba/wafsamba.py 2021-02-15 16:54:37.839071000 +0000 >X@@ -942,7 +942,7 @@ >X bld.env.SAMBA_EXPAND_XSL = bld.srcnode.abspath() + '/docs-xml/xslt/expand-sambadoc.xsl' >X bld.env.SAMBA_MAN_XSL = bld.srcnode.abspath() + '/docs-xml/xslt/man.xsl' >X bld.env.SAMBA_CATALOG = bld.bldnode.abspath() + '/docs-xml/build/catalog.xml' >X- bld.env.SAMBA_CATALOGS = 'file:///etc/xml/catalog file:///usr/local/share/xml/catalog file://' + bld.env.SAMBA_CATALOG >X+ bld.env.SAMBA_CATALOGS = 'file:///etc/xml/catalog file://%%LOCALBASE%%/share/xml/catalog file://' + bld.env.SAMBA_CATALOG >X >X for m in manpages.split(): >X source = m + '.xml' >f40528d63370c236b8ce8de1b5bf2646 >echo x - inofficial/samba413/files/patch-source3_lib_sysquotas__4B.c >sed 's/^X//' >inofficial/samba413/files/patch-source3_lib_sysquotas__4B.c << 'd935b3b64b6050a3fcf7903dbd669920' >X--- source3/lib/sysquotas_4B.c.orig 2019-01-15 10:07:00 UTC >X+++ source3/lib/sysquotas_4B.c >X@@ -140,7 +140,14 @@ static int sys_quotactl_4B(const char * >X /* ENOTSUP means quota support is not compiled in. EINVAL >X * means that quotas are not configured (commonly). >X */ >X- if (errno != ENOTSUP && errno != EINVAL) { >X+ if (errno != ENOTSUP && errno != EINVAL >X+/* >X+ * FreeBSD 12 between r336017 and r342928 wrongfuly return ENOENT for the not enabled qoutas on ZFS. >X+ */ >X+#if defined(__FreeBSD__) && ((__FreeBSD_version >= 1102503 && __FreeBSD_version <= 1102506) || (__FreeBSD_version >= 1200072 && __FreeBSD_version <= 1200503) || (__FreeBSD_version >= 1300000 && __FreeBSD_version <= 1300009)) >X+ && errno != ENOENT >X+#endif >X+ ) { >X DEBUG(5, ("failed to %s quota for %s ID %u on %s: %s\n", >X (cmd & QCMD(Q_GETQUOTA, 0)) ? "get" : "set", >X (cmd & QCMD(0, GRPQUOTA)) ? "group" : "user", >d935b3b64b6050a3fcf7903dbd669920 >echo x - inofficial/samba413/files/patch-source3_torture_cmd__vfs.c >sed 's/^X//' >inofficial/samba413/files/patch-source3_torture_cmd__vfs.c << 'f748e9c9c081b6c52a1bd7ae78a6a66b' >X--- source3/torture/cmd_vfs.c.orig 2019-01-15 10:07:00 UTC >X+++ source3/torture/cmd_vfs.c >X@@ -145,7 +145,84 @@ static NTSTATUS cmd_disk_free(struct vfs_state *vfs, T >X return NT_STATUS_OK; >X } >X >X+static NTSTATUS cmd_get_quota(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) >X+{ >X+ struct smb_filename *smb_fname = NULL; >X+ uint64_t quota, bsize, dfree, dsize; >X+ enum SMB_QUOTA_TYPE qtype; >X+ SMB_DISK_QUOTA D; >X+ unid_t id; >X+ int r; >X >X+ if (argc != 4) { >X+ printf("Usage: get_quota <path> [user|group] id\n"); >X+ return NT_STATUS_OK; >X+ } >X+ >X+ smb_fname = synthetic_smb_fname(talloc_tos(), >X+ argv[1], >X+ NULL, >X+ NULL, >X+ 0, >X+ ssf_flags()); >X+ if (smb_fname == NULL) { >X+ return NT_STATUS_NO_MEMORY; >X+ } >X+ >X+ if(strcmp(argv[2], "user") == 0) { >X+ qtype = SMB_USER_FS_QUOTA_TYPE; >X+ } >X+ else if(strcmp(argv[2], "group") == 0) { >X+ qtype = SMB_GROUP_FS_QUOTA_TYPE; >X+ } >X+ else { >X+ printf("Usage: get_quota <path> [user|group] id\n"); >X+ return NT_STATUS_OK; >X+ } >X+ >X+ id.uid = atoi(argv[3]); >X+ >X+ ZERO_STRUCT(D); >X+ >X+ r = SMB_VFS_GET_QUOTA(vfs->conn, smb_fname, qtype, id, &D); >X+ >X+ if (r == -1 && errno != ENOSYS) { >X+ return NT_STATUS_UNSUCCESSFUL; >X+ } >X+ >X+ if (r == 0 && (D.qflags & QUOTAS_DENY_DISK) == 0) { >X+ return NT_STATUS_UNSUCCESSFUL; >X+ } >X+ >X+ bsize = D.bsize; >X+ /* Use softlimit to determine disk space, except when it has been exceeded */ >X+ if ( >X+ (D.softlimit && D.curblocks >= D.softlimit) || >X+ (D.hardlimit && D.curblocks >= D.hardlimit) || >X+ (D.isoftlimit && D.curinodes >= D.isoftlimit) || >X+ (D.ihardlimit && D.curinodes>=D.ihardlimit) >X+ ) { >X+ dfree = 0; >X+ dsize = D.curblocks; >X+ } else if (D.softlimit==0 && D.hardlimit==0) { >X+ return NT_STATUS_UNSUCCESSFUL; >X+ } else { >X+ if (D.softlimit == 0) { >X+ D.softlimit = D.hardlimit; >X+ } >X+ dfree = D.softlimit - D.curblocks; >X+ dsize = D.softlimit; >X+ } >X+ >X+ printf("get_quota: bsize = %lu, dfree = %lu, dsize = %lu\n", >X+ (unsigned long)bsize, >X+ (unsigned long)dfree, >X+ (unsigned long)dsize); >X+ >X+ return NT_STATUS_OK; >X+} >X+ >X+ >X static NTSTATUS cmd_opendir(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) >X { >X struct smb_filename *smb_fname = NULL; >X@@ -2028,6 +2105,7 @@ struct cmd_set vfs_commands[] = { >X { "connect", cmd_connect, "VFS connect()", "connect" }, >X { "disconnect", cmd_disconnect, "VFS disconnect()", "disconnect" }, >X { "disk_free", cmd_disk_free, "VFS disk_free()", "disk_free <path>" }, >X+ { "get_quota", cmd_get_quota, "VFS get_quota()", "get_quota <path> [user|group] id" }, >X { "opendir", cmd_opendir, "VFS opendir()", "opendir <fname>" }, >X { "readdir", cmd_readdir, "VFS readdir()", "readdir" }, >X { "mkdir", cmd_mkdir, "VFS mkdir()", "mkdir <path>" }, >X@@ -2057,33 +2135,22 @@ struct cmd_set vfs_commands[] = { >X { "link", cmd_link, "VFS link()", "link <oldpath> <newpath>" }, >X { "mknod", cmd_mknod, "VFS mknod()", "mknod <path> <mode> <dev>" }, >X { "realpath", cmd_realpath, "VFS realpath()", "realpath <path>" }, >X- { "getxattr", cmd_getxattr, "VFS getxattr()", >X- "getxattr <path> <name>" }, >X- { "listxattr", cmd_listxattr, "VFS listxattr()", >X- "listxattr <path>" }, >X- { "setxattr", cmd_setxattr, "VFS setxattr()", >X- "setxattr <path> <name> <value> [<flags>]" }, >X- { "removexattr", cmd_removexattr, "VFS removexattr()", >X- "removexattr <path> <name>\n" }, >X- { "fget_nt_acl", cmd_fget_nt_acl, "VFS fget_nt_acl()", >X- "fget_nt_acl <fd>\n" }, >X- { "get_nt_acl", cmd_get_nt_acl, "VFS get_nt_acl()", >X- "get_nt_acl <path>\n" }, >X- { "fset_nt_acl", cmd_fset_nt_acl, "VFS fset_nt_acl()", >X- "fset_nt_acl <fd>\n" }, >X- { "set_nt_acl", cmd_set_nt_acl, "VFS open() and fset_nt_acl()", >X- "set_nt_acl <file>\n" }, >X+ { "getxattr", cmd_getxattr, "VFS getxattr()", "getxattr <path> <name>" }, >X+ { "listxattr", cmd_listxattr, "VFS listxattr()", "listxattr <path>" }, >X+ { "setxattr", cmd_setxattr, "VFS setxattr()", "setxattr <path> <name> <value> [<flags>]" }, >X+ { "removexattr", cmd_removexattr, "VFS removexattr()", "removexattr <path> <name>\n" }, >X+ { "fget_nt_acl", cmd_fget_nt_acl, "VFS fget_nt_acl()", "fget_nt_acl <fd>\n" }, >X+ { "get_nt_acl", cmd_get_nt_acl, "VFS get_nt_acl()", "get_nt_acl <path>\n" }, >X+ { "fset_nt_acl", cmd_fset_nt_acl, "VFS fset_nt_acl()", "fset_nt_acl <fd>\n" }, >X+ { "set_nt_acl", cmd_set_nt_acl, "VFS open() and fset_nt_acl()", "set_nt_acl <file>\n" }, >X { "sys_acl_get_file", cmd_sys_acl_get_file, "VFS sys_acl_get_file()", "sys_acl_get_file <path>" }, >X { "sys_acl_get_fd", cmd_sys_acl_get_fd, "VFS sys_acl_get_fd()", "sys_acl_get_fd <fd>" }, >X- { "sys_acl_blob_get_file", cmd_sys_acl_blob_get_file, >X- "VFS sys_acl_blob_get_file()", "sys_acl_blob_get_file <path>" }, >X- { "sys_acl_blob_get_fd", cmd_sys_acl_blob_get_fd, >X- "VFS sys_acl_blob_get_fd()", "sys_acl_blob_get_fd <path>" }, >X+ { "sys_acl_blob_get_file", cmd_sys_acl_blob_get_file, "VFS sys_acl_blob_get_file()", "sys_acl_blob_get_file <path>" }, >X+ { "sys_acl_blob_get_fd", cmd_sys_acl_blob_get_fd, "VFS sys_acl_blob_get_fd()", "sys_acl_blob_get_fd <path>" }, >X { "sys_acl_delete_def_file", cmd_sys_acl_delete_def_file, "VFS sys_acl_delete_def_file()", "sys_acl_delete_def_file <path>" }, >X >X >X- { "test_chain", cmd_test_chain, "test chain code", >X- "test_chain" }, >X+ { "test_chain", cmd_test_chain, "test chain code", "test_chain" }, >X { "translate_name", cmd_translate_name, "VFS translate_name()", "translate_name unix_filename" }, >X {0} >X }; >f748e9c9c081b6c52a1bd7ae78a6a66b >echo x - inofficial/samba413/files/patch-listen-backlog >sed 's/^X//' >inofficial/samba413/files/patch-listen-backlog << '36f094b67f259e1a166d0ed52b5de5b3' >X--- lib/tevent/echo_server.c.orig 2020-07-09 09:33:56.000000000 +0000 >X+++ lib/tevent/echo_server.c 2021-02-15 17:09:02.306335000 +0000 >X@@ -633,7 +633,7 @@ >X exit(1); >X } >X >X- ret = listen(listen_sock, 5); >X+ ret = listen(listen_sock, DEFAULT_LISTEN_BACKLOG); >X if (ret == -1) { >X perror("listen() failed"); >X exit(1); >X--- source3/include/local.h.orig 2020-07-09 09:33:56.000000000 +0000 >X+++ source3/include/local.h 2021-02-15 17:09:02.307597000 +0000 >X@@ -163,7 +163,18 @@ >X #define WINBIND_SERVER_MUTEX_WAIT_TIME (( ((NUM_CLI_AUTH_CONNECT_RETRIES) * ((CLI_AUTH_TIMEOUT)/1000)) + 5)*2) >X >X /* size of listen() backlog in smbd */ >X+#if defined (FREEBSD) >X+#define SMBD_LISTEN_BACKLOG -1 >X+#else >X #define SMBD_LISTEN_BACKLOG 50 >X+#endif >X+ >X+/* size of listen() default backlog */ >X+#if defined (FREEBSD) >X+#define DEFAULT_LISTEN_BACKLOG -1 >X+#else >X+#define DEFAULT_LISTEN_BACKLOG 5 >X+#endif >X >X /* Number of microseconds to wait before a sharing violation. */ >X #define SHARING_VIOLATION_USEC_WAIT 950000 >X--- source3/libsmb/unexpected.c.orig 2020-07-09 09:33:56.000000000 +0000 >X+++ source3/libsmb/unexpected.c 2021-02-15 17:09:02.308736000 +0000 >X@@ -95,7 +95,7 @@ >X status = map_nt_error_from_unix(errno); >X goto fail; >X } >X- rc = listen(result->listen_sock, 5); >X+ rc = listen(result->listen_sock, DEFAULT_LISTEN_BACKLOG); >X if (rc < 0) { >X status = map_nt_error_from_unix(errno); >X goto fail; >X--- source3/rpc_server/rpc_server.c.orig 2020-07-09 09:33:56.000000000 +0000 >X+++ source3/rpc_server/rpc_server.c 2021-02-15 17:09:02.310682000 +0000 >X@@ -199,7 +199,7 @@ >X goto out; >X } >X >X- rc = listen(state->fd, 5); >X+ rc = listen(state->fd, DEFAULT_LISTEN_BACKLOG); >X if (rc < 0) { >X status = map_nt_error_from_unix_common(errno); >X DBG_ERR("Failed to listen on ncacn_np socket %s: %s\n", >X@@ -605,7 +605,7 @@ >X goto out; >X } >X >X- rc = listen(state->fd, 5); >X+ rc = listen(state->fd, DEFAULT_LISTEN_BACKLOG); >X if (rc < 0) { >X const char *endpoint = dcerpc_binding_get_string_option( >X e->ep_description, "endpoint"); >X--- source3/utils/smbfilter.c.orig 2020-07-09 09:33:56.000000000 +0000 >X+++ source3/utils/smbfilter.c 2021-02-15 17:09:02.311835000 +0000 >X@@ -291,7 +291,7 @@ >X exit(1); >X } >X >X- if (listen(s, 5) == -1) { >X+ if (listen(s, DEFAULT_LISTEN_BACKLOG) == -1) { >X d_printf("listen failed\n"); >X } >X >X--- source3/winbindd/winbindd.c.orig 2020-11-03 12:33:19.000000000 +0000 >X+++ source3/winbindd/winbindd.c 2021-02-15 17:09:02.313490000 +0000 >X@@ -1324,7 +1324,7 @@ >X if (pub_state->fd == -1) { >X goto failed; >X } >X- rc = listen(pub_state->fd, 5); >X+ rc = listen(pub_state->fd, DEFAULT_LISTEN_BACKLOG); >X if (rc < 0) { >X goto failed; >X } >X@@ -1356,7 +1356,7 @@ >X if (priv_state->fd == -1) { >X goto failed; >X } >X- rc = listen(priv_state->fd, 5); >X+ rc = listen(priv_state->fd, DEFAULT_LISTEN_BACKLOG); >X if (rc < 0) { >X goto failed; >X } >36f094b67f259e1a166d0ed52b5de5b3 >echo x - inofficial/samba413/files/patch-source3_modules_vfs__streams__xattr.c >sed 's/^X//' >inofficial/samba413/files/patch-source3_modules_vfs__streams__xattr.c << '32ef9b5ba6ca76cfdd890d8055056c4d' >X--- source3/modules/vfs_streams_xattr.c.orig 2021-01-26 07:16:58.000000000 +0000 >X+++ source3/modules/vfs_streams_xattr.c 2021-02-15 17:33:20.076901000 +0000 >X@@ -1,10 +1,10 @@ >X /* >X * Store streams in xattrs >X * >X- * Copyright (C) Volker Lendecke, 2008 >X+ * Copyright (C) Volker Lendecke, 2008 >X+ * Copyright (C) Timur I. Bakeyev, 2017 >X * >X * Partly based on James Peach's Darwin module, which is >X- * >X * Copyright (C) James Peach 2006-2007 >X * >X * This program is free software; you can redistribute it and/or modify >X@@ -46,25 +46,79 @@ >X }; >X >X static ssize_t get_xattr_size(connection_struct *conn, >X- const struct smb_filename *smb_fname, >X- const char *xattr_name) >X+ const struct smb_filename *smb_fname, >X+ const char *xattr_name) >X { >X- NTSTATUS status; >X- struct ea_struct ea; >X ssize_t result; >X >X- status = get_ea_value(talloc_tos(), conn, NULL, smb_fname, >X- xattr_name, &ea); >X+ result = SMB_VFS_GETXATTR(conn, smb_fname, xattr_name, NULL, 0); >X+ // ? -1 >X+ return result; >X+} >X >X- if (!NT_STATUS_IS_OK(status)) { >X- return -1; >X+static NTSTATUS get_xattr_value(TALLOC_CTX *mem_ctx, >X+ connection_struct *conn, >X+ const struct smb_filename *smb_fname, >X+ const char *ea_name, >X+ struct ea_struct *pea) >X+{ >X+ ssize_t attr_size; >X+ >X+ attr_size = get_xattr_size(conn, smb_fname, ea_name); >X+ >X+ if (attr_size == -1) { >X+ return map_nt_error_from_unix(errno); >X } >X >X- result = ea.value.length-1; >X- TALLOC_FREE(ea.value.data); >X- return result; >X+ pea->value = data_blob_talloc(mem_ctx, NULL, attr_size); >X+ /* We may have xattr of a 0 size */ >X+ if(pea->value.data == NULL && attr_size) { >X+ DEBUG(5, >X+ ("get_xattr_value: for EA '%s' failed to allocate %lu bytes\n", >X+ ea_name, (unsigned long)attr_size) >X+ ); >X+ return NT_STATUS_NO_MEMORY; >X+ } >X+ >X+ attr_size = SMB_VFS_GETXATTR(conn, smb_fname, ea_name, pea->value.data, pea->value.length); >X+ >X+ if (attr_size == -1) { >X+ return map_nt_error_from_unix(errno); >X+ } >X+ >X+ if(pea->value.length != attr_size) { >X+ DEBUG(5, >X+ ("get_xattr_value: for EA '%s' requested %lu, read %lu bytes\n", >X+ ea_name, (unsigned long)pea->value.length, (unsigned long)attr_size) >X+ ); >X+ return NT_STATUS_UNSUCCESSFUL; >X+ } >X+ >X+ DEBUG(10,("get_xattr_value: EA '%s' is of length %lu\n", ea_name, (unsigned long)attr_size)); >X+ /* >X+ * This can dump huge amount of data multiple times. For example >X+ * for 1Mb ADS and chunk size 64Kb the same 1Mb dump will be >X+ * logged 16 times! >X+ */ >X+ dump_data(50, (uint8_t *)pea->value.data, pea->value.length); >X+ >X+ pea->flags = 0; >X+ // ? user. >X+ if (strnequal(ea_name, "user.", 5)) { >X+ pea->name = talloc_strdup(mem_ctx, &ea_name[5]); >X+ } else { >X+ pea->name = talloc_strdup(mem_ctx, ea_name); >X+ } >X+ >X+ if (pea->name == NULL) { >X+ data_blob_free(&pea->value); >X+ return NT_STATUS_NO_MEMORY; >X+ } >X+ >X+ return NT_STATUS_OK; >X } >X >X+ >X /** >X * Given a stream name, populate xattr_name with the xattr name to use for >X * accessing the stream. >X@@ -81,6 +135,7 @@ >X SMB_VFS_HANDLE_GET_DATA(handle, config, struct streams_xattr_config, >X return NT_STATUS_UNSUCCESSFUL); >X >X+ // stream_name is passed as ':stream', so skip leading ':' >X sname = talloc_strdup(ctx, stream_name + 1); >X if (sname == NULL) { >X return NT_STATUS_NO_MEMORY; >X@@ -92,7 +147,7 @@ >X * characters from their on-the-wire Unicode Private Range >X * encoding to their native ASCII representation. >X * >X- * As as result the name of xattrs storing the streams (via >X+ * As a result the name of xattrs storing the streams (via >X * vfs_streams_xattr) may contain a colon, so we have to use >X * strrchr_m() instead of strchr_m() for matching the stream >X * type suffix. >X@@ -124,7 +179,7 @@ >X return NT_STATUS_NO_MEMORY; >X } >X >X- DEBUG(10, ("xattr_name: %s, stream_name: %s\n", *xattr_name, >X+ DEBUG(10, ("xattr_name: '%s', stream_name: '%s'\n", *xattr_name, >X stream_name)); >X >X talloc_free(sname); >X@@ -238,8 +293,8 @@ >X return -1; >X } >X >X- sbuf->st_ex_size = get_xattr_size(handle->conn, >X- smb_fname_base, io->xattr_name); >X+ sbuf->st_ex_size = get_xattr_size(handle->conn, smb_fname_base, >X+ io->xattr_name); >X if (sbuf->st_ex_size == -1) { >X TALLOC_FREE(smb_fname_base); >X SET_STAT_INVALID(*sbuf); >X@@ -403,10 +458,10 @@ >X goto fail; >X } >X >X- status = get_ea_value(talloc_tos(), handle->conn, NULL, >X- smb_fname, xattr_name, &ea); >X+ status = get_xattr_value(talloc_tos(), handle->conn, >X+ smb_fname, xattr_name, &ea); >X >X- DEBUG(10, ("get_ea_value returned %s\n", nt_errstr(status))); >X+ DEBUG(10, ("get_xattr_value returned %s\n", nt_errstr(status))); >X >X if (!NT_STATUS_IS_OK(status)) { >X if (!NT_STATUS_EQUAL(status, NT_STATUS_NOT_FOUND)) { >X@@ -437,19 +492,13 @@ >X /* >X * The attribute does not exist or needs to be truncated >X */ >X- >X- /* >X- * Darn, xattrs need at least 1 byte >X- */ >X- char null = '\0'; >X- >X DEBUG(10, ("creating or truncating attribute %s on file %s\n", >X xattr_name, smb_fname->base_name)); >X >X ret = SMB_VFS_SETXATTR(fsp->conn, >X smb_fname, >X xattr_name, >X- &null, sizeof(null), >X+ NULL, 0, >X flags & O_EXCL ? XATTR_CREATE : 0); >X if (ret != 0) { >X goto fail; >X@@ -645,8 +694,8 @@ >X } >X >X /* read the old stream */ >X- status = get_ea_value(talloc_tos(), handle->conn, NULL, >X- smb_fname_src, src_xattr_name, &ea); >X+ status = get_xattr_value(talloc_tos(), handle->conn, >X+ smb_fname_src, src_xattr_name, &ea); >X if (!NT_STATUS_IS_OK(status)) { >X errno = ENOENT; >X goto fail; >X@@ -733,14 +782,13 @@ >X continue; >X } >X >X- status = get_ea_value(names, >X+ status = get_xattr_value(names, >X handle->conn, >X- NULL, >X smb_fname, >X names[i], >X &ea); >X if (!NT_STATUS_IS_OK(status)) { >X- DEBUG(10, ("Could not get ea %s for file %s: %s\n", >X+ DEBUG(10, ("Could not get EA %s for file %s: %s\n", >X names[i], >X smb_fname->base_name, >X nt_errstr(status))); >X@@ -802,16 +850,17 @@ >X NTSTATUS status; >X }; >X >X-static bool collect_one_stream(struct ea_struct *ea, void *private_data) >X+static bool collect_one_stream(struct ea_struct *pea, void *private_data) >X { >X struct streaminfo_state *state = >X (struct streaminfo_state *)private_data; >X >X+ // ? -1 >X if (!add_one_stream(state->mem_ctx, >X &state->num_streams, &state->streams, >X- ea->name, ea->value.length-1, >X+ pea->name, pea->value.length, >X smb_roundup(state->handle->conn, >X- ea->value.length-1))) { >X+ pea->value.length))) { >X state->status = NT_STATUS_NO_MEMORY; >X return false; >X } >X@@ -931,14 +980,17 @@ >X files_struct *fsp, const void *data, >X size_t n, off_t offset) >X { >X- struct stream_io *sio = >X+ struct stream_io *sio = >X (struct stream_io *)VFS_FETCH_FSP_EXTENSION(handle, fsp); >X+ struct smb_filename *smb_fname_base = NULL; >X+ TALLOC_CTX *frame = NULL; >X+ >X struct ea_struct ea; >X NTSTATUS status; >X- struct smb_filename *smb_fname_base = NULL; >X int ret; >X >X- DEBUG(10, ("streams_xattr_pwrite called for %d bytes\n", (int)n)); >X+ DEBUG(10, ("streams_xattr_pwrite: offset=%lu, size=%lu\n", >X+ (unsigned long)offset, (unsigned long)n)); >X >X if (sio == NULL) { >X return SMB_VFS_NEXT_PWRITE(handle, fsp, data, n, offset); >X@@ -948,6 +1000,8 @@ >X return -1; >X } >X >X+ frame = talloc_stackframe(); >X+ >X /* Create an smb_filename with stream_name == NULL. */ >X smb_fname_base = synthetic_smb_fname(talloc_tos(), >X sio->base, >X@@ -956,40 +1010,56 @@ >X fsp->fsp_name->twrp, >X fsp->fsp_name->flags); >X if (smb_fname_base == NULL) { >X+ TALLOC_FREE(frame); >X errno = ENOMEM; >X return -1; >X } >X >X- status = get_ea_value(talloc_tos(), handle->conn, NULL, >X- smb_fname_base, sio->xattr_name, &ea); >X+ status = get_xattr_value(talloc_tos(), handle->conn, >X+ smb_fname_base, sio->xattr_name, &ea); >X+ >X+ if (NT_STATUS_EQUAL(status, NT_STATUS_NOT_FOUND)) { >X+ /* >X+ * This can happen if we sit behind vfs_fruit: >X+ * fruit_ftruncate calls UNLINK on an attribute >X+ * truncating the "file" to zero length. A later >X+ * pwrite faces a non-existing attribute, we need to >X+ * cope with that here. >X+ * >X+ * This might be not the last word on this. >X+ */ >X+ >X+ ea = (struct ea_struct) {0}; >X+ ea.name = talloc_strdup(talloc_tos(), sio->xattr_name); >X+ if (ea.name == NULL) { >X+ TALLOC_FREE(frame); >X+ errno = ENOMEM; >X+ return -1; >X+ } >X+ status = NT_STATUS_OK; >X+ } >X+ >X if (!NT_STATUS_IS_OK(status)) { >X+ TALLOC_FREE(frame); >X return -1; >X } >X+ // ? -1 >X+ if ((offset + n) > ea.value.length) { >X+ if(!data_blob_realloc(talloc_tos(), &ea.value, offset + n)) { >X+ TALLOC_FREE(frame); >X+ errno = ENOMEM; >X+ return -1; >X+ } >X+ } >X+ memcpy(ea.value.data + offset, data, n); >X >X- if ((offset + n) > ea.value.length-1) { >X- uint8_t *tmp; >X- >X- tmp = talloc_realloc(talloc_tos(), ea.value.data, uint8_t, >X- offset + n + 1); >X- >X- if (tmp == NULL) { >X- TALLOC_FREE(ea.value.data); >X- errno = ENOMEM; >X- return -1; >X- } >X- ea.value.data = tmp; >X- ea.value.length = offset + n + 1; >X- ea.value.data[offset+n] = 0; >X- } >X- >X- memcpy(ea.value.data + offset, data, n); >X- >X ret = SMB_VFS_SETXATTR(fsp->conn, >X fsp->fsp_name, >X sio->xattr_name, >X ea.value.data, ea.value.length, 0); >X- TALLOC_FREE(ea.value.data); >X >X+ TALLOC_FREE(frame); >X+ >X if (ret == -1) { >X return -1; >X } >X@@ -1001,15 +1071,17 @@ >X files_struct *fsp, void *data, >X size_t n, off_t offset) >X { >X- struct stream_io *sio = >X+ struct stream_io *sio = >X (struct stream_io *)VFS_FETCH_FSP_EXTENSION(handle, fsp); >X+ struct smb_filename *smb_fname_base = NULL; >X+ TALLOC_CTX *frame = NULL; >X+ >X struct ea_struct ea; >X NTSTATUS status; >X- size_t length, overlap; >X- struct smb_filename *smb_fname_base = NULL; >X+ size_t overlap; >X >X- DEBUG(10, ("streams_xattr_pread: offset=%d, size=%d\n", >X- (int)offset, (int)n)); >X+ DEBUG(10, ("streams_xattr_pread: offset=%lu, size=%lu\n", >X+ (unsigned long)offset, (unsigned long)n)); >X >X if (sio == NULL) { >X return SMB_VFS_NEXT_PREAD(handle, fsp, data, n, offset); >X@@ -1019,6 +1091,8 @@ >X return -1; >X } >X >X+ frame = talloc_stackframe(); >X+ >X /* Create an smb_filename with stream_name == NULL. */ >X smb_fname_base = synthetic_smb_fname(talloc_tos(), >X sio->base, >X@@ -1027,31 +1101,35 @@ >X fsp->fsp_name->twrp, >X fsp->fsp_name->flags); >X if (smb_fname_base == NULL) { >X+ TALLOC_FREE(frame); >X errno = ENOMEM; >X return -1; >X } >X >X- status = get_ea_value(talloc_tos(), handle->conn, NULL, >X- smb_fname_base, sio->xattr_name, &ea); >X+ status = get_xattr_value(talloc_tos(), handle->conn, >X+ smb_fname_base, sio->xattr_name, &ea); >X if (!NT_STATUS_IS_OK(status)) { >X+ TALLOC_FREE(frame); >X return -1; >X } >X+ // ? -1 >X+ //length = ea.value.length-1; >X >X- length = ea.value.length-1; >X+ DEBUG(10, ("streams_xattr_pread: get_xattr_value() returned %lu bytes\n", >X+ (unsigned long)ea.value.length)); >X >X- DEBUG(10, ("streams_xattr_pread: get_ea_value returned %d bytes\n", >X- (int)length)); >X+ /* Attempt to read past EOF. */ >X+ if (ea.value.length <= offset) { >X+ TALLOC_FREE(frame); >X+ return 0; >X+ } >X >X- /* Attempt to read past EOF. */ >X- if (length <= offset) { >X- return 0; >X- } >X+ overlap = (offset + n) > ea.value.length ? (ea.value.length - offset) : n; >X+ memcpy(data, ea.value.data + offset, overlap); >X >X- overlap = (offset + n) > length ? (length - offset) : n; >X- memcpy(data, ea.value.data + offset, overlap); >X+ TALLOC_FREE(frame); >X >X- TALLOC_FREE(ea.value.data); >X- return overlap; >X+ return overlap; >X } >X >X struct streams_xattr_pread_state { >X@@ -1218,17 +1296,19 @@ >X struct files_struct *fsp, >X off_t offset) >X { >X- int ret; >X- uint8_t *tmp; >X- struct ea_struct ea; >X- NTSTATUS status; >X- struct stream_io *sio = >X+ struct stream_io *sio = >X (struct stream_io *)VFS_FETCH_FSP_EXTENSION(handle, fsp); >X struct smb_filename *smb_fname_base = NULL; >X+ TALLOC_CTX *frame = NULL; >X >X- DEBUG(10, ("streams_xattr_ftruncate called for file %s offset %.0f\n", >X- fsp_str_dbg(fsp), (double)offset)); >X+ struct ea_struct ea; >X+ NTSTATUS status; >X+ size_t orig_length; >X+ int ret; >X >X+ DEBUG(10, ("streams_xattr_ftruncate: called for file '%s' with offset %lu\n", >X+ fsp_str_dbg(fsp), (unsigned long)offset)); >X+ >X if (sio == NULL) { >X return SMB_VFS_NEXT_FTRUNCATE(handle, fsp, offset); >X } >X@@ -1237,6 +1317,8 @@ >X return -1; >X } >X >X+ frame = talloc_stackframe(); >X+ >X /* Create an smb_filename with stream_name == NULL. */ >X smb_fname_base = synthetic_smb_fname(talloc_tos(), >X sio->base, >X@@ -1245,40 +1327,46 @@ >X fsp->fsp_name->twrp, >X fsp->fsp_name->flags); >X if (smb_fname_base == NULL) { >X+ TALLOC_FREE(frame); >X errno = ENOMEM; >X return -1; >X } >X >X- status = get_ea_value(talloc_tos(), handle->conn, NULL, >X- smb_fname_base, sio->xattr_name, &ea); >X+ status = get_xattr_value(talloc_tos(), handle->conn, >X+ smb_fname_base, sio->xattr_name, &ea); >X if (!NT_STATUS_IS_OK(status)) { >X+ TALLOC_FREE(frame); >X return -1; >X } >X+ orig_length = ea.value.length; >X >X- tmp = talloc_realloc(talloc_tos(), ea.value.data, uint8_t, >X- offset + 1); >X+ /* Requested size matches the original size */ >X+ if(orig_length == offset) { >X+ TALLOC_FREE(frame); >X+ return 0; >X+ } >X >X- if (tmp == NULL) { >X- TALLOC_FREE(ea.value.data); >X+ /* That can both shrink and expand */ >X+ /* XXX: If offset == 0 the result of talloc_realloc is NULL, but still valid */ >X+ if(offset && !data_blob_realloc(talloc_tos(), &ea.value, offset)) { >X+ TALLOC_FREE(frame); >X errno = ENOMEM; >X return -1; >X } >X >X- /* Did we expand ? */ >X- if (ea.value.length < offset + 1) { >X- memset(&tmp[ea.value.length], '\0', >X- offset + 1 - ea.value.length); >X+ /* If we expanded, fill up extra space with zeros */ >X+ if (orig_length < offset) { >X+ memset(ea.value.data + orig_length, 0, >X+ offset - orig_length); >X } >X >X- ea.value.data = tmp; >X- ea.value.length = offset + 1; >X- ea.value.data[offset] = 0; >X- >X+ /* XXX: We should use ea.value.length here, but when offset == 0 >X+ it's not reset to 0 in data_blob_realloc() */ >X ret = SMB_VFS_SETXATTR(fsp->conn, >X fsp->fsp_name, >X sio->xattr_name, >X- ea.value.data, ea.value.length, 0); >X- TALLOC_FREE(ea.value.data); >X+ ea.value.data, offset, 0); >X+ TALLOC_FREE(frame); >X >X if (ret == -1) { >X return -1; >X@@ -1296,9 +1384,9 @@ >X struct stream_io *sio = >X (struct stream_io *)VFS_FETCH_FSP_EXTENSION(handle, fsp); >X >X- DEBUG(10, ("streams_xattr_fallocate called for file %s offset %.0f" >X- "len = %.0f\n", >X- fsp_str_dbg(fsp), (double)offset, (double)len)); >X+ DEBUG(10, ("streams_xattr_fallocate: called for file '%s' with offset %lu" >X+ "len = %lu\n", >X+ fsp_str_dbg(fsp), (unsigned long)offset, (unsigned long)len)); >X >X if (sio == NULL) { >X return SMB_VFS_NEXT_FALLOCATE(handle, fsp, mode, offset, len); >32ef9b5ba6ca76cfdd890d8055056c4d >echo x - inofficial/samba413/files/patch-vfs_freebsd >sed 's/^X//' >inofficial/samba413/files/patch-vfs_freebsd << '5c22daa4f3547f0fddb90ab3ff785494' >X--- docs-xml/wscript_build.orig 2020-08-28 09:32:54.000000000 +0000 >X+++ docs-xml/wscript_build 2021-02-15 17:45:36.817325000 +0000 >X@@ -85,6 +85,7 @@ >X 'vfs_extd_audit', >X 'vfs_fake_perms', >X 'vfs_fileid', >X+ 'vfs_freebsd', >X 'vfs_fruit', >X 'vfs_full_audit', >X 'vfs_glusterfs', >X--- source3/modules/wscript_build.orig 2020-11-03 12:33:19.000000000 +0000 >X+++ source3/modules/wscript_build 2021-02-15 17:45:36.819517000 +0000 >X@@ -251,6 +251,14 @@ >X internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_zfsacl'), >X enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_zfsacl')) >X >X+bld.SAMBA3_MODULE('vfs_freebsd', >X+ subsystem='vfs', >X+ source='vfs_freebsd.c', >X+ deps='samba-util', >X+ init_function='', >X+ internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_freebsd'), >X+ enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_freebsd')) >X+ >X bld.SAMBA_GENERATOR('nfs41acl-h', >X source='nfs41acl.x', >X target='nfs41acl.h', >X--- source3/modules/vfs_freebsd.c.orig 2021-02-15 17:45:36.822062000 +0000 >X+++ source3/modules/vfs_freebsd.c 2021-02-15 17:45:36.824323000 +0000 >X@@ -0,0 +1,800 @@ >X+/* >X+ * This module implements VFS calls specific to FreeBSD >X+ * >X+ * Copyright (C) Timur I. Bakeyev, 2018 >X+ * >X+ * This program is free software; you can redistribute it and/or modify >X+ * it under the terms of the GNU General Public License as published by >X+ * the Free Software Foundation; either version 3 of the License, or >X+ * (at your option) any later version. >X+ * >X+ * This program is distributed in the hope that it will be useful, >X+ * but WITHOUT ANY WARRANTY; without even the implied warranty of >X+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >X+ * GNU General Public License for more details. >X+ * >X+ * You should have received a copy of the GNU General Public License >X+ * along with this program; if not, see <http://www.gnu.org/licenses/>. >X+ */ >X+ >X+#include "includes.h" >X+ >X+#include "lib/util/tevent_unix.h" >X+#include "lib/util/tevent_ntstatus.h" >X+#include "system/filesys.h" >X+ >X+#include <sys/sysctl.h> >X+ >X+static int vfs_freebsd_debug_level = DBGC_VFS; >X+ >X+#undef DBGC_CLASS >X+#define DBGC_CLASS vfs_freebsd_debug_level >X+ >X+#ifndef EXTATTR_MAXNAMELEN >X+#define EXTATTR_MAXNAMELEN UINT8_MAX >X+#endif >X+ >X+#define EXTATTR_NAMESPACE(NS) EXTATTR_NAMESPACE_ ## NS, \ >X+ EXTATTR_NAMESPACE_ ## NS ## _STRING ".", \ >X+ .data.len = (sizeof(EXTATTR_NAMESPACE_ ## NS ## _STRING ".") - 1) >X+ >X+#define EXTATTR_EMPTY 0x00 >X+#define EXTATTR_USER 0x01 >X+#define EXTATTR_SYSTEM 0x02 >X+#define EXTATTR_SECURITY 0x03 >X+#define EXTATTR_TRUSTED 0x04 >X+ >X+enum extattr_mode { >X+ FREEBSD_EXTATTR_SECURE, >X+ FREEBSD_EXTATTR_COMPAT, >X+ FREEBSD_EXTATTR_LEGACY >X+}; >X+ >X+typedef struct { >X+ int namespace; >X+ char name[EXTATTR_MAXNAMELEN+1]; >X+ union { >X+ uint16_t len; >X+ uint16_t flags; >X+ } data; >X+} extattr_attr; >X+ >X+typedef struct { >X+ enum { >X+ EXTATTR_FILE, EXTATTR_LINK, EXTATTR_FDES >X+ } method; >X+ union { >X+ const char *path; >X+ int filedes; >X+ } param; >X+} extattr_arg; >X+ >X+static const struct enum_list extattr_mode_param[] = { >X+ { FREEBSD_EXTATTR_SECURE, "secure" }, /* */ >X+ { FREEBSD_EXTATTR_COMPAT, "compat" }, /* */ >X+ { FREEBSD_EXTATTR_LEGACY, "legacy" }, /* */ >X+ { -1, NULL } >X+}; >X+ >X+ >X+/* */ >X+struct freebsd_handle_data { >X+ enum extattr_mode extattr_mode; >X+}; >X+ >X+ >X+/* XXX: This order doesn't match namespace ids order! */ >X+static extattr_attr extattr[] = { >X+ { EXTATTR_NAMESPACE(EMPTY) }, >X+ { EXTATTR_NAMESPACE(SYSTEM) }, >X+ { EXTATTR_NAMESPACE(USER) }, >X+}; >X+ >X+ >X+static bool freebsd_in_jail(void) { >X+ int val = 0; >X+ size_t val_len = sizeof(val); >X+ >X+ if((sysctlbyname("security.jail.jailed", &val, &val_len, NULL, 0) != -1) && val == 1) { >X+ return true; >X+ } >X+ return false; >X+} >X+ >X+static uint16_t freebsd_map_attrname(const char *name) >X+{ >X+ if(name == NULL || name[0] == '\0') { >X+ return EXTATTR_EMPTY; >X+ } >X+ >X+ switch(name[0]) { >X+ case 'u': >X+ if(strncmp(name, "user.", 5) == 0) >X+ return EXTATTR_USER; >X+ break; >X+ case 't': >X+ if(strncmp(name, "trusted.", 8) == 0) >X+ return EXTATTR_TRUSTED; >X+ break; >X+ case 's': >X+ /* name[1] could be any character, including '\0' */ >X+ switch(name[1]) { >X+ case 'e': >X+ if(strncmp(name, "security.", 9) == 0) >X+ return EXTATTR_SECURITY; >X+ break; >X+ case 'y': >X+ if(strncmp(name, "system.", 7) == 0) >X+ return EXTATTR_SYSTEM; >X+ break; >X+ } >X+ break; >X+ } >X+ return EXTATTR_USER; >X+} >X+ >X+/* security, system, trusted or user */ >X+static extattr_attr* freebsd_map_xattr(enum extattr_mode extattr_mode, const char *name, extattr_attr *attr) >X+{ >X+ int attrnamespace = EXTATTR_NAMESPACE_EMPTY; >X+ const char *p, *attrname = name; >X+ >X+ if(name == NULL || name[0] == '\0') { >X+ return NULL; >X+ } >X+ >X+ if(attr == NULL) { >X+ return NULL; >X+ } >X+ >X+ uint16_t flags = freebsd_map_attrname(name); >X+ >X+ switch(flags) { >X+ case EXTATTR_SECURITY: >X+ case EXTATTR_TRUSTED: >X+ case EXTATTR_SYSTEM: >X+ attrnamespace = (extattr_mode == FREEBSD_EXTATTR_SECURE) ? >X+ EXTATTR_NAMESPACE_SYSTEM : >X+ EXTATTR_NAMESPACE_USER; >X+ break; >X+ case EXTATTR_USER: >X+ attrnamespace = EXTATTR_NAMESPACE_USER; >X+ break; >X+ default: >X+ /* Default to "user" namespace if nothing else was specified */ >X+ attrnamespace = EXTATTR_NAMESPACE_USER; >X+ flags = EXTATTR_USER; >X+ break; >X+ } >X+ >X+ if (extattr_mode == FREEBSD_EXTATTR_LEGACY) { >X+ switch(flags) { >X+ case EXTATTR_SECURITY: >X+ attrname = name + 9; >X+ break; >X+ case EXTATTR_TRUSTED: >X+ attrname = name + 8; >X+ break; >X+ case EXTATTR_SYSTEM: >X+ attrname = name + 7; >X+ break; >X+ case EXTATTR_USER: >X+ attrname = name + 5; >X+ break; >X+ default: >X+ attrname = ((p=strchr(name, '.')) != NULL) ? p + 1 : name; >X+ break; >X+ } >X+ } >X+ >X+ attr->namespace = attrnamespace; >X+ attr->data.flags = flags; >X+ strlcpy(attr->name, attrname, EXTATTR_MAXNAMELEN + 1); >X+ >X+ return attr; >X+} >X+ >X+static ssize_t extattr_size(extattr_arg arg, extattr_attr *attr) >X+{ >X+ ssize_t result; >X+ >X+ switch(arg.method) { >X+#if defined(HAVE_XATTR_EXTATTR) >X+ case EXTATTR_FILE: >X+ result = extattr_get_file(arg.param.path, attr->namespace, attr->name, NULL, 0); >X+ break; >X+ case EXTATTR_LINK: >X+ result = extattr_get_link(arg.param.path, attr->namespace, attr->name, NULL, 0); >X+ break; >X+ case EXTATTR_FDES: >X+ result = extattr_get_fd(arg.param.filedes, attr->namespace, attr->name, NULL, 0); >X+ break; >X+#endif >X+ default: >X+ errno = ENOSYS; >X+ return -1; >X+ } >X+ >X+ if(result < 0) { >X+ errno = EINVAL; >X+ return -1; >X+ } >X+ >X+ return result; >X+} >X+ >X+ >X+/* >X+ * The list of names is returned as an unordered array of NULL-terminated >X+ * character strings (attribute names are separated by NULL characters), >X+ * like this: >X+ * user.name1\0system.name1\0user.name2\0 >X+ * >X+ * Filesystems like ext2, ext3 and XFS which implement POSIX ACLs using >X+ * extended attributes, might return a list like this: >X+ * system.posix_acl_access\0system.posix_acl_default\0 >X+ */ >X+/* >X+ * The extattr_list_file() returns a list of attributes present in the >X+ * requested namespace. Each list entry consists of a single byte containing >X+ * the length of the attribute name, followed by the attribute name. The >X+ * attribute name is not terminated by ASCII 0 (nul). >X+*/ >X+ >X+static ssize_t freebsd_extattr_list(extattr_arg arg, enum extattr_mode extattr_mode, char *list, size_t size) >X+{ >X+ ssize_t list_size, total_size = 0; >X+ char *p, *q, *list_end; >X+ int len; >X+ /* >X+ Ignore all but user namespace when we are not root or in jail >X+ See: https://bugzilla.samba.org/show_bug.cgi?id=10247 >X+ */ >X+ bool as_root = (geteuid() == 0); >X+ >X+ int ns = (extattr_mode == FREEBSD_EXTATTR_SECURE && as_root) ? 1 : 2; >X+ >X+ /* Iterate through extattr(2) namespaces */ >X+ for(; ns < ARRAY_SIZE(extattr); ns++) { >X+ switch(arg.method) { >X+#if defined(HAVE_XATTR_EXTATTR) >X+ case EXTATTR_FILE: >X+ list_size = extattr_list_file(arg.param.path, extattr[ns].namespace, list, size); >X+ break; >X+ case EXTATTR_LINK: >X+ list_size = extattr_list_link(arg.param.path, extattr[ns].namespace, list, size); >X+ break; >X+ case EXTATTR_FDES: >X+ list_size = extattr_list_fd(arg.param.filedes, extattr[ns].namespace, list, size); >X+ break; >X+#endif >X+ default: >X+ errno = ENOSYS; >X+ return -1; >X+ } >X+ /* Some error happend. Errno should be set by the previous call */ >X+ if(list_size < 0) >X+ return -1; >X+ /* No attributes in this namespace */ >X+ if(list_size == 0) >X+ continue; >X+ /* >X+ Call with an empty buffer may be used to calculate >X+ necessary buffer size. >X+ */ >X+ if(list == NULL) { >X+ /* >X+ XXX: Unfortunately, we can't say, how many attributes were >X+ returned, so here is the potential problem with the emulation. >X+ */ >X+ if(extattr_mode == FREEBSD_EXTATTR_LEGACY) { >X+ /* >X+ Take the worse case of one char attribute names - >X+ two bytes per name plus one more for sanity. >X+ */ >X+ total_size += list_size + (list_size/2 + 1)*extattr[ns].data.len; >X+ } >X+ else { >X+ total_size += list_size; >X+ } >X+ continue; >X+ } >X+ >X+ if(extattr_mode == FREEBSD_EXTATTR_LEGACY) { >X+ /* Count necessary offset to fit namespace prefixes */ >X+ int extra_len = 0; >X+ uint16_t flags; >X+ list_end = list + list_size; >X+ for(list_size = 0, p = q = list; p < list_end; p += len) { >X+ len = p[0] + 1; >X+ (void)strlcpy(q, p + 1, len); >X+ flags = freebsd_map_attrname(q); >X+ /* Skip secure attributes for non-root user */ >X+ if(extattr_mode != FREEBSD_EXTATTR_SECURE && !as_root && flags > EXTATTR_USER) { >X+ continue; >X+ } >X+ if(flags <= EXTATTR_USER) { >X+ /* Don't count trailing '\0' */ >X+ extra_len += extattr[ns].data.len; >X+ } >X+ list_size += len; >X+ q += len; >X+ } >X+ total_size += list_size + extra_len; >X+ /* Buffer is too small to fit the results */ >X+ if(total_size > size) { >X+ errno = ERANGE; >X+ return -1; >X+ } >X+ /* Shift results backwards, so we can prepend prefixes */ >X+ list_end = list + extra_len; >X+ p = (char*)memmove(list_end, list, list_size); >X+ /* >X+ We enter the loop with `p` pointing to the shifted list and >X+ `extra_len` having the total margin between `list` and `p` >X+ */ >X+ for(list_end += list_size; p < list_end; p += len) { >X+ len = strlen(p) + 1; >X+ flags = freebsd_map_attrname(p); >X+ if(flags <= EXTATTR_USER) { >X+ /* Add namespace prefix */ >X+ (void)strncpy(list, extattr[ns].name, extattr[ns].data.len); >X+ list += extattr[ns].data.len; >X+ } >X+ /* Append attribute name */ >X+ (void)strlcpy(list, p, len); >X+ list += len; >X+ } >X+ } >X+ else { >X+ /* Convert UCSD strings into nul-terminated strings */ >X+ for(list_end = list + list_size; list < list_end; list += len) { >X+ len = list[0] + 1; >X+ (void)strlcpy(list, list + 1, len); >X+ } >X+ total_size += list_size; >X+ } >X+ } >X+ return total_size; >X+} >X+ >X+/* >X+static ssize_t freebsd_getxattr_size(vfs_handle_struct *handle, >X+ const struct smb_filename *smb_fname, >X+ const char *name) >X+{ >X+ struct freebsd_handle_data *data; >X+ extattr_arg arg = { EXTATTR_FILE, smb_fname->base_name }; >X+ extattr_attr attr; >X+ >X+ >X+ SMB_VFS_HANDLE_GET_DATA(handle, data, >X+ struct freebsd_handle_data, >X+ return -1); >X+ >X+ if(!freebsd_map_xattr(data->extattr_mode, name, &attr)) { >X+ errno = EINVAL; >X+ return -1; >X+ } >X+ >X+ if(data->extattr_mode != FREEBSD_EXTATTR_SECURE && geteuid() != 0 && attr.data.flags > EXTATTR_USER) { >X+ errno = ENOATTR; >X+ return -1; >X+ } >X+ >X+ return extattr_size(arg, &attr); >X+} >X+*/ >X+ >X+/* VFS entries */ >X+static ssize_t freebsd_getxattr(vfs_handle_struct *handle, >X+ const struct smb_filename *smb_fname, >X+ const char *name, >X+ void *value, >X+ size_t size) >X+{ >X+#if defined(HAVE_XATTR_EXTATTR) >X+ struct freebsd_handle_data *data; >X+ extattr_arg arg = { EXTATTR_FILE, .param.path = smb_fname->base_name }; >X+ extattr_attr attr; >X+ ssize_t res; >X+ >X+ SMB_VFS_HANDLE_GET_DATA(handle, data, >X+ struct freebsd_handle_data, >X+ return -1); >X+ >X+ if(!freebsd_map_xattr(data->extattr_mode, name, &attr)) { >X+ errno = EINVAL; >X+ return -1; >X+ } >X+ >X+ /* Filter out 'secure' entries */ >X+ if(data->extattr_mode != FREEBSD_EXTATTR_SECURE && geteuid() != 0 && attr.data.flags > EXTATTR_USER) { >X+ errno = ENOATTR; >X+ return -1; >X+ } >X+ >X+ /* >X+ * The BSD implementation has a nasty habit of silently truncating >X+ * the returned value to the size of the buffer, so we have to check >X+ * that the buffer is large enough to fit the returned value. >X+ */ >X+ if((res=extattr_size(arg, &attr)) < 0) { >X+ return -1; >X+ } >X+ >X+ if (size == 0) { >X+ return res; >X+ } >X+ else if (res > size) { >X+ errno = ERANGE; >X+ return -1; >X+ } >X+ >X+ if((res=extattr_get_file(smb_fname->base_name, attr.namespace, attr.name, value, size)) >= 0) { >X+ return res; >X+ } >X+ return -1; >X+#else >X+ errno = ENOSYS; >X+ return -1; >X+#endif >X+} >X+ >X+ >X+static ssize_t freebsd_fgetxattr(vfs_handle_struct *handle, >X+ struct files_struct *fsp, const char *name, >X+ void *value, size_t size) >X+{ >X+#if defined(HAVE_XATTR_EXTATTR) >X+ struct freebsd_handle_data *data; >X+ extattr_arg arg = { EXTATTR_FDES, .param.filedes = fsp->fh->fd }; >X+ extattr_attr attr; >X+ ssize_t res; >X+ >X+ SMB_VFS_HANDLE_GET_DATA(handle, data, >X+ struct freebsd_handle_data, >X+ return -1); >X+ >X+ if(!freebsd_map_xattr(data->extattr_mode, name, &attr)) { >X+ errno = EINVAL; >X+ return -1; >X+ } >X+ >X+ /* Filter out 'secure' entries */ >X+ if(data->extattr_mode != FREEBSD_EXTATTR_SECURE && geteuid() != 0 && attr.data.flags > EXTATTR_USER) { >X+ errno = ENOATTR; >X+ return -1; >X+ } >X+ >X+ /* >X+ * The BSD implementation has a nasty habit of silently truncating >X+ * the returned value to the size of the buffer, so we have to check >X+ * that the buffer is large enough to fit the returned value. >X+ */ >X+ if((res=extattr_size(arg, &attr)) < 0) { >X+ return -1; >X+ } >X+ >X+ if (size == 0) { >X+ return res; >X+ } >X+ else if (res > size) { >X+ errno = ERANGE; >X+ return -1; >X+ } >X+ >X+ if((res=extattr_get_fd(fsp->fh->fd, attr.namespace, attr.name, value, size)) >= 0) { >X+ return res; >X+ } >X+ return -1; >X+#else >X+ errno = ENOSYS; >X+ return -1; >X+#endif >X+} >X+ >X+ >X+static ssize_t freebsd_listxattr(vfs_handle_struct *handle, >X+ const struct smb_filename *smb_fname, >X+ char *list, >X+ size_t size) >X+{ >X+#if defined(HAVE_XATTR_EXTATTR) >X+ struct freebsd_handle_data *data; >X+ >X+ SMB_VFS_HANDLE_GET_DATA(handle, data, >X+ struct freebsd_handle_data, >X+ return -1); >X+ >X+ extattr_arg arg = { EXTATTR_FILE, .param.path = smb_fname->base_name }; >X+ >X+ return freebsd_extattr_list(arg, data->extattr_mode, list, size); >X+#else >X+ errno = ENOSYS; >X+ return -1; >X+#endif >X+} >X+ >X+ >X+static ssize_t freebsd_flistxattr(vfs_handle_struct *handle, >X+ struct files_struct *fsp, char *list, >X+ size_t size) >X+{ >X+#if defined(HAVE_XATTR_EXTATTR) >X+ struct freebsd_handle_data *data; >X+ extattr_arg arg = { EXTATTR_FDES, .param.filedes = fsp->fh->fd }; >X+ >X+ SMB_VFS_HANDLE_GET_DATA(handle, data, >X+ struct freebsd_handle_data, >X+ return -1); >X+ >X+ return freebsd_extattr_list(arg, data->extattr_mode, list, size); >X+#else >X+ errno = ENOSYS; >X+ return -1; >X+#endif >X+} >X+ >X+static int freebsd_removexattr(vfs_handle_struct *handle, >X+ const struct smb_filename *smb_fname, >X+ const char *name) >X+{ >X+#if defined(HAVE_XATTR_EXTATTR) >X+ struct freebsd_handle_data *data; >X+ extattr_attr attr; >X+ >X+ SMB_VFS_HANDLE_GET_DATA(handle, data, >X+ struct freebsd_handle_data, >X+ return -1); >X+ >X+ >X+ /* Filter out 'secure' entries */ >X+ if(data->extattr_mode != FREEBSD_EXTATTR_SECURE && geteuid() != 0 && attr.data.flags > EXTATTR_USER) { >X+ errno = ENOATTR; >X+ return -1; >X+ } >X+ >X+ return extattr_delete_file(smb_fname->base_name, attr.namespace, attr.name); >X+#else >X+ errno = ENOSYS; >X+ return -1; >X+#endif >X+} >X+ >X+ >X+static int freebsd_fremovexattr(vfs_handle_struct *handle, >X+ struct files_struct *fsp, const char *name) >X+{ >X+#if defined(HAVE_XATTR_EXTATTR) >X+ struct freebsd_handle_data *data; >X+ extattr_attr attr; >X+ >X+ SMB_VFS_HANDLE_GET_DATA(handle, data, >X+ struct freebsd_handle_data, >X+ return -1); >X+ >X+ if(!freebsd_map_xattr(data->extattr_mode, name, &attr)) { >X+ errno = EINVAL; >X+ return -1; >X+ } >X+ >X+ /* Filter out 'secure' entries */ >X+ if(data->extattr_mode != FREEBSD_EXTATTR_SECURE && geteuid() != 0 && attr.data.flags > EXTATTR_USER) { >X+ errno = ENOATTR; >X+ return -1; >X+ } >X+ >X+ return extattr_delete_fd(fsp->fh->fd, attr.namespace, attr.name); >X+#else >X+ errno = ENOSYS; >X+ return -1; >X+#endif >X+} >X+ >X+ >X+static int freebsd_setxattr(vfs_handle_struct *handle, >X+ const struct smb_filename *smb_fname, >X+ const char *name, >X+ const void *value, >X+ size_t size, >X+ int flags) >X+{ >X+#if defined(HAVE_XATTR_EXTATTR) >X+ struct freebsd_handle_data *data; >X+ extattr_attr attr; >X+ ssize_t res; >X+ >X+ SMB_VFS_HANDLE_GET_DATA(handle, data, >X+ struct freebsd_handle_data, >X+ return -1); >X+ >X+ if(!freebsd_map_xattr(data->extattr_mode, name, &attr)) { >X+ errno = EINVAL; >X+ return -1; >X+ } >X+ >X+ /* Filter out 'secure' entries */ >X+ if(data->extattr_mode != FREEBSD_EXTATTR_SECURE && geteuid() != 0 && attr.data.flags > EXTATTR_USER) { >X+ errno = ENOATTR; >X+ return -1; >X+ } >X+ >X+ if (flags) { >X+ extattr_arg arg = { EXTATTR_FILE, .param.path = smb_fname->base_name }; >X+ /* Check attribute existence */ >X+ res = extattr_size(arg, &attr); >X+ if (res < 0) { >X+ /* REPLACE attribute, that doesn't exist */ >X+ if ((flags & XATTR_REPLACE) && errno == ENOATTR) { >X+ errno = ENOATTR; >X+ return -1; >X+ } >X+ /* Ignore other errors */ >X+ } >X+ else { >X+ /* CREATE attribute, that already exists */ >X+ if (flags & XATTR_CREATE) { >X+ errno = EEXIST; >X+ return -1; >X+ } >X+ } >X+ } >X+ res = extattr_set_file(smb_fname->base_name, attr.namespace, attr.name, value, size); >X+ >X+ return (res >= 0) ? 0 : -1; >X+#else >X+ errno = ENOSYS; >X+ return -1; >X+#endif >X+} >X+ >X+ >X+static int freebsd_fsetxattr(vfs_handle_struct *handle, struct files_struct *fsp, >X+ const char *name, const void *value, size_t size, >X+ int flags) >X+{ >X+#if defined(HAVE_XATTR_EXTATTR) >X+ struct freebsd_handle_data *data; >X+ extattr_attr attr; >X+ ssize_t res; >X+ >X+ SMB_VFS_HANDLE_GET_DATA(handle, data, >X+ struct freebsd_handle_data, >X+ return -1); >X+ >X+ if(!freebsd_map_xattr(data->extattr_mode, name, &attr)) { >X+ errno = EINVAL; >X+ return -1; >X+ } >X+ >X+ /* Filter out 'secure' entries */ >X+ if(data->extattr_mode != FREEBSD_EXTATTR_SECURE && geteuid() != 0 && attr.data.flags > EXTATTR_USER) { >X+ errno = ENOATTR; >X+ return -1; >X+ } >X+ >X+ if (flags) { >X+ extattr_arg arg = { EXTATTR_FDES, .param.filedes = fsp->fh->fd }; >X+ /* Check attribute existence */ >X+ res = extattr_size(arg, &attr); >X+ if (res < 0) { >X+ /* REPLACE attribute, that doesn't exist */ >X+ if ((flags & XATTR_REPLACE) && errno == ENOATTR) { >X+ errno = ENOATTR; >X+ return -1; >X+ } >X+ /* Ignore other errors */ >X+ } >X+ else { >X+ /* CREATE attribute, that already exists */ >X+ if (flags & XATTR_CREATE) { >X+ errno = EEXIST; >X+ return -1; >X+ } >X+ } >X+ } >X+ >X+ res = extattr_set_fd(fsp->fh->fd, attr.namespace, attr.name, value, size); >X+ >X+ return (res >= 0) ? 0 : -1; >X+#else >X+ errno = ENOSYS; >X+ return -1; >X+#endif >X+} >X+ >X+static int freebsd_connect(vfs_handle_struct *handle, const char *service, >X+ const char *user) >X+{ >X+ struct freebsd_handle_data *data; >X+ int enumval, saved_errno; >X+ >X+ int ret = SMB_VFS_NEXT_CONNECT(handle, service, user); >X+ >X+ if (ret < 0) { >X+ return ret; >X+ } >X+ >X+ data = talloc_zero(handle->conn, struct freebsd_handle_data); >X+ if (!data) { >X+ saved_errno = errno; >X+ SMB_VFS_NEXT_DISCONNECT(handle); >X+ DEBUG(0, ("talloc_zero() failed\n")); >X+ errno = saved_errno; >X+ return -1; >X+ } >X+ >X+ enumval = lp_parm_enum(SNUM(handle->conn), "freebsd", >X+ "extattr mode", extattr_mode_param, FREEBSD_EXTATTR_LEGACY); >X+ if (enumval == -1) { >X+ saved_errno = errno; >X+ SMB_VFS_NEXT_DISCONNECT(handle); >X+ DBG_DEBUG("value for freebsd: 'extattr mode' is unknown\n"); >X+ errno = saved_errno; >X+ return -1; >X+ } >X+ >X+ if(freebsd_in_jail()) { >X+ enumval = FREEBSD_EXTATTR_COMPAT; >X+ DBG_WARNING("running in jail, enforcing 'compat' mode\n"); >X+ } >X+ >X+ data->extattr_mode = (enum extattr_mode)enumval; >X+ >X+ SMB_VFS_HANDLE_SET_DATA(handle, data, NULL, >X+ struct freebsd_handle_data, >X+ return -1); >X+ >X+ DBG_DEBUG("connect to service[%s] with '%s' extattr mode\n", >X+ service, extattr_mode_param[data->extattr_mode].name); >X+ >X+ return 0; >X+} >X+ >X+static void freebsd_disconnect(vfs_handle_struct *handle) >X+{ >X+ SMB_VFS_NEXT_DISCONNECT(handle); >X+} >X+ >X+/* VFS operations structure */ >X+ >X+struct vfs_fn_pointers freebsd_fns = { >X+ /* Disk operations */ >X+ >X+ .connect_fn = freebsd_connect, >X+ .disconnect_fn = freebsd_disconnect, >X+ >X+ /* EA operations. */ >X+ .getxattr_fn = freebsd_getxattr, >X+ .fgetxattr_fn = freebsd_fgetxattr, >X+ .listxattr_fn = freebsd_listxattr, >X+ .flistxattr_fn = freebsd_flistxattr, >X+ .removexattr_fn = freebsd_removexattr, >X+ .fremovexattr_fn = freebsd_fremovexattr, >X+ .setxattr_fn = freebsd_setxattr, >X+ .fsetxattr_fn = freebsd_fsetxattr, >X+}; >X+ >X+static_decl_vfs; >X+NTSTATUS vfs_freebsd_init(TALLOC_CTX *ctx) >X+{ >X+ NTSTATUS ret; >X+ >X+ ret = smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "freebsd", >X+ &freebsd_fns); >X+ >X+ if (!NT_STATUS_IS_OK(ret)) { >X+ return ret; >X+ } >X+ >X+ vfs_freebsd_debug_level = debug_add_class("freebsd"); >X+ if (vfs_freebsd_debug_level == -1) { >X+ vfs_freebsd_debug_level = DBGC_VFS; >X+ DEBUG(0, ("vfs_freebsd: Couldn't register custom debugging class!\n")); >X+ } else { >X+ DEBUG(10, ("vfs_freebsd: Debug class number of 'fileid': %d\n", vfs_freebsd_debug_level)); >X+ } >X+ >X+ return ret; >X+} >X--- docs-xml/manpages/vfs_freebsd.8.xml.orig 2021-02-15 17:45:36.826427000 +0000 >X+++ docs-xml/manpages/vfs_freebsd.8.xml 2021-02-15 17:45:36.826985000 +0000 >X@@ -0,0 +1,169 @@ >X+<?xml version="1.0" encoding="iso-8859-1"?> >X+<!DOCTYPE refentry PUBLIC "-//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN" "http://www.samba.org/samba/DTD/samba-doc"> >X+<refentry id="vfs_freebsd.8"> >X+ >X+<refmeta> >X+ <refentrytitle>vfs_freebsd</refentrytitle> >X+ <manvolnum>8</manvolnum> >X+ <refmiscinfo class="source">Samba</refmiscinfo> >X+ <refmiscinfo class="manual">System Administration tools</refmiscinfo> >X+ <refmiscinfo class="version">&doc.version;</refmiscinfo> >X+</refmeta> >X+ >X+<refnamediv> >X+ <refname>vfs_freebsd</refname> >X+ <refpurpose>FreeBSD-specific VFS functions</refpurpose> >X+</refnamediv> >X+ >X+<refsynopsisdiv> >X+ <cmdsynopsis> >X+ <command>vfs objects = freebsd</command> >X+ </cmdsynopsis> >X+</refsynopsisdiv> >X+ >X+<refsect1> >X+ <title>DESCRIPTION</title> >X+ >X+ <para>This VFS module is part of the <citerefentry><refentrytitle>samba</refentrytitle> >X+ <manvolnum>7</manvolnum></citerefentry> suite.</para> >X+ >X+ <para>The <command>vfs_freebsd</command> module implements some of the FreeBSD-specific VFS functions.</para> >X+ >X+ <para>This module is stackable.</para> >X+</refsect1> >X+ >X+ >X+<refsect1> >X+ <title>OPTIONS</title> >X+ >X+ <variablelist> >X+ >X+ <varlistentry> >X+ <term>freebsd:extattr mode=[legacy|compat|secure]</term> >X+ <listitem> >X+ <para>This parameter defines how the emulation of the Linux attr(5) extended attributes >X+ is performed through the FreeBSD native extattr(9) system calls.</para> >X+ >X+ <para>Currently the <emphasis>security</emphasis>, <emphasis>system</emphasis>, >X+ <emphasis>trusted</emphasis> and <emphasis>user</emphasis> extended attribute(xattr) >X+ classes are defined in Linux. Contrary FreeBSD has only <emphasis>USER</emphasis> >X+ and <emphasis>SYSTEM</emphasis> extended attribute(extattr) namespaces, so mapping >X+ of one set into another isn't straightforward and can be done in different ways.</para> >X+ >X+ <para>Historically the Samba(7) built-in xattr mapping implementation simply converted >X+ <emphasis>system</emphasis> and <emphasis>user</emphasis> xattr into corresponding >X+ <emphasis>SYSTEM</emphasis> and <emphasis>USER</emphasis> extattr namespaces, dropping >X+ the class prefix name with the separating dot and using attribute name only within the >X+ mapped namespace. It also rejected any other xattr classes, like <emphasis>security</emphasis> >X+ and <emphasis>trusted</emphasis> as invalid. Such behavior in particular broke AD >X+ provisioning on UFS2 file systems as essential <emphasis>security.NTACL</emphasis> >X+ xattr was rejected as invalid.</para> >X+ >X+ <para>This module tries to address this problem and provide secure, where it's possible, >X+ way to map Linux xattr into FreeBSD's extattr.</para> >X+ >X+ <para>When <emphasis>mode</emphasis> is set to the <emphasis>legacy (default)</emphasis> >X+ then modified version of built-in mapping is used, where <emphasis>system</emphasis> xattr >X+ is mapped into SYSTEM namespace, while <emphasis>secure</emphasis>, <emphasis>trusted</emphasis> >X+ and <emphasis>user</emphasis> xattr are all mapped into the USER namespace, dropping class >X+ prefixes and mix them all together. This is the way how Samba FreeBSD ports were patched >X+ up to the 4.9 version and that created multiple potential security issues. This mode is aimed for >X+ the compatibility with the legacy installations only and should be avoided in new setups.</para> >X+ >X+ <para>The <emphasis>compat</emphasis> mode is mostly designed for the jailed environments, >X+ where it's not possible to write extattrs into the secure SYSTEM namespace, so all four >X+ classes are mapped into the USER namespace. To preserve information about origin of the >X+ extended attribute it is stored together with the class preffix in the <emphasis>class.attribute</emphasis> >X+ format.</para> >X+ >X+ <para>The <emphasis>secure</emphasis> mode is meant for storing extended attributes in a secure >X+ manner, so that <emphasis>security</emphasis>, <emphasis>system</emphasis> and <emphasis>trusted</emphasis> >X+ are stored in the SYSTEM namespace, which can be modified only by root. >X+ </para> >X+ </listitem> >X+ </varlistentry> >X+ >X+ >X+ </variablelist> >X+</refsect1> >X+ >X+<refsect1> >X+ <table frame="all" rowheader="firstcol"> >X+ <title>Attributes mapping</title> >X+ <tgroup cols='5' align='left' colsep='1' rowsep='1'> >X+ <thead> >X+ <row> >X+ <entry> </entry> >X+ <entry>built-in</entry> >X+ <entry>legacy</entry> >X+ <entry>compat/jail</entry> >X+ <entry>secure</entry> >X+ </row> >X+ </thead> >X+ <tbody> >X+ <row> >X+ <entry>user</entry> >X+ <entry>USER; attribute</entry> >X+ <entry>USER; attribute</entry> >X+ <entry>USER; user.attribute</entry> >X+ <entry>USER; user.attribute</entry> >X+ </row> >X+ <row> >X+ <entry>system</entry> >X+ <entry>SYSTEM; attribute</entry> >X+ <entry>SYSTEM; attribute</entry> >X+ <entry>USER; system.attribute</entry> >X+ <entry>SYSTEM; system.attribute</entry> >X+ </row> >X+ <row> >X+ <entry>trusted</entry> >X+ <entry>FAIL</entry> >X+ <entry>USER; attribute</entry> >X+ <entry>USER; trusted.attribute</entry> >X+ <entry>SYSTEM; trusted.attribute</entry> >X+ </row> >X+ <row> >X+ <entry>security</entry> >X+ <entry>FAIL</entry> >X+ <entry>USER; attribute</entry> >X+ <entry>USER; security.attribute</entry> >X+ <entry>SYSTEM; security.attribute</entry> >X+ </row> >X+ </tbody> >X+ </tgroup> >X+ </table> >X+</refsect1> >X+ >X+<refsect1> >X+ <title>EXAMPLES</title> >X+ >X+ <para>Use secure method of setting extended attributes on the share:</para> >X+ >X+<programlisting> >X+ <smbconfsection name="[sysvol]"/> >X+ <smbconfoption name="vfs objects">freebsd</smbconfoption> >X+ <smbconfoption name="freebsd:extattr mode">secure</smbconfoption> >X+</programlisting> >X+ >X+</refsect1> >X+ >X+<refsect1> >X+ <title>VERSION</title> >X+ >X+ <para>This man page is part of version &doc.version; of the Samba suite. >X+ </para> >X+</refsect1> >X+ >X+<refsect1> >X+ <title>AUTHOR</title> >X+ >X+ <para>The original Samba software and related utilities >X+ were created by Andrew Tridgell. Samba is now developed >X+ by the Samba Team as an Open Source project similar >X+ to the way the Linux kernel is developed.</para> >X+ >X+ <para>This module was written by Timur I. Bakeyev</para> >X+ >X+</refsect1> >X+ >X+</refentry> >5c22daa4f3547f0fddb90ab3ff785494 >echo x - inofficial/samba413/files/patch-ctdb_wscript >sed 's/^X//' >inofficial/samba413/files/patch-ctdb_wscript << 'b89937f33c1328f7d7c5aed55f7ba898' >X--- ctdb/wscript.orig 2020-07-09 09:33:56.000000000 +0000 >X+++ ctdb/wscript 2021-02-15 16:56:45.856949000 +0000 >X@@ -106,6 +106,9 @@ >X opt.add_option('--enable-ceph-reclock', >X help=("Enable Ceph CTDB recovery lock helper (default=no)"), >X action="store_true", dest='ctdb_ceph_reclock', default=False) >X+ opt.add_option('--disable-ctdb-tests', >X+ help=("Disable CTDB tests (default=no)"), >X+ action="store_true", dest='ctdb_no_tests', default=False) >X >X opt.add_option('--with-logdir', >X help=("Path to log directory"), >X@@ -267,7 +270,7 @@ >X >X if Options.options.ctdb_ceph_reclock: >X if (conf.CHECK_HEADERS('rados/librados.h', False, False, 'rados') and >X- conf.CHECK_LIB('rados', shlib=True)): >X+ conf.CHECK_LIB('rados', shlib=True)): >X Logs.info('Building with Ceph librados recovery lock support') >X conf.define('HAVE_LIBRADOS', 1) >X else: >X@@ -306,9 +309,15 @@ >X conf.env.CTDB_VARDIR, >X conf.env.CTDB_RUNDIR)) >X >X- conf.env.CTDB_TEST_DATADIR = os.path.join(conf.env.CTDB_DATADIR, 'tests') >X- conf.env.CTDB_TEST_LIBEXECDIR = os.path.join(conf.env.LIBEXECDIR, 'ctdb/tests') >X+ if Options.options.ctdb_no_tests: >X+ conf.env.ctdb_tests = False >X+ else: >X+ conf.env.ctdb_tests = True >X >X+ if conf.env.ctdb_tests: >X+ conf.env.CTDB_TEST_DATADIR = os.path.join(conf.env.CTDB_DATADIR, 'tests') >X+ conf.env.CTDB_TEST_LIBEXECDIR = os.path.join(conf.env.LIBEXECDIR, 'ctdb/tests') >X+ >X # Allow unified compilation and separate compilation of utilities >X # to find includes >X if not conf.env.standalone_ctdb: >X@@ -689,9 +698,9 @@ >X if bld.env.HAVE_LIBRADOS: >X bld.SAMBA_BINARY('ctdb_mutex_ceph_rados_helper', >X source='utils/ceph/ctdb_mutex_ceph_rados_helper.c', >X- deps='talloc tevent rados', >X- includes='include', >X- install_path='${CTDB_HELPER_BINDIR}') >X+ deps='talloc tevent rados', >X+ includes='include', >X+ install_path='${CTDB_HELPER_BINDIR}') >X >X sed_expr1 = 's|/usr/local/var/lib/ctdb|%s|g' % (bld.env.CTDB_VARDIR) >X sed_expr2 = 's|/usr/local/etc/ctdb|%s|g' % (bld.env.CTDB_ETCDIR) >X@@ -867,6 +876,9 @@ >X >X for d in ['volatile', 'persistent', 'state']: >X bld.INSTALL_DIR(os.path.join(bld.env.CTDB_VARDIR, d)) >X+ >X+ if not bld.env.ctdb_tests: >X+ return >X >X bld.SAMBA_BINARY('errcode', >X source='tests/src/errcode.c', >b89937f33c1328f7d7c5aed55f7ba898 >echo x - inofficial/samba413/files/0001-Zfs-provision-1.patch >sed 's/^X//' >inofficial/samba413/files/0001-Zfs-provision-1.patch << 'faacccf2eaaa3c9fa40642c11fb04036' >X--- a/python/samba/provision/__init__.py.orig 2020-07-09 09:33:56.000000000 +0000 >X+++ b/python/samba/provision/__init__.py 2021-02-15 18:11:22.357104000 +0000 >X@@ -1679,19 +1679,25 @@ >X s3conf = s3param.get_context() >X s3conf.load(lp.configfile) >X >X- file = tempfile.NamedTemporaryFile(dir=os.path.abspath(sysvol)) >X+ sysvol_dir = os.path.abspath(sysvol) >X+ >X+ set_simple_acl = smbd.set_simple_acl >X+ if smbd.has_nfsv4_acls(sysvol_dir): >X+ set_simple_acl = smbd.set_simple_nfsv4_acl >X+ >X+ file = tempfile.NamedTemporaryFile(dir=sysvol_dir) >X try: >X try: >X- smbd.set_simple_acl(file.name, 0o755, system_session_unix(), gid) >X+ set_simple_acl(file.name, 0o755, system_session_unix(), gid) >X except OSError: >X- if not smbd.have_posix_acls(): >X+ if not smbd.have_posix_acls() and not smbd.have_nfsv4_acls(): >X # This clue is only strictly correct for RPM and >X # Debian-like Linux systems, but hopefully other users >X # will get enough clue from it. >X- raise ProvisioningError("Samba was compiled without the posix ACL support that s3fs requires. " >X+ raise ProvisioningError("Samba was compiled without the ACL support that s3fs requires. " >X "Try installing libacl1-dev or libacl-devel, then re-run configure and make.") >X >X- raise ProvisioningError("Your filesystem or build does not support posix ACLs, which s3fs requires. " >X+ raise ProvisioningError("Your filesystem or build does not support ACLs, which s3fs requires. " >X "Try the mounting the filesystem with the 'acl' option.") >X try: >X smbd.chown(file.name, uid, gid, system_session_unix()) >X@@ -1973,6 +1979,9 @@ >X samdb.transaction_commit() >X >X if serverrole == "active directory domain controller": >X+ if targetdir and smbd.have_nfsv4_acls() and smbd.has_nfsv4_acls(targetdir): >X+ smbd.set_nfsv4_defaults() >X+ >X # Continue setting up sysvol for GPO. This appears to require being >X # outside a transaction. >X if not skip_sysvolacl: >X@@ -2328,6 +2337,9 @@ >X >X if not os.path.isdir(paths.netlogon): >X os.makedirs(paths.netlogon, 0o755) >X+ >X+ if smbd.have_nfsv4_acls() and smbd.has_nfsv4_acls(paths.sysvol): >X+ smbd.set_nfsv4_defaults() >X >X if adminpass is None: >X adminpass = samba.generate_random_password(12, 32) >X--- a/source3/lib/sysacls.c.orig 2020-07-09 09:33:56.000000000 +0000 >X+++ b/source3/lib/sysacls.c 2021-02-15 18:11:22.358348000 +0000 >X@@ -38,6 +38,16 @@ >X #include "modules/vfs_hpuxacl.h" >X #endif >X >X+/* >X+ * NFSv4 ACL's should be understood and a first class citizen. Work >X+ * needs to be done in librpc/idl/smb_acl.idl for this to occur. >X+ */ >X+#if defined(HAVE_LIBSUNACL) && defined(FREEBSD) >X+#if 0 >X+#include "modules/nfs4_acls.h" >X+#endif >X+#endif >X+ >X #undef DBGC_CLASS >X #define DBGC_CLASS DBGC_ACLS >X >X--- a/source3/param/loadparm.c.orig 2020-12-15 07:53:45.000000000 +0000 >X+++ b/source3/param/loadparm.c 2021-02-15 18:11:22.359533000 +0000 >X@@ -2802,9 +2802,29 @@ >X } else { >X if (lp_parm_const_string(-1, "xattr_tdb", "file", NULL)) { >X lp_do_parameter(-1, "vfs objects", "dfs_samba4 acl_xattr xattr_tdb"); >X+ /* >X+ * By default, the samba sysvol is located in the statedir. Provisioning will fail in setntacl >X+ * unless we have zfacl enabled. Unfortunately, at this point the smb.conf has not been generated. >X+ * This workaround is freebsd-specific. >X+ */ >X+#if defined(_PC_ACL_EXTENDED) >X+ } else if (pathconf(lp_state_directory(), _PC_ACL_EXTENDED) == 1) { >X+ lp_do_parameter(-1, "vfs objects", "dfs_samba4 freebsd"); >X+#endif >X+#if defined(_PC_ACL_NFS4) >X+ } else if (pathconf(lp_state_directory(), _PC_ACL_NFS4) == 1) { >X+ lp_do_parameter(-1, "vfs objects", "dfs_samba4 zfsacl"); >X+#endif >X } else if (lp_parm_const_string(-1, "posix", "eadb", NULL)) { >X lp_do_parameter(-1, "vfs objects", "dfs_samba4 acl_xattr posix_eadb"); >X } else { >X+ /* >X+ * This should only set dfs_samba4 and leave acl_xattr >X+ * to be set later (or zfsacl). The only reason the decision >X+ * can't be made here to load acl_xattr or zfsacl is >X+ * that we don't have access to what the target >X+ * directory is. >X+ */ >X lp_do_parameter(-1, "vfs objects", "dfs_samba4 acl_xattr"); >X } >X } >X--- a/source3/smbd/pysmbd.c.orig 2020-07-09 09:33:56.000000000 +0000 >X+++ b/source3/smbd/pysmbd.c 2021-02-15 18:11:22.360393000 +0000 >X@@ -449,6 +449,20 @@ >X return acl; >X } >X >X+static SMB_ACL_T make_simple_nfsv4_acl(TALLOC_CTX *mem_ctx, >X+ gid_t gid, >X+ mode_t chmod_mode) >X+{ >X+ /* >X+ * This function needs to create an NFSv4 ACL. Currently, the only way >X+ * to do so is to use the operating system interface, or to use the >X+ * functions in source3/modules/nfs4_acls.c. These seems ugly and >X+ * hacky. NFSv4 ACL's should be a first class citizen and >X+ * librpc/idl/smb_acl.idl should be modified accordingly. >X+ */ >X+ return NULL; >X+} >X+ >X /* >X set a simple ACL on a file, as a test >X */ >X@@ -521,7 +535,85 @@ >X Py_RETURN_NONE; >X } >X >X+ >X /* >X+ set a simple NFSv4 ACL on a file, as a test >X+ */ >X+static PyObject *py_smbd_set_simple_nfsv4_acl(PyObject *self, PyObject *args, PyObject *kwargs) >X+{ >X+ const char * const kwnames[] = { >X+ "fname", >X+ "mode", >X+ "session_info", >X+ "gid", >X+ "service", >X+ NULL >X+ }; >X+ char *fname, *service = NULL; >X+ PyObject *py_session = Py_None; >X+ struct auth_session_info *session_info = NULL; >X+ int ret; >X+ int mode, gid = -1; >X+ SMB_ACL_T acl; >X+ TALLOC_CTX *frame; >X+ connection_struct *conn; >X+ >X+ if (!PyArg_ParseTupleAndKeywords(args, kwargs, "siO|iz", >X+ discard_const_p(char *, kwnames), >X+ &fname, >X+ &mode, >X+ &py_session, >X+ &gid, >X+ &service)) >X+ return NULL; >X+ >X+ if (!py_check_dcerpc_type(py_session, >X+ "samba.dcerpc.auth", >X+ "session_info")) { >X+ return NULL; >X+ } >X+ session_info = pytalloc_get_type(py_session, >X+ struct auth_session_info); >X+ if (session_info == NULL) { >X+ PyErr_Format(PyExc_TypeError, >X+ "Expected auth_session_info for session_info argument got %s", >X+ pytalloc_get_name(py_session)); >X+ return NULL; >X+ } >X+ >X+ frame = talloc_stackframe(); >X+ >X+ acl = make_simple_nfsv4_acl(frame, gid, mode); >X+ if (acl == NULL) { >X+ TALLOC_FREE(frame); >X+ Py_RETURN_NONE; >X+ } >X+ >X+ conn = get_conn_tos(service, session_info); >X+ if (!conn) { >X+ TALLOC_FREE(frame); >X+ Py_RETURN_NONE; >X+ } >X+ >X+ /* >X+ * SMB_ACL_TYPE_ACCESS -> ACL_TYPE_ACCESS -> Not valid for NFSv4 ACL >X+ */ >X+ ret = 0; >X+ >X+ /* ret = set_sys_acl_conn(fname, SMB_ACL_TYPE_ACCESS, acl, conn); */ >X+ >X+ if (ret != 0) { >X+ TALLOC_FREE(frame); >X+ errno = ret; >X+ return PyErr_SetFromErrno(PyExc_OSError); >X+ } >X+ >X+ TALLOC_FREE(frame); >X+ >X+ Py_RETURN_NONE; >X+} >X+ >X+/* >X chown a file >X */ >X static PyObject *py_smbd_chown(PyObject *self, PyObject *args, PyObject *kwargs) >X@@ -695,7 +787,7 @@ >X } >X >X /* >X- check if we have ACL support >X+ check if we have POSIX.1e ACL support >X */ >X static PyObject *py_smbd_have_posix_acls(PyObject *self, >X PyObject *Py_UNUSED(ignored)) >X@@ -707,7 +799,84 @@ >X #endif >X } >X >X+static PyObject *py_smbd_has_posix_acls(PyObject *self, PyObject *args, PyObject *kwargs) >X+{ >X+ const char * const kwnames[] = { "path", NULL }; >X+ char *path = NULL; >X+ TALLOC_CTX *frame; >X+ struct statfs fs; >X+ int ret = false; >X+ >X+ frame = talloc_stackframe(); >X+ >X+ if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s|z", >X+ discard_const_p(char *, kwnames), &path)) { >X+ TALLOC_FREE(frame); >X+ return NULL; >X+ } >X+ >X+ if (statfs(path, &fs) != 0) { >X+ TALLOC_FREE(frame); >X+ return NULL; >X+ } >X+ >X+ if (fs.f_flags & MNT_ACLS) >X+ ret = true; >X+ >X+ TALLOC_FREE(frame); >X+ return PyBool_FromLong(ret); >X+} >X+ >X /* >X+ check if we have NFSv4 ACL support >X+ */ >X+static PyObject *py_smbd_have_nfsv4_acls(PyObject *self) >X+{ >X+#ifdef HAVE_LIBSUNACL >X+ return PyBool_FromLong(true); >X+#else >X+ return PyBool_FromLong(false); >X+#endif >X+} >X+ >X+static PyObject *py_smbd_has_nfsv4_acls(PyObject *self, PyObject *args, PyObject *kwargs) >X+{ >X+ const char * const kwnames[] = { "path", NULL }; >X+ char *path = NULL; >X+ TALLOC_CTX *frame; >X+ struct statfs fs; >X+ int ret = false; >X+ >X+ frame = talloc_stackframe(); >X+ >X+ if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s|z", >X+ discard_const_p(char *, kwnames), &path)) { >X+ TALLOC_FREE(frame); >X+ return NULL; >X+ } >X+ >X+ if (statfs(path, &fs) != 0) { >X+ TALLOC_FREE(frame); >X+ return NULL; >X+ } >X+ >X+ if (fs.f_flags & MNT_NFS4ACLS) >X+ ret = true; >X+ >X+ TALLOC_FREE(frame); >X+ return PyBool_FromLong(ret); >X+} >X+ >X+ >X+static PyObject *py_smbd_set_nfsv4_defaults(PyObject *self) >X+{ >X+ /* >X+ * It is really be done in source3/param/loadparm.c >X+ */ >X+ Py_RETURN_NONE; >X+} >X+ >X+/* >X set the NT ACL on a file >X */ >X static PyObject *py_smbd_set_nt_acl(PyObject *self, PyObject *args, PyObject *kwargs) >X@@ -1155,8 +1324,26 @@ >X { "have_posix_acls", >X (PyCFunction)py_smbd_have_posix_acls, METH_NOARGS, >X NULL }, >X+ { "has_posix_acls", >X+ PY_DISCARD_FUNC_SIG(PyCFunction, py_smbd_has_posix_acls), >X+ METH_VARARGS|METH_KEYWORDS, >X+ NULL }, >X+ { "have_nfsv4_acls", >X+ (PyCFunction)py_smbd_have_nfsv4_acls, METH_NOARGS, >X+ NULL }, >X+ { "has_nfsv4_acls", >X+ PY_DISCARD_FUNC_SIG(PyCFunction, py_smbd_has_nfsv4_acls), >X+ METH_VARARGS|METH_KEYWORDS, >X+ NULL }, >X+ { "set_nfsv4_defaults", >X+ (PyCFunction)py_smbd_set_nfsv4_defaults, METH_NOARGS, >X+ NULL }, >X { "set_simple_acl", >X PY_DISCARD_FUNC_SIG(PyCFunction, py_smbd_set_simple_acl), >X+ METH_VARARGS|METH_KEYWORDS, >X+ NULL }, >X+ { "set_simple_nfsv4_acl", >X+ PY_DISCARD_FUNC_SIG(PyCFunction, py_smbd_set_simple_nfsv4_acl), >X METH_VARARGS|METH_KEYWORDS, >X NULL }, >X { "set_nt_acl", >faacccf2eaaa3c9fa40642c11fb04036 >echo x - inofficial/samba413/files/samba_server.in >sed 's/^X//' >inofficial/samba413/files/samba_server.in << '89c1333770ff3668b358828402faa89e' >X#!/bin/sh >X# >X# $FreeBSD: head/net/samba43/files/samba_server.in 402642 2015-11-30 01:35:36Z timur $ >X# >X >X# PROVIDE: samba_server >X# REQUIRE: NETWORKING SERVERS DAEMON ldconfig resolv ntpd %%SAMBA4_SERVICES%% >X# BEFORE: LOGIN >X# KEYWORD: shutdown >X# >X# Add the following lines to /etc/rc.conf.local or /etc/rc.conf >X# to enable this service: >X# >X#samba_server_enable="YES" >X# >X# You can disable/enable any of the Samba daemons by specifying: >X#samba_enable="NO" >X#nmbd_enable="NO" >X#smbd_enable="NO" >X# You need to enable winbindd separately, by adding: >X#winbindd_enable="YES" >X# Configuration file can be set with: >X#samba_server_config="%%SAMBA4_CONFDIR%%/%%SAMBA4_CONFIG%%" >X# >X >X. /etc/rc.subr >X >Xname="samba_server" >Xrcvar=${name}_enable >X# Defaults >Xsamba_server_config_default="%%SAMBA4_CONFDIR%%/%%SAMBA4_CONFIG%%" >Xsmbcontrol_command="%%PREFIX%%/bin/smbcontrol" >X# Custom commands >Xextra_commands="reload status configtest" >X >Xstart_precmd="samba_server_prestart" >Xrestart_precmd="samba_server_checkconfig" >Xreload_precmd="samba_server_checkconfig" >Xstart_cmd="samba_server_cmd" >Xstop_cmd="samba_server_cmd" >Xstatus_cmd="samba_server_cmd" >Xconfigtest_cmd="samba_server_checkconfig" >Xreload_cmd="samba_server_reload_cmd" >Xrcvar_cmd="samba_server_rcvar_cmd" >X >Xsamba_server_checkconfig() { >X echo -n "Performing sanity check on Samba configuration: " >X if ${testparm_command} >/dev/null 2>&1; then >X echo "OK" >X else >X echo "FAILED" >X return 1 >X fi >X} >X >Xsamba_server_prestart() { >X # Make sure we have our RUNDIR, even if it's on a tmpfs >X if [ -d "${samba_server_piddir}" -o ! -e "${samba_server_piddir}" ]; then >X install -d -m 0755 "${samba_server_piddir}" >X fi >X # https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200186 >X if [ -d "${samba_server_privatedir}" -o ! -e "${samba_server_privatedir}" ]; then >X install -d -m 0700 "${samba_server_privatedir}" >X fi >X samba_server_checkconfig >X} >X >Xsamba_server_rcvar_cmd() { >X local name rcvar >X rcvar=${name}_enable >X # Prevent recursive calling >X unset "${rc_arg}_cmd" "${rc_arg}_precmd" "${rc_arg}_postcmd" >X # Check master variable >X run_rc_command "${_rc_prefix}${rc_arg}" ${rc_extra_args} >X # Check dependent variables >X for name in ${samba_daemons}; do >X # XXX >X rcvars=''; v='' >X rcvar=${name}_enable >X run_rc_command "${_rc_prefix}${rc_arg}" ${rc_extra_args} >X done >X} >X >Xsamba_server_reload_cmd() { >X local name rcvar command pidfile force_run >X # Prevent recursive calling >X unset "${rc_arg}_cmd" "${rc_arg}_precmd" "${rc_arg}_postcmd" >X # Ignore rcvar and run command >X if [ -n "${_rc_prefix}" -a "${_rc_prefix}" = "one" ] || [ -n "${rc_force}" ] || [ -n "${rc_fast}" ]; then >X force_run=yes >X fi >X # Apply to all daemons >X for name in ${samba_daemons}; do >X rcvar=${name}_enable >X command="%%PREFIX%%/sbin/${name}" >X pidfile="${samba_server_piddir}/${name}.pid" >X # Daemon should be enabled and running >X if ( [ -n "${rcvar}" ] && checkyesno "${rcvar}" ) || [ -n "$force_run" ]; then >X if [ -n "$(check_pidfile "${pidfile}" "${command}")" ]; then >X debug "reloading ${name} configuration" >X echo "Reloading ${name}." >X ${smbcontrol_command} "${name}" 'reload-config' ${command_args} >/dev/null 2>&1 >X fi >X fi >X done >X} >X >Xsamba_server_cmd() { >X local name rcvar rcvars v command pidfile samba_daemons result force_run >X # Prevent recursive calling >X unset "${rc_arg}_cmd" "${rc_arg}_precmd" "${rc_arg}_postcmd" >X # Stop processes in the reverse order >X if [ "${rc_arg}" = "stop" ] ; then >X samba_daemons=$(reverse_list ${samba_daemons}) >X fi >X # Ignore rcvar and run command >X if [ -n "${_rc_prefix}" -a "${_rc_prefix}" = "one" ] || [ -n "${rc_force}" ] || [ -n "${rc_fast}" ]; then >X force_run=yes >X fi >X # Assume success >X result=0 >X # Apply to all daemons >X for name in ${samba_daemons}; do >X # XXX >X rcvars=''; v='' >X rcvar=${name}_enable >X command="%%PREFIX%%/sbin/${name}" >X pidfile="${samba_server_piddir}/${name}.pid" >X # Daemon should be enabled and running >X if ( [ -n "${rcvar}" ] && checkyesno "${rcvar}" ) || [ -n "$force_run" ]; then >X run_rc_command "${_rc_prefix}${rc_arg}" ${rc_extra_args} >X # If any of the commands failed, take it as a global result >X result=$((${result} || $?)) >X fi >X done >X return ${result} >X} >X >Xsamba_server_config_init() { >X local name >X # Load configuration >X load_rc_config "${name}" >X # Defaults >X samba_server_enable=${samba_server_enable:=NO} >X samba_server_config=${samba_server_config=${samba_server_config_default}} >X samba_server_configfile_arg=${samba_server_config:+--configfile="${samba_server_config}"} #" >X #testparm_command="%%PREFIX%%/bin/samba-tool testparm --suppress-prompt --verbose ${samba_server_configfile_arg}" >X testparm_command="%%PREFIX%%/bin/testparm --suppress-prompt --verbose ${samba_server_config}" >X # Determine what daemons are necessary to run Samba in the current role >X samba_server_role=$(${testparm_command} --parameter-name='server role' 2>/dev/null) >X case "${samba_server_role}" in >X active\ directory\ domain\ controller) >X samba_daemons="samba" >X ;; >X auto|*) >X samba_daemons="nmbd smbd winbindd" >X ;; >X esac >X # Load daemons configuration >X for name in ${samba_daemons}; do >X load_rc_config "${name}" >X # If samba_server_enable is 'YES' >X if [ -n "${rcvar}" ] && checkyesno "${rcvar}"; then >X if [ "${name}" != "winbindd" ]; then >X # Set variable to 'YES' only if it is unset >X eval ${name}_enable=\${${name}_enable-YES} >X else >X # Winbindd >X samba_server_idmap=$(${testparm_command} --parameter-name='idmap uid' 2>/dev/null) >X if [ -n "${samba_server_idmap}" ]; then >X winbindd_enable="YES" >X fi >X fi >X fi >X # If variable is empty, set it to 'NO' >X eval ${name}_enable=\${${name}_enable:-NO} >X done >X # Fetch parameters from configuration file >X samba_server_lockdir="$(${testparm_command} --parameter-name='lock directory' 2>/dev/null)" >X samba_server_lockdir=${samba_server_lockdir:=%%SAMBA4_LOCKDIR%%} >X samba_server_piddir="$(${testparm_command} --parameter-name='pid directory' 2>/dev/null)" >X samba_server_piddir=${samba_server_piddir:=%%SAMBA4_RUNDIR%%} >X samba_server_privatedir="$(${testparm_command} --parameter-name='private dir' 2>/dev/null)" >X samba_server_privatedir=${samba_server_privatedir:=%%SAMBA4_PRIVATEDIR%%} >X} >X >X# Load configuration variables >Xsamba_server_config_init >X# Common flags >Xcommand_args=${samba_server_configfile_arg} >Xsamba_flags=${samba_flags="--daemon"} >Xnmbd_flags=${nmbd_flags="--daemon"} >Xsmbd_flags=${smbd_flags="--daemon"} >Xwinbindd_flags=${winbindd_flags="--daemon"} >X# Requirements >Xrequired_files="${samba_server_config}" >Xrequired_dirs="${samba_server_lockdir}" >X >Xrun_rc_command "$1" >89c1333770ff3668b358828402faa89e >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 252164
:
222494
|
222497
|
222559