Add OpenLDAP playground environment

This commit is contained in:
Timothée Floure 2020-12-23 18:54:04 +01:00
parent a592d2bbdc
commit 550c8889be
Signed by: tfloure
GPG Key ID: 4502C902C00A1E12
12 changed files with 77 additions and 0 deletions

View File

@ -0,0 +1,9 @@
# Dockerfile for the openldap container used in our CI process.
# Based on https://github.com/osixia/docker-openldap
FROM osixia/openldap:latest
MAINTAINER Timothée Floure <t.floure@e-durable.ch>
# Applied when the container start:
# see https://github.com/osixia/docker-openldap#extend-osixiaopenldap121-image
ADD ldif /container/service/slapd/assets/config/bootstrap/ldif/custom

View File

@ -0,0 +1,4 @@
# OpenLDAP Playground
This container provides an easy way to setup a playground or development
environment including a fully-featured LDAP service.

View File

@ -0,0 +1,6 @@
dn: cn=module,cn=config
cn: module
objectclass: olcModuleList
objectclass: top
olcmodulepath: /usr/lib/ldap
olcmoduleload: refint.la

View File

@ -0,0 +1,7 @@
dn: olcOverlay={1}refint,olcDatabase={1}mdb,cn=config
objectClass: olcConfig
objectClass: olcOverlayConfig
objectClass: olcRefintConfig
objectClass: top
olcOverlay: refint
olcRefintAttribute: memberof member manager owner

View File

@ -0,0 +1,6 @@
dn: cn=module,cn=config
cn: module
objectClass: olcModuleList
objectClass: top
olcModulePath: /usr/lib/ldap
olcModuleLoad: memberof.la

View File

@ -0,0 +1,11 @@
dn: olcOverlay={0}memberof,olcDatabase={1}mdb,cn=config
objectClass: olcConfig
objectClass: olcMemberOf
objectClass: olcOverlayConfig
objectClass: top
olcOverlay: memberof
olcMemberOfDangling: drop
olcMemberOfRefInt: TRUE
olcMemberOfGroupOC: groupOfNames
olcMemberOfMemberAD: member
olcMemberOfMemberOfAD: memberOf

View File

@ -0,0 +1,3 @@
dn: ou=Groups,dc=example,dc=org
ou: Groups
objectclass: organizationalUnit

View File

@ -0,0 +1,3 @@
dn: ou=Hosts,dc=example,dc=org
ou: Hosts
objectclass: organizationalUnit

View File

@ -0,0 +1,3 @@
dn: ou=Services,dc=example,dc=org
ou: Services
objectclass: organizationalUnit

View File

@ -0,0 +1,3 @@
dn: ou=Users,dc=example,dc=org
ou: Users
objectclass: organizationalUnit

View File

@ -0,0 +1,16 @@
dn: uid=jdoe,ou=Users,dc=example,dc=org
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: shadowAccount
cn: John Doe
gidNumber: 5001
givenName: John
homeDirectory: /home/jdoe
loginShell: /bin/zsh
mail: john.doe@example.org
mobile: 0041767780666
sn: Doe
uid: jdoe
uidNumber: 5001
userPassword: {SSHA}o0XxcHxqSyWTaWLIld3X6NSiZnKJdii4

View File

@ -0,0 +1,6 @@
dn: cn=peasants,ou=Groups,dc=example,dc=org
objectClass: posixGroup
cn: peasants
description: the people of example.org
gidNumber: 10000
memberUid: jdoe