/samba-ldap

Docker image for SAMBA with ldap authentication

Primary LanguageDockerfileMIT LicenseMIT

🐋 + 📁 + 👤 guillaumedsde/samba-ldap

Docker Cloud Build Status Docker Cloud Automated build Website GitHub tag (latest SemVer) Codacy Badge Docker Image Size (latest by date) Docker Pulls GitHub stars GitHub watchers Docker Stars GitHub

Debian bullseyes based docker image for SAMBA with ldap authentication.

This image is based on the work of andrespp/docker-samba-ldap

🏁 How to Run

docker run

$ docker run  -v /path/to/nslcd.conf:/etc/nslcd.conf:ro \
              -v /path/to/smb.conf:/etc/samba/smb.conf:ro \
              -v /etc/localtime:/etc/localtime:ro \
              -e SAMBA_LDAP_PASSWORD=${LDAP_ADMIN_PASSWORD} \
              -p 139:139 \
              -p 445:445 \
              guillaumedsde/guillaumedsde/samba-ldap:latest

docker-compose.yml

version: "3.3"
services:
  guillaumedsde:
    volumes:
      - "/path/to/nslcd.conf:/etc/nslcd.conf:ro"
      - "/path/to/smb.conf:/etc/samba/smb.conf:ro"
      - "/etc/localtime:/etc/localtime:ro"
    environment:
      - "SAMBA_LDAP_PASSWORD=${LDAP_ADMIN_PASSWORD}"
    ports:
      - "139:139"
      - "445:445"
    image: "guillaumedsde/guillaumedsde/samba-ldap:latest"

🙏 Credits

A couple of projects really helped me out while developing this container:

  • 💽 andrespp/docker-samba-ldap for helpful inspiration
  • 🏁 s6-overlay A simple, relatively small yet powerful set of init script for managing processes (especially in docker containers)
  • 🐋 The Docker project (of course)