Sign inSign up

militellovinx/samba-ad

By militellovinx

•Updated almost 9 years ago

Samba 4 AD container based on Alpine Linux 3.4

Image
0

10K+

militellovinx/samba-ad repository overview

⁠Samba 4 AD container based on Alpine Linux 3.4

⁠Credits

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⁠

⁠Usage

Without any config and thrown away when terminated:

docker run -it --rm militellovinx/samba-ad

⁠Environment variables

Environment variables are controlling the way how this image behaves, therefore please check this list an explanation:

VariableExplanationDefault
SAMBA_DOMAINThe domain name used for Samba ADSAMDOM
SAMBA_REALMThe realm for authentication (eg. Kerberos)SAMDOM.EXAMPLE.COM
LDAP_ALLOW_INSECUREAllow insecure LDAP setup, by using an unecrypted password. Please use only in debug and non-productive setups.false
SAMBA_ADMIN_PASSWORDThe samba admin user passwordset to $(pwgen -cny 10 1)
KERBEROS_PASSWORDThe Kerberos passwordset to $(pwgen -cny 10 1)

⁠Use existing data

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.

⁠Example

⁠Plain docker
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⁠.

Tag summary

Content type

Image

Digest

Size

52.7 MB

Last updated

almost 9 years ago

docker pull militellovinx/samba-ad