https://github.com/dalibo/docker-samba
Samba Directory Controller dumb image
https://github.com/dalibo/docker-samba
Last synced: 17 days ago
JSON representation
Samba Directory Controller dumb image
- Host: GitHub
- URL: https://github.com/dalibo/docker-samba
- Owner: dalibo
- Created: 2024-04-11T14:16:59.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2025-02-03T10:19:31.000Z (over 1 year ago)
- Last Synced: 2025-03-05T17:40:39.424Z (over 1 year ago)
- Language: Shell
- Size: 12.7 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Samba Directory
This image holds a simple samba-dc installation with /docker-entrypoint-init.d.
Upon initialization, entrypoint:
- sources .sh files in bash
- copies .conf file to /etc/samba/smb.conf.d/
Before running samba command, smb.conf is rewritten as include of each files in /etc/samba/smb.conf.d/
## Environment
- `ADMIN_PASS` : the initial `Administrator` password.
- `DOMAIN` : the subdomain for Samba. Default to `ad`.
- `REALM` : the enterprise domain. e.g. `acme.tld`.
- `DNS_BACKEND`. Default to `SAMBA_INTERNAL`. Should be `NONE` for testing.
## Misc details
TLS is enabled by default, but self-signed.
Use `LDAPTLS_REQCERT=allow` ldaputils env var to accept self-signed certificate.
The initial administrator is `CN=Administrator,CN=Users,DC=...`, depending on your realm.
The project have a working `docker-compose.yml` and `entrypoint-init.d` as showcase.
Here is a sample ldapsearch command for realm `samba.docker`:
``` console
$ LDAPTLS_REQCERT=allow ldapsearch -H ldaps://samba.docker -D CN=Administrator,CN=Users,DC=samba,DC=docker -x -w $LDAPPASSWORD -b CN=Users,DC=samba,DC=docker '(objectClass=user)' cn
# extended LDIF
#
# LDAPv3
# base with scope subtree
# filter: (objectClass=group)
# requesting: cn
#
# Guest, Users, samba.docker
dn: CN=Guest,CN=Users,DC=samba,DC=docker
cn: Guest
...
# search result
search: 2
result: 0 Success
# numResponses: 24
# numEntries: 23
$
```