2
0
A simple docker compose setup to experiment with the auth-ldap plugin for OpenVPN
Go to file
2023-10-04 00:36:16 +02:00
.secrets initial commit 2023-10-04 00:36:16 +02:00
openvpn initial commit 2023-10-04 00:36:16 +02:00
scripts initial commit 2023-10-04 00:36:16 +02:00
.gitignore initial commit 2023-10-04 00:36:16 +02:00
docker-compose.yml initial commit 2023-10-04 00:36:16 +02:00
Dockerfile.client initial commit 2023-10-04 00:36:16 +02:00
Dockerfile.server initial commit 2023-10-04 00:36:16 +02:00
README.md initial commit 2023-10-04 00:36:16 +02:00
vpnca.sh initial commit 2023-10-04 00:36:16 +02:00

Dockerized Container Testbed for OpenVPN with CCD and LDAP Auth

Build VPN Test Root CA

./vpnca.sh

Set Secrets for LDAP Access

In directory .secrets create the following files containing LDAP login information:

  • .secrets/auth_ldap_base_dn:
    Example: ou=users,dc=example,dc=test
  • .secrets/auth_ldap_bind_dn:
    Example: uid=ldap_readonly,dc=example,dc=test
  • .secrets/auth_ldap_group_base_dn:
    Example: ou=groups,dc=example,dc=test
  • .secrets/auth_ldap_group_search_filter: Example: (cn=vpnuser)
  • .secrets/auth_ldap_password:
    Example: topsecret123
  • .secrets/auth_ldap_url:
    Example: ldap://ldap01.example.test
  • .secrets/login_password:
    Example: P4ssw0rd
  • .secrets/login_user:
    Example: testuser1

Build and run the Example

docker compose build
docker compose up