From 5d18c5618d05b73e63766f41487c3bcf773c3d0a Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Fri, 10 May 2019 21:58:57 +0300
Subject: [PATCH] Corrections to the ldap-account-manager container.

- ldap-account-manager is not available on Debian buster right now, use
Debian sid instead.
- Document the default password.
---
 ldap-account-manager/Dockerfile | 2 +-
 ldap-account-manager/README.md  | 3 ++-
 ldap-account-manager/entrypoint | 3 +--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/ldap-account-manager/Dockerfile b/ldap-account-manager/Dockerfile
index f89d505..0f5efd6 100644
--- a/ldap-account-manager/Dockerfile
+++ b/ldap-account-manager/Dockerfile
@@ -1,4 +1,4 @@
-FROM debian:buster-slim
+FROM debian:sid-slim
 RUN apt-get update && \
     DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
         ldap-account-manager\
diff --git a/ldap-account-manager/README.md b/ldap-account-manager/README.md
index 9ff062e..e3462c5 100644
--- a/ldap-account-manager/README.md
+++ b/ldap-account-manager/README.md
@@ -7,4 +7,5 @@
 The image isn't configured with environment variables, instead it uses a volume
 for `/var/lib/ldap-account-manager` that contains the application's
 configuration files. On first run the default files are copied to the volume and
-the configuration is done through the application itself.
+the configuration is done through the application itself. The default master
+password is `lam`.
diff --git a/ldap-account-manager/entrypoint b/ldap-account-manager/entrypoint
index 3095d20..3b31127 100755
--- a/ldap-account-manager/entrypoint
+++ b/ldap-account-manager/entrypoint
@@ -1,7 +1,6 @@
 #!/bin/sh
 set -eux
 
-chown root:root /var/lib/ldap-account-manager
-chmod 755 /var/lib/ldap-account-manager
+install -d -m 755 -o root -g root /var/lib/ldap-account-manager
 cp --archive --no-clobber --verbose --no-target-directory /var/lib/ldap-account-manager.orig /var/lib/ldap-account-manager
 eval exec "$@"
-- 
GitLab