Docker image for LDAP Tool Box Self Service Password.
1.2K
This docker image is designed to run the famous LDAP Tool Box Self Service Password. Based on the latest official PHP-image the build process of the image will clone the current master branch of LDAP Tool Box Self Service Password into it's runtime environment. You'll get the current stable PHP running the current build of LTBSSP. Many thanks to LTB project group.
Enjoy!
For many simple, single file projects, you may find it inconvenient to write a complete Dockerfile for your own image. In such cases, you can run a LTBSSP instance by using the Docker image directly:
$ docker run -it --rm --name my-ltbssp \
-p 80:80 \
-v "$PWD/config":/var/www/html/conf \
migoller/ltbssp
The image contains the default configuration file config.inc.php of the current master branch for demonstration purposes. I recommend to "inject" your own configuration file using a volume mount to a host directory for example.
If you want to customize the look and feel of the LTBSSP you'll have to build a custom image.
Just follow these steps to add your files to a custom image.
$ git clone https://github.com/MiGoller/docker-ltbssp.git ../customization/conf/config.inc.php ../customization/css ../customization/images ../customization/scripts .TBD!
I highly recommend to run the LTBSSP behind an Automated Nginx reverse proxy for docker containers for SSL-encryption and protection of the PHP-container.
Have a look at the LTB Self Service Password documentation for all configuation options. You should at least adjust your LDAP connection settings of your configuration file.
# LDAP
$ldap_url = "ldap://localhost";
$ldap_starttls = false;
$ldap_binddn = "cn=manager,dc=example,dc=com";
$ldap_bindpw = "secret";
$ldap_base = "dc=example,dc=com";
$ldap_login_attribute = "uid";
$ldap_fullname_attribute = "cn";
$ldap_filter = "(&(objectClass=person)($ldap_login_attribute={login}))";
Check the hash settings as well. A "clear" password is not really a good idea! Probably $hash = "auto" will do the trick for you.
# Hash mechanism for password:
# SSHA, SSHA256, SSHA384, SSHA512
# SHA, SHA256, SHA384, SHA512
# SMD5
# MD5
# CRYPT
# clear (the default)
# auto (will check the hash of current password)
# This option is not used with ad_mode = true
$hash = "clear";
And don't forget to change the default keyphrase to anything long, random and complicated!
# Encryption, decryption keyphrase, required if $crypt_tokens = true
# Please change it to anything long, random and complicated, you do not have to remember it
# Changing it will also invalidate all previous tokens and SMS codes
$keyphrase = "secret";
Content type
Image
Digest
Size
176.8 MB
Last updated
over 8 years ago
docker pull migoller/ltbssp