From e9616fa73d8b1e1646dba78b8c8e9db59b9b7bd0 Mon Sep 17 00:00:00 2001 From: Thomas Constans Date: Wed, 23 Nov 2022 22:46:04 +0100 Subject: [PATCH] instructions --- Readme.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Readme.md diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..7b260eb --- /dev/null +++ b/Readme.md @@ -0,0 +1,25 @@ +# Installation de apache + php 7.2 + phpldapadmin + +Installation de phpldapadmin sur la machine ldxN.formation.opendoor.fr + +La racine de l'arbre est dc=example,dc=fr + +L'accès aux branches cn=config et cn=monitor est possible avec le compte _olcrootDN_ + + +```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 +``` + +ligne 329 du fichier config/config.php: +```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