Sign inSign up

bodsch/docker-samba4

By bodsch

•Updated over 7 years ago

small, alpine based, container with a Samba4 AD

Image
5

10K+

bodsch/docker-samba4 repository overview

⁠docker-samba4

small, alpine based, container with a Samba4 AD

⁠Status

Docker Pulls Image Size Build Status

⁠Build

Your can use the included Makefile.

To build the Container: make

To remove the builded Docker Image: make clean

Starts the Container with a simple set of environment vars: make run

Starts the Container with Login Shell: make shell

Entering the Container: make exec

Stop (but not kill): make stop

see the History make history

⁠Docker Hub

You can find the Container also at DockerHub⁠

⁠supported Environment Vars

Environmental VariableDefault ValueDescription
SAMBA_DC_ADMIN_PASSWDautogeneratedAdministrator Password
KERBEROS_PASSWORDautogeneratedKerberos Passwort
SAMBA_DC_DOMAINsmb
SAMBA_DC_REALMSAMBA.LAN
SAMBA_DC_DNS_BACKENDSAMBA_INTERNALBIND9_FLATFILE is also supported and starts an internal bind
SAMBA_OPTIONS-
TEST_USER-if true the container will import some test users:
grillstarling and bodsch

⁠Test

ldapsearch -H ldaps://localhost -D "[email protected]"  -w "${SAMBA_DC_ADMIN_PASSWD}" -b "DC=samba,DC=lan"  '(objectClass=*)'
ldapsearch -H ldaps://localhost -D "[email protected]"  -w "${SAMBA_DC_ADMIN_PASSWD}" -b "DC=samba,DC=lan" -x -LLL -z 0

With TEST_USER enabled, you can check the grillstarling User:

ldapsearch -H ldaps://localhost  -D "[email protected]"  -w "${SAMBA_DC_ADMIN_PASSWD}" -b "CN=Users,DC=samba,DC=lan" '(&(objectClass=user)(sAMAccountName=grillstarling))'

Tag summary

Content type

Image

Digest

Size

37.1 MB

Last updated

over 7 years ago

docker pull bodsch/docker-samba4