doc:formations:hebergement:service:ldap
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
doc:formations:hebergement:service:ldap [2022/06/23 15:18] – jeremie | doc:formations:hebergement:service:ldap [2022/07/20 16:36] (Version actuelle) – jeremie | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
:!: page en cours, brouillon | :!: page en cours, brouillon | ||
- | Ref: [[https:// | + | Mot de passe LDAP perdu ? https:// |
- | < | + | Ref: https:// |
- | apt update && apt-upgrade | + | |
- | wget http:// | ||
- | dpkg -i phpldapadmin_1.2.2-6.3_all.deb | ||
- | # (answer questions here) | ||
- | vi / | ||
- | # $servers-> | ||
- | # $servers-> | ||
- | # Setup letsencrypt | ||
- | apt install snapd | ||
- | snap install core | ||
- | snap refresh core | ||
- | snap install --classic certbot | + | # https://computingforgeeks.com/install-and-configure-ldap-account-manager-on-ubuntu/ |
- | ln -s / | + | |
- | certbot --apache | + | |
- | # (answer questions here) | + | |
- | + | ||
- | [[ $(ldapwhoami -H ldap:// -x) = ' | + | |
- | </ | + | |
- | + | ||
- | Build ''/ | + | |
- | + | ||
- | <code bash> | + | |
- | #!/bin/sh | + | |
- | + | ||
- | SITE=tools.tecrd.com | + | |
- | + | ||
- | # move to the correct let's encrypt directory | + | |
- | cd /etc/ | + | |
- | + | ||
- | # copy the files | + | |
- | cp cert.pem / | + | |
- | cp fullchain.pem / | + | |
- | cp privkey.pem / | + | |
- | + | ||
- | # adjust permissions of the private key | + | |
- | chown :ssl-cert / | + | |
- | chmod 640 / | + | |
- | + | ||
- | # restart slapd to load new certificates | + | |
- | systemctl restart slapd | + | |
- | </ | + | |
- | + | ||
- | < | + | |
- | ### ./ | + | |
- | + | ||
- | systemctl list-timers snap.certbot.renew.timer | + | |
- | + | ||
- | --post-hook / | + | |
- | Better: | + | |
- | --deploy-hook / | + | |
- | + | ||
- | ExecStart=/ | + | |
- | </code> | + | |
+ | sudo apt -y install ldap-account-manager | ||
+ | https:// |
doc/formations/hebergement/service/ldap.1655997510.txt.gz · Dernière modification : 2022/06/23 15:18 de jeremie