Giter Site home page Giter Site logo

sample-ldap's Introduction

Dependencies

Getting started

docker-compose up

On the first run, this will start downloading the base images and will start the server in the attached mode - with the terminal and OpenLDAP startup logs hooked on.

For more options starting up, please see https://docs.docker.com/compose/reference/up/.

Managing Docker containers and images

For those unfamiliar with Docker here are a few useful commands:

# SSH into a running container
docker exec -i -t [<CONTAINER-ID>|<CONTAINER-NAME>] /bin/bash

# List running containers
docker ps

# List all containers
docker ps -a

# Remove container
docker rm [<CONTAINER-ID>|<CONTAINER-NAME>]

# List local main images
docker images

# List local images
docker images -a

# Remove image
docker rmi <IMAGE-ID>

Connections

Using ldap protocol:

  • Server - ldap://localhost:389
  • Bind DN - cn=admin,dc=example,dc=org
  • Bind Password - admin

Using SSL:

  • Server - ldaps://localhost:636
  • Bind DN - cn=admin,dc=example,dc=org
  • Bind Password - admin

Note: If you plan to use SSL, change the domainname and hostname parameters on the docker-compose.yml file accordingly. For localhost tests you can edit your /etc/hosts file like so:

# binds the hostname ldap.example.org to the loopback interface
127.0.0.1 ldap.example.org

Sample data

The directory is initially loaded with the sample data contained in the file ldap/directory.ldif.

That's the structure you'll find:

  • dc=example,dc=org
    • cn=admin
    • ou=Groups
      • cn=Administrator
      • cn=Developers
    • ou=People
      • cn=leonardo
      • cn=marpontes
      • cn=zach

More options

This repository only configures osixia/docker-openldap by using Docker Compose. To see all the options available please refer to the original repository linked above.

Managing the directory

An easy way to manage the objects on your running directory is by using Apache Directory Studio™.

It might be useful to:

  • Test connections;
  • Test searches;
  • View and change objects.

sample-ldap's People

Contributors

marpontes avatar

Watchers

 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.