| 2 | |
| 3 | You need to install these prerequisites: |
| 4 | |
| 5 | - Apache or another web server |
| 6 | - php (>=7.4) |
| 7 | - php-curl (haveibeenpwned api) |
| 8 | - php-filter |
| 9 | - php-gd (captcha) |
| 10 | - php-ldap |
| 11 | - php-mbstring (reset mail) |
| 12 | - php-openssl (token crypt, probably built-in) |
| 13 | - smarty (3 or 4) |
| 14 | |
| 15 | |
| 16 | Installation From tarball |
| 17 | |
| 18 | Uncompress and unarchive the tarball: |
| 19 | https://ltb-project.org/download.html |
| 20 | |
| 21 | {{{$ tar -zxvf ltb-project-self-service-password-*.tar.gz}}} |
| 22 | |
| 23 | Install files in /usr/share/: |
| 24 | |
| 25 | {{{ # mv ltb-project-self-service-password-* /usr/share/self-service-password}}} |
| 26 | {{{#mkdir /usr/share/self-service-password/cache}}} |
| 27 | {{{#mkdir /usr/share/self-service-password/templates_c}}} |
| 28 | |
| 29 | Adapt ownership of Smarty cache repositories so Apache user can write into them. For example: |
| 30 | |
| 31 | {{{chown apache:apache /usr/share/self-service-password/cache}}} |
| 32 | {{{chown apache:apache /usr/share/self-service-password/templates_c}}} |
| 33 | |
| 34 | //Due to a bug in old Debian and Ubuntu smarty3 package, you may face the error syntax error, unexpected token "class". In this case, install a newer version of the package:// |
| 35 | |
| 36 | //{{{# wget http://ftp.us.debian.org/debian/pool/main/s/smarty3/smarty3_3.1.47-2_all.deb}}}// |
| 37 | |
| 38 | //{{{# dpkg -i smarty3_3.1.47-2_all.deb}}}// |
| 39 | |
| 40 | Configure the repository: |
| 41 | |
| 42 | {{{# vi /etc/apt/sources.list.d/ltb-project.list}}} |
| 43 | |
| 44 | {{{deb [arch=amd64 signed-by=/usr/share/keyrings/ltb-project.gpg] https://ltb-project.org/debian/stable stable main}}} |
| 45 | |
| 46 | Import repository key: |
| 47 | |
| 48 | {{{wget -O - https://ltb-project.org/documentation/_static/RPM-GPG-KEY-LTB-project | gpg --dearmor | sudo tee /usr/share/keyrings/ltb-project.gpg >/dev/null}}} |
| 49 | |
| 50 | Then update: |
| 51 | |
| 52 | {{{apt update}}} |
| 53 | |
| 54 | You are now ready to install: |
| 55 | {{{apt install self-service-password}}} |
| 56 | |