Add OpenLDAP playground environment
This commit is contained in:
parent
a592d2bbdc
commit
550c8889be
12 changed files with 77 additions and 0 deletions
9
openldap-playground/Dockerfile
Normal file
9
openldap-playground/Dockerfile
Normal 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
|
4
openldap-playground/README.md
Normal file
4
openldap-playground/README.md
Normal 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.
|
6
openldap-playground/ldif/10-refint_add.ldif
Normal file
6
openldap-playground/ldif/10-refint_add.ldif
Normal file
|
@ -0,0 +1,6 @@
|
|||
dn: cn=module,cn=config
|
||||
cn: module
|
||||
objectclass: olcModuleList
|
||||
objectclass: top
|
||||
olcmodulepath: /usr/lib/ldap
|
||||
olcmoduleload: refint.la
|
7
openldap-playground/ldif/11-refint_config.ldif
Normal file
7
openldap-playground/ldif/11-refint_config.ldif
Normal 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
|
6
openldap-playground/ldif/12-memberof_add.ldif
Normal file
6
openldap-playground/ldif/12-memberof_add.ldif
Normal file
|
@ -0,0 +1,6 @@
|
|||
dn: cn=module,cn=config
|
||||
cn: module
|
||||
objectClass: olcModuleList
|
||||
objectClass: top
|
||||
olcModulePath: /usr/lib/ldap
|
||||
olcModuleLoad: memberof.la
|
11
openldap-playground/ldif/13-refint_add.ldif
Normal file
11
openldap-playground/ldif/13-refint_add.ldif
Normal 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
|
3
openldap-playground/ldif/20-ou_groups.ldif
Normal file
3
openldap-playground/ldif/20-ou_groups.ldif
Normal file
|
@ -0,0 +1,3 @@
|
|||
dn: ou=Groups,dc=example,dc=org
|
||||
ou: Groups
|
||||
objectclass: organizationalUnit
|
3
openldap-playground/ldif/20-ou_hosts.ldif
Normal file
3
openldap-playground/ldif/20-ou_hosts.ldif
Normal file
|
@ -0,0 +1,3 @@
|
|||
dn: ou=Hosts,dc=example,dc=org
|
||||
ou: Hosts
|
||||
objectclass: organizationalUnit
|
3
openldap-playground/ldif/20-ou_services.ldif
Normal file
3
openldap-playground/ldif/20-ou_services.ldif
Normal file
|
@ -0,0 +1,3 @@
|
|||
dn: ou=Services,dc=example,dc=org
|
||||
ou: Services
|
||||
objectclass: organizationalUnit
|
3
openldap-playground/ldif/20-ou_users.ldif
Normal file
3
openldap-playground/ldif/20-ou_users.ldif
Normal file
|
@ -0,0 +1,3 @@
|
|||
dn: ou=Users,dc=example,dc=org
|
||||
ou: Users
|
||||
objectclass: organizationalUnit
|
16
openldap-playground/ldif/30-dummy_user.ldif
Normal file
16
openldap-playground/ldif/30-dummy_user.ldif
Normal 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
|
||||
|
6
openldap-playground/ldif/31-dummy_group.ldif
Normal file
6
openldap-playground/ldif/31-dummy_group.ldif
Normal 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
|
Loading…
Reference in a new issue