Giter Club home page Giter Club logo

docker-test-openldap's Introduction

OpenLDAP Docker Image for testing

Docker Build Status Docker Stars Docker Pulls

This image provides an OpenLDAP Server for testing LDAP applications, i.e. unit tests. The server is initialized with the example domain avengers.com with data from the [Marvel Wiki].

Parts of the image are based on the work from Nick Stenning docker-slapd, Bertrand Gouny docker-openldap and Marcelo Almeida [inspiration and costumization].

The Flask extension flask-ldapconn use this image for unit tests.

Features

  • Initialized with data from Marvel
  • Support for TLS (snake oil cert on build)
  • memberOf overlay support
  • MS-AD Style Groups support
  • ~124MB images size (~40MB compressed)

Usage

docker pull carlosrbcunha/docker-test-openldap
docker run --privileged -d -p 389:389 carlosrbcunha/docker-test-openldap

Exposed ports

  • 389
  • 636

Exposed volumes

  • /etc/ldap/slapd.d
  • /etc/ldap/ssl
  • /var/lib/ldap
  • /run/slapd

LDAP structure

dc=marvel,dc=com

Admin Secret
cn=admin,dc=marvel,dc=com BestPasswordEver

ou=heroes,dc=marvel,dc=com

cn=Tony Stark,ou=heroes,dc=marvel,dc=com

Attribute Value
objectClass inetOrgPerson
cn Tony Stark
sn Stark
description Human
displayName Ironman
employeeType Heroe
givenName Tony
mail [email protected]
ou heroes
uid ironman
userPassword ironman

cn=Bruce Banner,ou=heroes,dc=marvel,dc=com

Attribute Value
objectClass inetOrgPerson
cn Bruce Banner
sn Banner
description Human
displayName Hulk
employeeType Heroe
givenName Bruce
mail [email protected]
ou Heroes
uid hulk
userPassword hulk

cn=Natasha Romanoff,ou=heroes,dc=marvel,dc=com

Attribute Value
objectClass inetOrgPerson
cn Natasha Romanoff
sn Romanoff
description Human
displayName BlackWidow
employeeType Heroe
givenName Natasha
mail [email protected]
ou Heroes
uid blackwidow
userPassword blackwidow

cn=Steve Rogers,ou=heroes,dc=marvel,dc=com

Attribute Value
objectClass inetOrgPerson
cn Steve Rogers
sn Rogers
description Human
employeeType Heroe
givenName Steve
mail [email protected]
ou Office Management
uid cptn-america
userPassword cptn-america

cn=Thor,ou=heroes,dc=marvel,dc=com

Attribute Value
objectClass inetOrgPerson
cn Thor
sn Thor
description Demi God
employeeType Heroe
givenName Thor
mail [email protected]
ou Heroes
uid thor
userPassword thor

ou=villains,dc=marvel,dc=com

cn=Thanos,ou=villains,dc=marvel,dc=com

Attribute Value
objectClass inetOrgPerson
cn Thanos
sn Thanos
description Titan Warlord
employeeType Villain
givenName Thanos
mail [email protected]
ou Villains
uid thanos
userPassword thanos

cn=Johann Schmidt,ou=villains,dc=marvel,dc=com

Attribute Value
objectClass inetOrgPerson
cn Johann Schmidt
sn Schmidt
description Human
employeeType Hydra
givenName Johann
mail [email protected]
ou Villains
uid redskull
userPassword redskull

cn=Arnin Zola,ou=villains,dc=marvel,dc=com

Attribute Value
objectClass inetOrgPerson
cn Arnin Zola
sn Zola
description Human
givenName Arnin
mail [email protected]
ou Villains
uid zola
userPassword zola

cn=Alexander Pierce,ou=villains,dc=marvel,dc=com

Attribute Value
objectClass inetOrgPerson
cn Alexander Pierce
sn Pierce
description Human
givenName Alexander
mail [email protected]
ou Villains
uid pierce
userPassword pierce

cn=Wolfgang von Strucker,ou=villains,dc=marvel,dc=com

Attribute Value
objectClass inetOrgPerson
cn Wolfgang von Strucker
sn Strucker
description Human
givenName Wolfgang
mail [email protected]
ou Villains
uid strucker
userPassword strucker

cn=Werner Reinhardt,ou=villains,dc=marvel,dc=com

Attribute Value
objectClass inetOrgPerson
cn Werner Reinhardt
sn Reinhardt
description Human
givenName Werner
mail [email protected]
ou Villains
uid reinhardt
userPassword reinhardt

cn=Peter Quill,ou=heroes,dc=marvel,dc=com

Attribute Value
objectClass inetOrgPerson
cn Peter Quill
sn Quill
description Human
givenName Peter
mail [email protected]
ou Guardians
uid quill
userPassword quill

cn=Rocket Raccoon,ou=heroes,dc=marvel,dc=com

Attribute Value
objectClass inetOrgPerson
cn Rocket Raccoon
sn Raccoon
description Halfworlder
givenName Werner
mail [email protected]
ou Guardians
uid rocket
userPassword rocket

cn=Groot,ou=heroes,dc=marvel,dc=com

Attribute Value
objectClass inetOrgPerson
cn Groot
sn Groot
description Flora colossus
givenName Baby
mail [email protected]
ou Guardians
uid groot
userPassword groot

cn=Drax the Destroyer,ou=heroes,dc=marvel,dc=com

Attribute Value
objectClass inetOrgPerson
cn Drax the Destroyer
sn Destroyer
description Male
givenName Drax
mail [email protected]
ou Guardians
uid drax
userPassword drax

cn=Mantis,ou=heroes,dc=marvel,dc=com

Attribute Value
objectClass inetOrgPerson
cn Mantis
sn Mantis
description Female
givenName Mantis
mail [email protected]
ou Guardians
uid mantis
userPassword mantis

cn=Avengers,ou=groups,dc=marvel,dc=com

Attribute Value
objectClass Group
cn Avengers
member cn=Tony Stark,ou=heroes,dc=marvel,dc=com
member cn=Bruce Banner,ou=heroes,dc=marvel,dc=com
member cn=Natasha Romanoff,ou=heroes,dc=marvel,dc=com
member cn=Steve Rogers,ou=heroes,dc=marvel,dc=com
member cn=Thor,ou=heroes,dc=marvel,dc=com

cn=Hydra,ou=groups,dc=marvel,dc=com

Attribute Value
objectClass Group
cn Hydra
member cn=Johann Schmidt,ou=villains,dc=marvel,dc=com
member cn=Arnin Zola,ou=villains,dc=marvel,dc=com
member cn=Alexander Pierce,ou=villains,dc=marvel,dc=com
member cn=Wolfgang von Strucker,ou=villains,dc=marvel,dc=com
member cn=Werner Reinhardt,ou=villains,dc=marvel,dc=com

cn=Guardians,ou=groups,dc=marvel,dc=com

Attribute Value
objectClass Group
cn Guardians
member cn=Peter Quill,ou=heroes,dc=marvel,dc=com
member cn=Rocket Raccoon,ou=heroes,dc=marvel,dc=com
member cn=Groot,ou=heroes,dc=marvel,dc=com
member cn=Drax the Destroyer,ou=heroes,dc=marvel,dc=com
member cn=Mantis,ou=heroes,dc=marvel,dc=com

docker-test-openldap's People

Contributors

derektbrown avatar rroemhild avatar samyoteroglez avatar shaan1337 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.