https://github.com/guillaumedsde/ssh-ldap
Docker image for SSH with ldap authentication
https://github.com/guillaumedsde/ssh-ldap
Last synced: 8 months ago
JSON representation
Docker image for SSH with ldap authentication
- Host: GitHub
- URL: https://github.com/guillaumedsde/ssh-ldap
- Owner: guillaumedsde
- License: mit
- Created: 2023-02-15T20:45:06.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-11-17T11:59:15.000Z (11 months ago)
- Last Synced: 2024-11-17T12:37:58.585Z (11 months ago)
- Language: Dockerfile
- Size: 34.2 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 🐋 + 📁 + 👤 guillaumedsde/ssh-ldap
[](https://hub.docker.com/r/guillaumedsde/ssh-ldap)
[](https://hub.docker.com/r/guillaumedsde/ssh-ldap)
[](https://github.com/guillaumedsde/ssh-ldap)
[](https://github.com/guillaumedsde/ssh-ldap)
[](https://hub.docker.com/r/guillaumedsde/ssh-ldap)
[](https://github.com/guillaumedsde/ssh-ldap/blob/master/LICENSE.md)Debian bullseyes based docker image for SAMBA with ldap authentication.
This image is based on the work of [`andrespp/docker-ssh-ldap`](https://www.github.com/andrespp/docker-ssh-ldap).
## 🏁 How to Run
### `docker run`
```bash
$ docker run -v /path/to/nslcd.conf:/etc/nslcd.conf:ro \
-v /path/to/sshd_config:/etc/ssh/sshd_config:ro \
-v /etc/localtime:/etc/localtime:ro \
-e S6_READ_ONLY_ROOT=1 \
-p 2222:2222 \
--read-only \
--tmpfs /run/sshd \
--tmpfs /var:rw,exec \
guillaumedsde/guillaumedsde/ssh-ldap:latest
```### `docker-compose.yml`
```yaml
version: "3.3"
services:
guillaumedsde:
volumes:
- "/path/to/nslcd.conf:/etc/nslcd.conf:ro"
- "/path/to/sshd_config:/etc/ssh/sshd_config:ro"
- "/etc/localtime:/etc/localtime:ro"
read_only: true
tmpfs:
- /run/sshd
- /var:rw,exec
environment:
S6_READ_ONLY_ROOT: "1"
ports:
- "2222:2222"
image: "guillaumedsde/guillaumedsde/ssh-ldap:latest"
```## 🖥️ Supported architectures
This container is built for many hardware platforms (yes, even ppc64le whoever uses that... 😉):
- linux/386
- linux/amd64
- linux/arm/v6
- linux/arm/v7
- linux/arm64
- linux/ppc64leAll you have to do is use a recent version of docker and it will pull the appropriate version of the image [guillaumedsde/ssh-ldap](https://hub.docker.com/repository/docker/guillaumedsde/ssh-ldap) from the docker hub.
## 🙏 Credits
A couple of projects really helped me out while developing this container:
- 💽 [`andrespp/docker-samba-ldap`](https://www.github.com/andrespp/docker-samba-ldap) for helpful inspiration
- 🏁 [s6-overlay](https://github.com/just-containers/s6-overlay) A simple, relatively small yet powerful set of init script for managing processes (especially in docker containers)
- 🐋 The [Docker](https://github.com/docker) project (of course)