From 64f8f904b0a617bbe8c2fc7f9a200a116f67b3e0 Mon Sep 17 00:00:00 2001 From: Thomas Constans Date: Wed, 24 May 2023 08:30:46 +0200 Subject: [PATCH] maj instructions pour RH9 --- Readme.md | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/Readme.md b/Readme.md index 7b260eb..75e2fe4 100644 --- a/Readme.md +++ b/Readme.md @@ -1,4 +1,4 @@ -# Installation de apache + php 7.2 + phpldapadmin +# Installation de apache + php + phpldapadmin Installation de phpldapadmin sur la machine ldxN.formation.opendoor.fr @@ -8,18 +8,27 @@ L'accès aux branches cn=config et cn=monitor est possible avec le compte _olcro ```bash -sudo dnf install httpd php-fpm php-ldap php-xml unzip -y -sudo systemctl enable --now httpd php-fpm -curl -o /tmp/pla.zip -L https://github.com/leenooks/phpLDAPadmin/archive/refs/tags/1.2.6.3.zip -cd /var/www/html -sudo unzip /tmp/pla.zip -sudo cp /var/www/html/phpLDAPadmin-1.2.6.3/config/config.php{.example,} -sudo ln -s /var/www/html/phpLDAPadmin-1.2.6.3 /var/www/html/pla +dnf install mod_ssl phpldapadmin -y +#ligne 11 du fichier /etc/httpd/conf.d/phpldapadmin.conf: remplacer require local par require all granted +systemctl enable --now httpd ``` -ligne 329 du fichier config/config.php: +dans /etc/phpldapadmin/config.php : + +ligne 327 rajouter: + +```php +$servers->setValue('server','host','localhost'); +``` + +ligne 335 rajouter: ```php $servers->setValue('server','base',array('cn=config','cn=monitor','dc=example,dc=fr')); ``` -vous pouvez aller sur http://ldxN.formation.opendoor.fr/pla/ \ No newline at end of file +ligne 453 remplacer uid par dn: +```php +$servers->setValue('login','attr','dn'); +``` + +aller sur http://ldxX.formation.opendoor.fr/phpldapadmin