A cloud native LDAP server with a consul backend written in node.
Go to your consul web ui (on port 8500 by default), in the key/value tab. We will need to add a first user manually to be able to interact with our database.
Create the following keys:
dc=com/dc=example/cn=admin/attribute=cn
with content"admin"
dc=com/dc=example/cn=admin/attribute=objectclass
with content["simpleSecurityObject"]
dc=com/dc=example/cn=admin/attribute=userPassword
with content"{SSHA}PSUVFMGeuz3YRrgEIGcbto6PRzuqnpT3"
(here we have theadmin
password, but you can use theslappaswd
command shipped with openldap server to generate a SSHA password)dc=com/dc=example/cn=admin/internal=permission
with content["read", "write"]
You need at least node v10.9.0
.
npm install
node --experimental-modules index.mjs
Run:
docker run superboum/amd64_bottin:v6 --env BOTTIN_PORT=389 --env BOTTIN_CONSUL=192.168.1.1 --env BOTTIN_SUFFIX="dc=example,dc=com"
Build:
docker build -t superboum/amd64_bottin:v8 .
docker build -t superboum/arm32v7_bottin .