Sign inSign up

evermind/self-service-password

By evermind

Updated over 6 years ago

Self service password reset app for ldap users

Image
0

103

evermind/self-service-password repository overview

hub.docker.com/r/tiredofit/self-service-password

Build Status Docker Pulls Docker Stars Docker
Layers

Introduction

Dockerfile to build a LTB-Self Service Password selfservice password manager for LDAP image.

This Container uses [tiredofit/alpine:3.10](https://hub.docker.com/r/tiredofit/alpine as a base, and tiredofit/nginx-php-fpm:7.3 to provide the serving of the content.

Changelog

Authors

Table of Contents

Prerequisites

This image assumes that you are using a reverse proxy such as jwilder/nginx-proxy and optionally the Let's Encrypt Proxy Companion @ https://github.com/JrCs/docker-letsencrypt-nginx-proxy-companion in order to serve your pages. However, it will run just fine on it's own if you map appropriate ports.

This image also relies on an external LDAP Server, external SMTP Server.

Installation

Automated builds of the image are available on Docker Hub and is the recommended method of installation.

docker pull tiredofit/self-service-password:latest

Quick Start

Configuration

Data-Volumes

The following directories are used for configuration and can be mapped for persistent storage.

DirectoryDescription
/www/sspRoot SelfService Password Directory
Environment Variables

Along with the Environment Variables from the Base image, and the Nginx+PHP-FPM Engine below is the complete list of available options that can be used to customize your installation.

ParameterDescription
LDAP_SERVERLdap server. No default.
LDAP_STARTTLSEnable TLS on Ldap bind. No default.
LDAP_BINDDNLdap bind dn. No default.
LDAP_BINDPASSLdap bind password. No default.
LDAP_BASE_SEARCHBase where we can search for users. No default.
LDAP_LOGIN_ATTRIBUTELdap property used for user searching. Defaults to uid
LDAP_FULLNAME_ATTRIBUTELdap property to get user fullname. Defaults to cn
ADMODESpecifies if LDAP server is Active Directory LDAP server. If your LDAP server is AD, set this to true. Defaults to false.
AD_OPT_FORCE_UNLOCKForce account unlock when password is changed. Default to false.
AD_OPT_FORCE_PWD_CHANGEForce user change password at next login. Defaults to false.
AD_OPT_CHANGE_EXPIRED_PASSWORDAllow user with expired password to change password. Defaults to false.
SAMBA_MODESamba mode, if is true update sambaNTpassword and sambaPwdLastSet attributes too; if is false just update the password. Defaults to false.
SHADOW_OPT_UPDATE_SHADOWLASTCHANGEIf true update shadowLastChange. Defaults to false.
PASSWORD_HASHHash mechanism for passwordSSHA SHA SMD5 MD5 CRYPT clear (the default) auto (will check the hash of current password) This option is not used with ad_mode = true
PASSWORD_MIN_LENGTHMinimal length. Defaults to 0 (unchecked).
PASSWORD_MAX_LENGTHMaximal length. Defaults to 0 (unchecked).
PASSWORD_MIN_LOWERCASEMinimal lower characters. Defaults to 0 (unchecked).
PASSWORD_MIN_UPPERCASEMinimal upper characters. Defaults to 0 (unchecked).
PASSWORD_MIN_DIGITMinimal digit characters. Defaults to 0 (unchecked).
PASSWORD_MIN_SPECIALMinimal special characters. Defaults to 0 (unchecked).
PASSWORD_NO_REUSEDont reuse the same password as currently. Defaults to true.
PASSWORD_SHOW_POLICYShow policy constraints messagealways never onerror. Defaults to never
PASSWORD_SHOW_POLICY_POSITIONPosition of password policy constraints messageabove below -
the form. Defaults to above
WHO_CAN_CHANGE_PASSWORDWho changes the password? Also applicable for question/answer save user: the user itself manager: the above binddn. Defaults to user
QUESTIONS_ENABLEDUse questions/answers? true or false. Defaults to true
LDAP_MAIL_ATTRIBUTELDAP mail attribute. Defaults to mail
MAIL_FROMWho the email should come from. Defaults to [email protected]
MAIL_FROM_NAMEName for MAIL_FROM. Defaults to No Reply
NOTIFY_ON_CHANGENotify users anytime their password is changed. Defaults to false
SMTP_DEBUGSMTP debug mode (following https:////github.com/PHPMailer/PHPMailer instructions). Defaults to 0
SMTP_HOSTSMTP host. No default.
SMTP_AUTH_ONForce smtp auth with SMTP_USER and SMTP_PASS. Defaults to false
SMTP_USERSMTP user. No default.
SMTP_PASSSMTP password. No default.
SMTP_PORTSMTP port. Defaults to 587
SMTP_SECURE_TYPESMTP secure type to use. ssl or tls. Defaults to tls
SMTP_AUTOTLSSMTP Auto TLS true or false. Defaults to false
LOGOMain Logo - Default images/ltb-logo.png
BACKGROUNDChange background Default images/unsplash-space.jpg
USE_SMSEnable sms notify. (Disabled on this image). Defaults to false
IS_BEHIND_PROXYEnable reset url parameter to accept reverse proxy. Defaults to false
SHOW_HELPDisplay help messages. Defaults to true.
LANGLanguage (NOT WORKING YET). Defaults to en.
DEBUG_MODEDebug mode. Defaults to false.
SECRETEKEYEncryption, decryption keyphrase. Defaults to secret.
USE_RECAPTCHAUse Google reCAPTCHA (http://www.google.com/recaptcha). Defaults to false
USE_TOKENSUse email to send reset tokens. Defaults to true
RECAPTCHA_PUB_KEYGo on the site to get public key
RECAPTCHA_PRIV_KEYGo on the site to get private key
RECAPTCHA_THEMETheme of ReCaptcha. Default: light
RECAPTCHA_TYPEType of ReCaptcha Default: image
RECAPTCHA_SIZESize of ReCaptcha Default: small
DEFAULT_ACTIONDefault actionchange sendtoken sendsms. Defaults to change
Networking

The following ports are exposed.

PortDescription
80HTTP

Maintenance

Shell Access

For debugging and maintenance purposes you may want access the containers shell.

docker exec -it (whatever your container name is e.g. ssp) bash

References

Tag summary

Content type

Image

Digest

Size

110.8 MB

Last updated

over 6 years ago

docker pull evermind/self-service-password:4.1.1-hotfix-1