Docker container with samba, ldap backend and syslog forwarding
Based on Ubuntu with a size of 190MB
NOTE: Example assumes you have a "/samba" with your container specific data!
Change as needed with the SRC data that you are mounting into the container.
Example named data is defined in the example subdir.
Required "DATA" directory:
This container assumes you have a "/samba" folder with your container specific d
You can change that folder as needed, but make sure you update the "-v" mounts f
or run time
1.) [ REQUIRED ] In your /samba/etc/samba a file "smb.conf", which acts as an
entry point to your config
2.) [ REQUIRED ] A "/samba/var/lib/samba" directory for the Samba database
3.) [ REQUIRED ] A "/samba/etc/ldap.conf" file for the ldap config
4.) [ OPTIONAL ] set environment variable "UDPLOGHOST" or "TCPLOGHOST", if def
ined rsyslog will be started with remote SYSLOG logging to these hosts. If you u
se remote syslog, then it might be useful to set the hostname of the container d
epending on your server syslog configuration (the logs on the syslog server migh
t get stored based on the hostname of the client)
docker run --name=sambaserver --hostname=sambaserver --rm -p 137:137/udp -p 138: 138/udp -p 139:139 -p 445:445 -e UDPLOGHOST=192.168.0.17 -v /samba/var/lib/samb a:/var/lib/samba -v /samba/etc/samba:/etc/samba -v /samba:/etc/ldap.conf:/etc/l dap.conf qindel/samba-syslog