Skip to content
Branch: master
Find file History
Latest commit 21cc627 Oct 12, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
conf feat: added example for ldap and verdaccio v4 Sep 28, 2019
docker/ldap/ldif_files feat: added example for ldap and verdaccio v4 Sep 28, 2019
storage feat: added example for ldap and verdaccio v4 Sep 28, 2019
verdaccio-ldap feat: added example for ldap and verdaccio v4 Sep 28, 2019
docker-compose.yaml feat: added example for ldap and verdaccio v4 Sep 28, 2019
readme.md

readme.md

Verdaccio and OpenLDAP Server

Running verdaccio with the plugin https://github.com/Alexandre-io/verdaccio-ldap.

Introduction

This example is based on:

It provides a published package named @scope/example that only authenticated users can access.

packages:
  '@scope/*':
    access: marpontes zach leonardo
    publish: $authenticated
    proxy: npmjs
  '@*/*':
    access: $all
    publish: $authenticated
    proxy: npmjs
  '**':
    access: $all
    publish: $authenticated
    proxy: npmjs

Usage

To run the containers, run the following command in this folder, it should starts the containers in detach mode.

➜ docker-compose up --force-recreate --build

Building verdaccio
Step 1/4 : FROM verdaccio/verdaccio:4.2.2
 ---> 0d58a1eae16d
Step 2/4 : USER root
 ---> Using cache
 ---> fb3300bf15cc
Step 3/4 : RUN npm i && npm i verdaccio-ldap
 ---> Using cache
 ---> 97701fa53b43
Step 4/4 : USER verdaccio
 ---> Using cache
 ---> fd5ddaa03d8f
Successfully built fd5ddaa03d8f
Successfully tagged ldap-verdaccio_verdaccio:latest
Recreating verdaccio-ldap-1 ... done
Recreating openldap         ... done
Recreating ldap-verdaccio_openldap-seed_1 ... done
Recreating openldap-admin                 ... done
Attaching to verdaccio-ldap-1, openldap, ldap-verdaccio_openldap-seed_1, openldap-admin
verdaccio-ldap-1  |  warn --- config file  - /verdaccio/conf/config.yaml
verdaccio-ldap-1  |  warn --- Plugin successfully loaded: verdaccio-ldap
verdaccio-ldap-1  |  warn --- http address - http://0.0.0.0:4873/ - verdaccio/4.2.2
openldap          | *** CONTAINER_LOG_LEVEL = 3 (info)
openldap          | *** Search service in CONTAINER_SERVICE_DIR = /container/service :
openldap          | *** link /container/service/:ssl-tools/startup.sh to /container/run/startup/:ssl-tools
openldap          | *** link /container/service/slapd/startup.sh to /container/run/startup/slapd
openldap          | *** link /container/service/slapd/process.sh to /container/run/process/slapd/run
openldap          | *** Set environment for startup files
openldap          | *** Environment files will be proccessed in this order : 
openldap          | Caution: previously defined variables will not be overriden.
openldap          | /container/environment/99-default/default.yaml
openldap          | /container/environment/99-default/default.startup.yaml

To stop all containers

docker-compose stop

Credentials

You can find the complete list of users in the people.ldif file. However here a brief list of credentials.

marpontes: pass
zach: pass
leonardo: pass
You can’t perform that action at this time.