Coder Social home page Coder Social logo

samba-ldap's Introduction

keeword/samba-ldap

Run samba with ldap authentication backend.

Environment Variables

  • LDAP_BASE_DN: ldap base domain, eg: dc=example,dc=org
  • LDAP_URI: ldap uri, eg: ldap://ldap.example.org
  • LDAP_ADMIN_ACCOUNT: comman name of ldap administrator, eg: admin
  • LDAP_ADMIN_PASSWORD: password of ldap administrator

Samba configuration

This is a example to config samba.

[global]
    server string = Samba Server (%v)
    workgroup = WORKGROUP
    server role = standalone server
    log file  = /var/log/samba/smb.log
    max log size = 10000
    log level = 2 auth:5

    passdb backend     =  ldapsam:ldap://ldap.example.org
    ldap passwd sync   =  yes
    ldap admin dn      =  cn=admin,dc=example,dc=org
    ldap suffix        =  dc=example,dc=org
    ldap user suffix   =  ou=People
    ldap group suffix  =  ou=Group
    ldap delete dn     =  no
    ldap ssl           =  off

[mnt]
    comment = data
    path = /mnt
    browseable = yes
    writeable = yes
    guest ok = yes
    create mask = 0770
    directory mask = 0770
    map acl inherit = Yes
    inherit permissions = yes

Run

docker run --name samba-ldap --rm \
	   -e LDAP_BASE_DN="dc=example,dc=org" \
	   -e LDAP_URI="ldap://ldap.example.org" \
	   -e LDAP_ADMIN_ACCOUNT="admin" \
	   -e LDAP_ADMIN_PASSWORD="**********" \
	   -p 445:445 \
	   -v $(pwd)/smb.conf:/etc/samba/smb.conf:ro \
	   -v /mnt:/mnt \
	   keeword/samba-ldap

samba-ldap's People

Contributors

keeword avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.