Skip to content

Commit d7fa58a

Browse files
Clinton WerthClinton Werth
authored andcommitted
wip
1 parent 6bfdc81 commit d7fa58a

3 files changed

Lines changed: 35 additions & 0 deletions

File tree

Dockerfile.ldap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
FROM osixia/openldap:1.5.0
2+
COPY localseed.ldif /container/service/slapd/assets/config/bootstrap/ldif/50-seed.ldif

docker-compose.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,20 @@ services:
3737
# NOTE: default INSECURE salt value, recommend generate new UUID before deployment, **NOT** after deployment
3838
SFTP_PLUGIN_CONFIG_SALT: "A0E6D3B4-25BD-4DD6-BBC9-B367931966AB"
3939

40+
ldap:
41+
build:
42+
context: .
43+
dockerfile: Dockerfile.ldap
44+
container_name: openldap
45+
environment:
46+
- LDAP_ORGANISATION=HobbitsInc
47+
- LDAP_DOMAIN=shire.com
48+
- LDAP_ADMIN_PASSWORD=admin
49+
ports:
50+
- "389:389"
51+
- "636:636"
52+
volumes:
53+
- ./localseed.ldif:/container/service/slapd/assets/config/bootstrap/ldif/50-seed.ldif
4054
# Uncomment the following block to enable the TLS reverse proxy. You will
4155
# also need to generate the key and certificate as the README describes.
4256
# mage-web-proxy:

localseed.ldif

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
dn: ou=users,dc=shire,dc=com
2+
objectClass: organizationalUnit
3+
ou: users
4+
5+
dn: uid=frodob,ou=users,dc=shire,dc=com
6+
objectClass: inetOrgPerson
7+
uid: frodob
8+
sn: Baggins
9+
cn: Frodo Baggins
10+
userPassword: P@$$Word1234!@#$
11+
mail: frodo.baggins@shire.com
12+
13+
dn: uid=sammyg,ou=users,dc=shire,dc=com
14+
objectClass: inetOrgPerson
15+
uid: sammyg
16+
sn: Gamgee
17+
cn: Samwise Gamgee
18+
userPassword: P@$$Word!@#$1234
19+
mail: damwise.gamgee@shire.com

0 commit comments

Comments
 (0)