Changes between Version 1 and Version 2 of campuswifiandeduroam2023Agenda/pwdc


Ignore:
Timestamp:
Jul 17, 2024, 7:07:55 AM (4 months ago)
Author:
tuwan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • campuswifiandeduroam2023Agenda/pwdc

    v1 v2  
    11=== Self Password Change ===
     2
     3You 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
     16Installation From tarball
     17
     18Uncompress and unarchive the tarball:
     19https://ltb-project.org/download.html
     20
     21{{{$ tar -zxvf ltb-project-self-service-password-*.tar.gz}}}
     22
     23Install 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
     29Adapt 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
     40Configure 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
     46Import 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
     50Then update:
     51
     52{{{apt update}}}
     53
     54You are now ready to install:
     55{{{apt install self-service-password}}}
     56