fix: back to password in session, add list users in admin panel, modify, delete, logout

This commit is contained in:
Morph01
2025-02-04 07:13:34 -08:00
parent 9bac52bc37
commit 986b72a2cb
9 changed files with 224 additions and 30 deletions

13
test.php Normal file
View File

@@ -0,0 +1,13 @@
<?php
$ldapconn = ldap_connect("ldap://intranet.epul3a.local");
ldap_set_option($ldapconn, LDAP_OPT_PROTOCOL_VERSION, 3);
ldap_set_option($ldapconn, LDAP_OPT_REFERRALS, 0);
$user_dn = "CN=Ali Gathor,OU=3AFISA,DC=epul3a,DC=local";
$password = "Test@123"; // Remplace avec un vrai mot de passe de test
if (@ldap_bind($ldapconn, $user_dn, $password)) {
echo "✅ Connexion réussie !";
} else {
echo "❌ Erreur de connexion : " . ldap_error($ldapconn);
}