Skip to content

Commit

Permalink
fix windows not being able to see any share
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Manuel "Kang" Perez committed Oct 6, 2023
1 parent e4ebab3 commit f7fab14
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,10 @@ RUN apk add build-base coreutils \
RUN wget https://download.samba.org/pub/samba/stable/samba-$SAMBA_VERSION.tar.gz -O- | tar xzf -
WORKDIR samba-$SAMBA_VERSION

ARG MODULES_BUNDLED="cmocka,vfs_default,vfs_posixacl"
ARG MODULES_ALPINE_DEFAULT="roken,wind,hx509,asn1,heimbase,hcrypto,krb5,gssapi,heimntlm,hdb,kdc"
ARG MODULES_AUTH="auth4_anonymous,auth4_sam_module,auth_netlogond,auth_samba4,auth_script,auth_server,auth_unix,auth_wbc"
ARG MODULES_IDMAP="idmap_ad,idmap_adex,idmap_hash,idmap_ldap,idmap_nss,idmap_passdb,idmap_rfc2307,idmap_rid,idmap_script,idmap_tdb2"
ARG MODULES_LDB="ldb_acl,ldb_aclread,ldb_audit_log,ldb_descriptor,ldb_dirsync,ldb_dns_notify,ldb_dsdb_notification,ldb_encrypted_secrets,ldb_ldb,ldb_mdb,ldb_objectclass,ldb_objectclass_attrs,ldb_password_hash,ldb_samba3sam,ldb_samba3sid,ldb_samba_dsdb,ldb_sqlite3"
ARG MODULES_NSS="nss_info_hash,nss_info_rfc2307"
ARG MODULES_PDB="pdb_ads,pdb_ldap,pdb_ldapsam,pdb_samba_dsdb,pdb_samba4,pdb_smbpasswd,pdb_tdbsam,pdb_wbc_sam"
ARG MODULES_BUNDLED="!tdb,!talloc,!pytalloc-util,!tevent,!popt,!ldb,!pyldb-util"
ARG MODULES_AUTH="auth_unix,auth_wbc,auth_server,auth_netlogond,auth_script,auth_samba4"
ARG MODULES_IDMAP="idmap_ad,idmap_rid,idmap_adex,idmap_hash,idmap_tdb2"
ARG MODULES_PDB="pdb_tdbsam,pdb_ldap,pdb_ads,pdb_smbpasswd,pdb_wbc_sam,pdb_samba4"
ARG MODULES_VFS="vfs_acl_xattr,vfs_aio_fork,vfs_aio_pthread,vfs_audit,vfs_btrfs,vfs_cacheprime,vfs_cap,vfs_catia,vfs_ceph,vfs_ceph_snapshots,vfs_commit,vfs_crossrename,vfs_default_quota,vfs_delay_inject,vfs_dfs_samba4,vfs_dirsort,vfs_fileid,vfs_fruit,vfs_full_audit,vfs_io_uring,vfs_nfs4acl_xattr,vfs_offline,vfs_posix_eadb,vfs_preopen,vfs_readahead,vfs_readonly,vfs_recycle,vfs_shadow_copy2,vfs_shell_snap,vfs_snapper,vfs_streams_depot,vfs_streams_xattr,vfs_syncops,vfs_time_audit,vfs_unityed_media,vfs_virusfilter,vfs_widelinks,vfs_worm"

RUN ./configure --jobs=$((`nproc` - 1)) \
Expand All @@ -44,14 +41,15 @@ RUN ./configure --jobs=$((`nproc` - 1)) \
--disable-avahi \
--disable-rpath-install \
--disable-fault-handling \
--with-profiling-data \
\
--with-ads \
--enable-cups \
--enable-ceph-reclock \
--with-smb1-server \
\
--bundled-libraries="NONE,$MODULES_BUNDLED" \
--with-shared-modules="$MODULES_ALPINE_DEFAULT,$MODULES_AUTH,$MODULES_IDMAP,$MODULES_LDB,$MODULES_NSS,$MODULES_PDB,$MODULES_VFS"
--bundled-libraries="$MODULES_BUNDLED" \
--with-shared-modules="$MODULES_AUTH,$MODULES_IDMAP,$MODULES_PDB,$MODULES_VFS"
RUN make -j$((`nproc` - 1))
RUN make DESTDIR="/target/" install -j$((`nproc` - 1))

Expand Down

0 comments on commit f7fab14

Please sign in to comment.