diegogslomp / samba-ad-dc Goto Github PK
View Code? Open in Web Editor NEW๐ณ Docker image of Samba domain controller compiled from source
Home Page: https://hub.docker.com/r/diegogslomp/samba-ad-dc
License: GNU General Public License v3.0
๐ณ Docker image of Samba domain controller compiled from source
Home Page: https://hub.docker.com/r/diegogslomp/samba-ad-dc
License: GNU General Public License v3.0
HI
Currently when i try samba test im getting this not sure if should be alarmed?
this is on one container that i did not changed the default password from the docker-compose
ldapsearch -xLLL -b "cn=administrator,cn=users,dc=test,dc=local" -D "cn=administrator,cn=users,dc=test,dc=local"
ldap_bind: Invalid credentials (49)
additional info: 80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e, v1db1
and on another container when i run
docker exec dcxx samba-tests
# DC4: smbclient //localhost/netlogon -UAdministrator -c "ls"
Password for [DOMAIN\Administrator]:
session setup failed: NT_STATUS_LOGON_FAILURE
thanks
Hi
I wanted to thank you for the amazing docker container really works greats,
I currently have it installed but with volume, but wanted to create though bind mounts, i was reading docker/docs#2979 (comment)
but not sure how i can apply on the docker compose
Which shows the issue to copy because im getting the issue
/usr/local/sbin/samba-domain-provision: line 22: samba-tool: command not found
/usr/local/sbin/samba-domain-provision: line 22: samba-tool: command not found
/usr/local/sbin/samba-domain-provision: line 22: samba-tool: command not found
/usr/local/sbin/samba-domain-provision: line 22: samba-tool: command not found
/usr/local/sbin/samba-domain-provision: line 22: samba-tool: command not found
/usr/local/sbin/samba-domain-provision: line 22: samba-tool: command not found
/usr/local/sbin/samba-domain-provision: line 22: samba-tool: command not found
/usr/local/sbin/samba-domain-provision: line 22: samba-tool: command not found
/usr/local/sbin/samba-domain-provision: line 22: samba-tool: command not found
currently this is my docker compose
services:
dc1:
image: samba:almalinux
restart: unless-stopped
network_mode: host
build:
context: .
dockerfile: dockerfiles/almalinux
container_name: dc1
hostname: DC1
privileged: true
environment:
REALM: COORP.LOCAL
DOMAIN: COORP
ADMIN_PASS: Passw0rd
DNS_FORWARDER: 8.8.8.8
volumes:
- ./addc:/usr/local/samba
i was reading abit and i also tried on the dockerfile add this part
ADD addc /usr/local/src/samba/
WORKDIR /usr/local/src/samba/
RUN ./configure && \
make -j 3 && \
make install && \
rm -rf /usr/local/src/samba
but still having the same issue not sure if there is another way to save it on another directory?
Thank you
HI
Currently trying to migrate my dc1 container to another host but for some reason its not working, not sure what i missed this were the steps i took first
sent the container image to the other host
docker save samba:ubuntu | bzip2 | ssh [email protected] docker load
then copy the files in /var/lib/docker/volumes/samba-ad-dc_dc1-local-samba/_data
to the host then edit the docker compose
version: "3.1"
services:
dc1:
image: samba:ubuntu
restart: unless-stopped
networks:
macvlan_net:
ipv4_address: 192.168.7.206
build:
context: .
dockerfile: dockerfiles/almalinux
args:
SMB_VERSION: "${SMB_VERSION:-latest}"
container_name: dc1
hostname: DC1
privileged: true
environment:
REALM: SMD.LOCAL
DOMAIN: SMD
ADMIN_PASS: Passw0rd
DNS_FORWARDER: 8.8.8.8
BIND_NETWORK_INTERFACES: false
ports:
- "53:53"
- "445:445"
volumes:
- dc1-local-samba:/usr/local/samba
- smd:/data2/
volumes:
dc1-local-samba:
driver: local-persist
driver_opts:
mountpoint: /smd/_data
smd:
driver: local-persist
driver_opts:
mountpoint: /smd
networks:
macvlan_net:
name: macvlan_net
driver: macvlan
driver_opts:
parent: ens18
ipam:
config:
- subnet: "192.168.7.0/24"
ip_range: "192.168.7.0/24"
gateway: "192.168.7.254"
i tried checking the logs but cant seem to find the logs to see what would be the issue
Thanks
Hi @diegogslomp
I was wondering was the correct way on updating?
Currently using the build of ubuntu, i was running 4.18 and wanted to update,
I ram a docker compose rebuild with no cache
but the container only logs i see is exited with code 0
thanks
Hi
I was testing out macvlan, on my linux host because i wanted to see if i can have 2 AD domains in 2 containers
for dc1 its working great as its bridge, but when i try to add dc2 and create the macvlan it seems that the ports dont seem to get opened
is there a limitation on the docker file?
These were the steps i took
created the docker network
sudo docker network create \
--driver macvlan \
--subnet 192.168.7.0/24 \
--gateway 192.168.7.254 \
--ip-range 192.168.7.100/29 \
--opt parent=ens18 \
macvlan_net
this is the docker compose of dc2
version: "3.1"
services:
dc2:
image: samba:ubuntu
restart: unless-stopped
build:
context: .
dockerfile: dockerfiles/ubuntu
args:
SMB_VERSION: "${SMB_VERSION:-latest}"
container_name: dc2
hostname: DC2
privileged: true
environment:
REALM: DGS2.NET
DOMAIN: DGS2
ADMIN_PASS: Passw0rd
DNS_FORWARDER: 8.8.8.8
networks:
- macvlan_net
volumes:
- dc2-local-samba:/usr/local/samba
networks:
macvlan_net:
name: macvlan_net
volumes:
dc2-local-samba:
it seems that in the container it shows the ports running
thank you
Hello,
I'd like to bind mount the directories where samba stores its data. This is more convenient when upgrading samba or upgrading the container.
What directories shall I bind mount? Is /usr/local/samba/var
enough?
Thanks.
using latest docker-compose.yml
INFO 2022-04-07 08:12:57,947 pid:8 /usr/local/samba/lib64/python3.6/site-packages/samba/provision/__init__.py #2278: Setting up secrets.ldb
INFO 2022-04-07 08:12:57,980 pid:8 /usr/local/samba/lib64/python3.6/site-packages/samba/provision/__init__.py #2283: Setting up the registry
INFO 2022-04-07 08:12:57,999 pid:8 /usr/local/samba/lib64/python3.6/site-packages/samba/provision/__init__.py #2286: Setting up the privileges database
INFO 2022-04-07 08:12:58,043 pid:8 /usr/local/samba/lib64/python3.6/site-packages/samba/provision/__init__.py #2289: Setting up idmap db
INFO 2022-04-07 08:12:58,080 pid:8 /usr/local/samba/lib64/python3.6/site-packages/samba/provision/__init__.py #2296: Setting up SAM db
INFO 2022-04-07 08:12:58,089 pid:8 /usr/local/samba/lib64/python3.6/site-packages/samba/provision/__init__.py #880: Setting up sam.ldb partitions and settings
INFO 2022-04-07 08:12:58,090 pid:8 /usr/local/samba/lib64/python3.6/site-packages/samba/provision/__init__.py #892: Setting up sam.ldb rootDSE
INFO 2022-04-07 08:12:58,097 pid:8 /usr/local/samba/lib64/python3.6/site-packages/samba/provision/__init__.py #1305: Pre-loading the Samba 4 and AD schema
Unable to determine the DomainSID, can not enforce uniqueness constraint on local domainSIDs
INFO 2022-04-07 08:12:58,127 pid:8 /usr/local/samba/lib64/python3.6/site-packages/samba/provision/__init__.py #1383: Adding DomainDN: DC=domain,DC=localdomain
INFO 2022-04-07 08:12:58,139 pid:8 /usr/local/samba/lib64/python3.6/site-packages/samba/provision/__init__.py #1415: Adding configuration container
INFO 2022-04-07 08:12:58,152 pid:8 /usr/local/samba/lib64/python3.6/site-packages/samba/provision/__init__.py #1430: Setting up sam.ldb schema
INFO 2022-04-07 08:13:00,582 pid:8 /usr/local/samba/lib64/python3.6/site-packages/samba/provision/__init__.py #1448: Setting up sam.ldb configuration data
INFO 2022-04-07 08:13:00,706 pid:8 /usr/local/samba/lib64/python3.6/site-packages/samba/provision/__init__.py #1489: Setting up display specifiers
INFO 2022-04-07 08:13:02,306 pid:8 /usr/local/samba/lib64/python3.6/site-packages/samba/provision/__init__.py #1497: Modifying display specifiers and extended rights
INFO 2022-04-07 08:13:02,337 pid:8 /usr/local/samba/lib64/python3.6/site-packages/samba/provision/__init__.py #1504: Adding users container
INFO 2022-04-07 08:13:02,339 pid:8 /usr/local/samba/lib64/python3.6/site-packages/samba/provision/__init__.py #1510: Modifying users container
INFO 2022-04-07 08:13:02,339 pid:8 /usr/local/samba/lib64/python3.6/site-packages/samba/provision/__init__.py #1513: Adding computers container
INFO 2022-04-07 08:13:02,340 pid:8 /usr/local/samba/lib64/python3.6/site-packages/samba/provision/__init__.py #1519: Modifying computers container
INFO 2022-04-07 08:13:02,341 pid:8 /usr/local/samba/lib64/python3.6/site-packages/samba/provision/__init__.py #1523: Setting up sam.ldb data
INFO 2022-04-07 08:13:02,450 pid:8 /usr/local/samba/lib64/python3.6/site-packages/samba/provision/__init__.py #1553: Setting up well known security principals
INFO 2022-04-07 08:13:02,500 pid:8 /usr/local/samba/lib64/python3.6/site-packages/samba/provision/__init__.py #1567: Setting up sam.ldb users and groups
INFO 2022-04-07 08:13:02,783 pid:8 /usr/local/samba/lib64/python3.6/site-packages/samba/provision/__init__.py #1575: Setting up self join
Repacking database from v1 to v2 format (first record CN=Admin-Property-Pages,CN=Schema,CN=Configuration,DC=domain,DC=localdomain)
Repack: re-packed 10000 records so far
Repacking database from v1 to v2 format (first record CN=nTDSSettings-Display,CN=412,CN=DisplaySpecifiers,CN=Configuration,DC=domain,DC=localdomain)
Repacking database from v1 to v2 format (first record CN=6bcd5685-8314-11d6-977b-00c04f613221,CN=Operations,CN=DomainUpdates,CN=System,DC=domain,DC=localdomain)
Security context active token stack underflow!
===============================================================
INTERNAL ERROR: Security context active token stack underflow! in pid 8 (4.16.0)
If you are running a recent Samba version, and if you think this problem is not yet fixed in the latest versions, please consider reporting this bug, see https://wiki.samba.org/index.php/Bug_Reporting
===============================================================
PANIC (pid 8): Security context active token stack underflow! in 4.16.0
BACKTRACE: 64 stack frames:
#0 /usr/local/samba/lib/libsamba-util.so.0(log_stack_trace+0x1f) [0x7fb8305d8771]
#1 /usr/local/samba/lib/libsamba-util.so.0(smb_panic_log+0x1b1) [0x7fb8305d8705]
#2 /usr/local/samba/lib/libsamba-util.so.0(smb_panic+0x18) [0x7fb8305d8720]
#3 /usr/local/samba/lib/private/libsmbd-base-samba4.so(sec_ctx_active_token+0x92) [0x7fb81a476ad8]
#4 /usr/local/samba/lib/private/libsmbd-base-samba4.so(get_current_nttok+0x2e) [0x7fb81a458e8f]
#5 /usr/local/samba/lib/private/libsmbd-base-samba4.so(try_chown+0x7a) [0x7fb81a4883e5]
#6 /usr/local/samba/lib/private/libsmbd-base-samba4.so(set_nt_acl+0x365) [0x7fb81a4888d9]
#7 /usr/local/samba/lib/private/libsmbd-base-samba4.so(+0x54f1f) [0x7fb81a3eaf1f]
#8 /usr/local/samba/lib/private/libsmbd-base-samba4.so(smb_vfs_call_fset_nt_acl+0x58) [0x7fb81a47cb01]
#9 /usr/local/samba/lib/private/libsmbd-base-samba4.so(+0x4bf1c) [0x7fb81a3e1f1c]
#10 /usr/local/samba/lib/private/libsmbd-base-samba4.so(fset_nt_acl_common+0x42f) [0x7fb81a3e2746]
#11 /usr/local/samba/lib/vfs/acl_xattr.so(+0x1ba4) [0x7fb8074f1ba4]
#12 /usr/local/samba/lib/private/libsmbd-base-samba4.so(smb_vfs_call_fset_nt_acl+0x58) [0x7fb81a47cb01]
#13 /usr/local/samba/lib64/python3.6/site-packages/samba/samba3/smbd.cpython-36m-x86_64-linux-gnu.so(+0x29fe) [0x7fb81a79d9fe]
#14 /usr/local/samba/lib64/python3.6/site-packages/samba/samba3/smbd.cpython-36m-x86_64-linux-gnu.so(+0x3f8c) [0x7fb81a79ef8c]
#15 /lib64/libpython3.6m.so.1.0(+0x19d8f1) [0x7fb8335ca8f1]
#16 /lib64/libpython3.6m.so.1.0(_PyEval_EvalFrameDefault+0x10d7) [0x7fb8335cbef7]
#17 /lib64/libpython3.6m.so.1.0(+0xf9df4) [0x7fb833526df4]
#18 /lib64/libpython3.6m.so.1.0(+0x17a2f0) [0x7fb8335a72f0]
#19 /lib64/libpython3.6m.so.1.0(+0x19d677) [0x7fb8335ca677]
#20 /lib64/libpython3.6m.so.1.0(_PyEval_EvalFrameDefault+0x10d7) [0x7fb8335cbef7]
#21 /lib64/libpython3.6m.so.1.0(+0xfa766) [0x7fb833527766]
#22 /lib64/libpython3.6m.so.1.0(+0x17a2f0) [0x7fb8335a72f0]
#23 /lib64/libpython3.6m.so.1.0(+0x19d677) [0x7fb8335ca677]
#24 /lib64/libpython3.6m.so.1.0(_PyEval_EvalFrameDefault+0x498) [0x7fb8335cb2b8]
#25 /lib64/libpython3.6m.so.1.0(+0xfa766) [0x7fb833527766]
#26 /lib64/libpython3.6m.so.1.0(+0x17a2f0) [0x7fb8335a72f0]
#27 /lib64/libpython3.6m.so.1.0(+0x19d677) [0x7fb8335ca677]
#28 /lib64/libpython3.6m.so.1.0(_PyEval_EvalFrameDefault+0x498) [0x7fb8335cb2b8]
#29 /lib64/libpython3.6m.so.1.0(+0xf9df4) [0x7fb833526df4]
#30 /lib64/libpython3.6m.so.1.0(+0x17a2f0) [0x7fb8335a72f0]
#31 /lib64/libpython3.6m.so.1.0(+0x19d677) [0x7fb8335ca677]
#32 /lib64/libpython3.6m.so.1.0(_PyEval_EvalFrameDefault+0x10d7) [0x7fb8335cbef7]
#33 /lib64/libpython3.6m.so.1.0(+0xf9df4) [0x7fb833526df4]
#34 /lib64/libpython3.6m.so.1.0(+0x17a2f0) [0x7fb8335a72f0]
#35 /lib64/libpython3.6m.so.1.0(+0x19d677) [0x7fb8335ca677]
#36 /lib64/libpython3.6m.so.1.0(_PyEval_EvalFrameDefault+0x10d7) [0x7fb8335cbef7]
#37 /lib64/libpython3.6m.so.1.0(+0xf9df4) [0x7fb833526df4]
#38 /lib64/libpython3.6m.so.1.0(_PyFunction_FastCallDict+0x554) [0x7fb833528734]
#39 /lib64/libpython3.6m.so.1.0(_PyObject_FastCallDict+0x70e) [0x7fb8335290de]
#40 /lib64/libpython3.6m.so.1.0(+0x10e070) [0x7fb83353b070]
#41 /lib64/libpython3.6m.so.1.0(PyObject_Call+0x4b) [0x7fb83352fe9b]
#42 /lib64/libpython3.6m.so.1.0(_PyEval_EvalFrameDefault+0x2309) [0x7fb8335cd129]
#43 /lib64/libpython3.6m.so.1.0(+0xf9df4) [0x7fb833526df4]
#44 /lib64/libpython3.6m.so.1.0(_PyFunction_FastCallDict+0x31a) [0x7fb8335284fa]
#45 /lib64/libpython3.6m.so.1.0(_PyObject_FastCallDict+0x70e) [0x7fb8335290de]
#46 /lib64/libpython3.6m.so.1.0(+0x10e10e) [0x7fb83353b10e]
#47 /lib64/libpython3.6m.so.1.0(PyObject_Call+0x4b) [0x7fb83352fe9b]
#48 /lib64/libpython3.6m.so.1.0(_PyEval_EvalFrameDefault+0x2309) [0x7fb8335cd129]
#49 /lib64/libpython3.6m.so.1.0(+0xf9df4) [0x7fb833526df4]
#50 /lib64/libpython3.6m.so.1.0(_PyFunction_FastCallDict+0x31a) [0x7fb8335284fa]
#51 /lib64/libpython3.6m.so.1.0(_PyObject_FastCallDict+0x70e) [0x7fb8335290de]
#52 /lib64/libpython3.6m.so.1.0(+0x10e10e) [0x7fb83353b10e]
#53 /lib64/libpython3.6m.so.1.0(PyObject_Call+0x4b) [0x7fb83352fe9b]
#54 /lib64/libpython3.6m.so.1.0(_PyEval_EvalFrameDefault+0x2309) [0x7fb8335cd129]
#55 /lib64/libpython3.6m.so.1.0(+0xf9df4) [0x7fb833526df4]
#56 /lib64/libpython3.6m.so.1.0(_PyFunction_FastCallDict+0x31a) [0x7fb8335284fa]
#57 /lib64/libpython3.6m.so.1.0(_PyObject_FastCallDict+0x70e) [0x7fb8335290de]
#58 /lib64/libpython3.6m.so.1.0(+0x10e10e) [0x7fb83353b10e]
#59 /lib64/libpython3.6m.so.1.0(PyObject_Call+0x4b) [0x7fb83352fe9b]
#60 /lib64/libpython3.6m.so.1.0(_PyEval_EvalFrameDefault+0x2309) [0x7fb8335cd129]
#61 /lib64/libpython3.6m.so.1.0(+0xf9df4) [0x7fb833526df4]
#62 /lib64/libpython3.6m.so.1.0(PyEval_EvalCode+0x23) [0x7fb833528193]
#63 /lib64/libpython3.6m.so.1.0(+0x209ab2) [0x7fb833636ab2]
Can not dump core: corepath not set up
Hi
I was wondering if its possible to join this container to a windows domain or linux domain (zentyal)
the idea is to transfer the FSMO roles and pass the AD to this container
Thank you
It would be cool if there would also be an arm64 version so i can run it on my pi
Hi, I have modified the docker-compose file in two ways.
1.) specified the debian image and dockerfile for dc1,dc2,dc3 & dc4
2.) specified filesystem paths rather than docker controlled volumes
services:
dc1:
image: samba:debian
restart: unless-stopped
build:
context: .
dockerfile: dockerfiles/debian
args:
SMB_VERSION: "${SMB_VERSION:-latest}"
container_name: dc1
hostname: DC1
privileged: true
environment:
REALM: DGS.NET
DOMAIN: DGS
ADMIN_PASS: Passw0rd
DNS_FORWARDER: 8.8.8.8
BIND_NETWORK_INTERFACES: false
dns_search: dgs.net
dns:
- 172.16.238.10
- 172.16.238.20
- 172.16.238.30
- 172.16.238.40
extra_hosts:
- "DC1 DC1.dgs.net:172.16.238.10"
- "DC2 DC2.dgs.net:172.16.238.20"
- "DC3 DC3.dgs.net:172.16.238.30"
- "DC4 DC4.dgs.net:172.16.238.40"
command: bash -c "
samba-domain-provision &&
samba -F"
volumes:
- ./dc1-local-samba:/usr/local/samba
networks:
static-network:
ipv4_address: 172.16.238.10
dc2:
image: samba:debian
restart: unless-stopped
build:
context: .
dockerfile: dockerfiles/debian
args:
SMB_VERSION: "${SMB_VERSION:-latest}"
container_name: dc2
hostname: DC2
privileged: true
environment:
REALM: DGS.NET
DOMAIN: DGS
ADMIN_PASS: Passw0rd
DNS_FORWARDER: 8.8.8.8
BIND_NETWORK_INTERFACES: false
dns_search: dgs.net
dns:
- 172.16.238.20
- 172.16.238.30
- 172.16.238.40
- 172.16.238.10
extra_hosts:
- "DC1 DC1.dgs.net:172.16.238.10"
- "DC2 DC2.dgs.net:172.16.238.20"
- "DC3 DC3.dgs.net:172.16.238.30"
- "DC4 DC4.dgs.net:172.16.238.40"
command: bash -c "
samba-domain-join DC1 &&
samba -F"
volumes:
- ./dc2-local-samba:/usr/local/samba
networks:
static-network:
ipv4_address: 172.16.238.20
...
...
..
but every time I get a response that samba-tool is missing from the samba-domain-provision script ?
Any ideas please ?
Simon
For my primary DC this compose file works good.
version: '3'
services:
samba-ad-dc:
image: diegogslomp/samba-ad-dc
container_name: dc1
hostname: dc1.name.com
privileged: true
network_mode: host
restart: unless-stopped
environment:
REALM: 'NAME.COM'
DOMAIN: 'NAME'
ADMIN_PASS: 'Passw0rd'
DNS_FORWARDER: '8.8.8.8'
volumes:
- samba-data:/usr/local/samba
- samba-krb5:/etc/krb5.conf.d
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
volumes:
samba-data:
samba-krb5:
Can I use the similar docker compose file without downloading from github to setup secondary dc and join it to primary.
Will it take dns:, extra_hosts: and command: bash -c "samba-domain-join DC1 && samba -F" options?
Assuming I use the image from diegogslomp/samba-ad-dc
Thanking you
Hi
Currently have an issue with installing the docker container
this is my docker compose
version: "3.1"
services:
dc1:
image: samba:almalinux
restart: unless-stopped
network_mode: host
build:
context: .
dockerfile: dockerfiles/almalinux
container_name: dc1
hostname: DC1
privileged: true
environment:
REALM: FIX.LOCAL
DOMAIN: FIX
ADMIN_PASS: Passw0rd
DNS_FORWARDER: 8.8.8.8
volumes:
- dc1-local-samba:/usr/local/samba
volumes:
dc1-local-samba:
driver: local-persist
driver_opts:
mountpoint: /samba
currently getting this error on the logs
dc1 | /usr/local/sbin/samba-domain-provision: line 22: samba-tool: command not found
dc1 | /usr/local/sbin/samba-domain-provision: line 22: samba-tool: command not found
dc1 | /usr/local/sbin/samba-domain-provision: line 22: samba-tool: command not found
dc1 | /usr/local/sbin/samba-domain-provision: line 22: samba-tool: command not found
dc1 | /usr/local/sbin/samba-domain-provision: line 22: samba-tool: command not found
dc1 | /usr/local/sbin/samba-domain-provision: line 22: samba-tool: command not found
dc1 | /usr/local/sbin/samba-domain-provision: line 22: samba-tool: command not found
dc1 | /usr/local/sbin/samba-domain-provision: line 22: samba-tool: command not found
dc1 | /usr/local/sbin/samba-domain-provision: line 22: samba-tool: command not found
dc1 | /usr/local/sbin/samba-domain-provision: line 22: samba-tool: command not found
dc1 | /usr/local/sbin/samba-domain-provision: line 22: samba-tool: command not found
dc1 exited with code 127
Thank you
Hi @diegogslomp Hope all is well,
Currently im migrating another docker container to another host the issue is that on the current host i have a different CPU while on the other host i have KVM when i migrate i see the logs
samba: /lib/x86_64-linux-gnu/libjansson.so.4: no version information available (required by /usr/local/samba/lib/private/libcommon-auth-samba4.so)
samba: CPU ISA level is lower than required
i tried creating another container in the KVM host then copy the private lib and libexec to that container but no luck
Thank yu=ou
Just for info, I don't know if you want to put in the documentation but almalinux and rocky Linux won't compile or run on QEMU64 or KVM64 (Fatal glibc error: CPU does not support x86-64-v2) . The work around is to use the other containers or use HOST emulation.
This is the case during both container creation and when they are running.
Cheers
Simon
Please can you tell me why there is a Bind branch ? What issue does this solve please ? Is it just extra functionality ?
TIA
Hi
I currently trying to activate the shadow copies on the samba server
but it seems that when i try to look for it it shows nothing
i had to first in the container install
apt install samba-vfs-modules
then checked
root@DC1:/usr/local/sbin# apt list | grep samba-vfs
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
samba-vfs-modules/jammy-updates,jammy-security,now 2:4.15.13+dfsg-0ubuntu1.1 amd64 [installed]
then the smb.conf,
[shares]
path = /data
comment = shares
valid users = "@MYDOMAIN\domain users"
force group = "Domain Users"
writable = yes
read only = no
force create mode = 0660
create mask = 0777
directory mask = 0777
force directory mode = 0770
access based share enum = yes
hide unreadable = yes
acl_xattr:ignore system acls = yes
vfs objects = acl_xattr full_audit recycle shadow_copy2
shadow: snapdir = .zfs/snapshot
shadow: sort = desc
# Specify snapshot name: frequent, hourly, daily... as desired
shadow: format = _%Y-%m-%d_%H:%M:%S
shadow: snapprefix = ^pyznap
shadow: delimiter = _
shadow:localtime = yes
on the container it tries to shows but i keep getting this error
root@DC1:/data/.zfs# ls snapshot/pyznap_2023-04-30_16\:51\:52_frequent/
ls: cannot access 'snapshot/pyznap_2023-04-30_16:51:52_frequent/': Too many levels of symbolic links
it seems that its now appearing on the windows but when i try to restore i get
i think it might be an issue of the time from the host and the docker container
Thank you
Hi @diegogslomp I was wondering is it possible to add this container as a samba server and not as a secondary server?
i was looking at the https://github.com/diegogslomp/samba-ad-dc/blob/master/sbin/samba-domain-join
would i remove something like this?
samba-tool domain join "${REALM}" \
--server="${server}" \
--username=administrator \
--password="${ADMIN_PASS}" \
--dns-backend="${DNS_BACKEND:-SAMBA_INTERNAL}" \
--option="dns forwarder=${DNS_FORWARDER}" \
--option="interfaces=lo ${INTERFACE}" \
--option="bind interfaces only=yes"
and the docker compose, as the AD server is 192.168.3.200
version: "3.1"
services:
fileserver:
image: samba:ubuntu
restart: unless-stopped
network_mode: host
build:
context: .
dockerfile: dockerfiles/ubuntu
args:
SMB_VERSION: "${SMB_VERSION:-latest}"
container_name: fileserver
hostname: fileserver
privileged: true
environment:
REALM: F2F.LOCAL
DOMAIN: F2F
ADMIN_PASS: Passw0rd
DNS_FORWARDER: 8.8.8.8
dns_search: f2f.local
dns:
- 192.168.3.200
extra_hosts:
- "zentyal zentyal.f2f.local:192.168.3.200"
command: bash -c "samba-domain-join zentyal && samba -F"
volumes:
- fileserver-local-samba:/usr/local/samba
volumes:
fileserver-local-samba:
Thank you
Subject should cover the feature request.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.