Samba 4 AD container based on Alpine Linux 3.4
10K+
This repo has been created based on tkaefer/alpine-samba-ad-container/
Some parts are collected from:
You can read more about Samba, Active Directory & LDAP here
Without any config and thrown away when terminated:
docker run -it --rm militellovinx/samba-ad
Environment variables are controlling the way how this image behaves, therefore please check this list an explanation:
| Variable | Explanation | Default |
|---|---|---|
SAMBA_DOMAIN | The domain name used for Samba AD | SAMDOM |
SAMBA_REALM | The realm for authentication (eg. Kerberos) | SAMDOM.EXAMPLE.COM |
LDAP_ALLOW_INSECURE | Allow insecure LDAP setup, by using an unecrypted password. Please use only in debug and non-productive setups. | false |
SAMBA_ADMIN_PASSWORD | The samba admin user password | set to $(pwgen -cny 10 1) |
KERBEROS_PASSWORD | The Kerberos password | set to $(pwgen -cny 10 1) |
Using (or reusing data) is done by providing
/etc/samba/smb.conf/etc/krb5.conf/usr/lib/samba//var/lib/krb5kdc/as volumes to the docker container.
touch /tmp/krb-conf/krb5.conf
docker run -d -e SAMBA_DOMAIN=TEST -e SAMBA_REALM=TEST.MYDOMAIN.COM -v /tmp/smb-conf:/etc/samba -v /tmp/krb-conf/krb5.conf:/etc/krb5.conf -v /tmp/smb-data:/var/lib/samba -v /tmp/krb-data:/var/lib/krb5kdc --name smb4ad militellovinx/samba-ad
For details on how to store data in directories, containers etc. please check the Docker documentation.
Content type
Image
Digest
Size
52.7 MB
Last updated
almost 9 years ago
docker pull militellovinx/samba-ad