Files
PHP-LDAP/views/auth.php

49 lines
1.4 KiB
PHP

<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Authentification</title>
</head>
<body>
<form method="post" action="index.php?action=login">
<label for="sAMAccountName">Votre identifiant (sAMAccountName):</label>
<input type="text" id="sAMAccountName" name="sAMAccountName" required><br>
<label for="user_password">Votre mot de passe:</label>
<input type="password" id="user_password" name="user_password" required><br>
<input type="submit" value="Connexion">
</form>
<?php if (isset($error_message)): ?>
<div class="error"><?php echo $error_message; ?></div>
<?php endif; ?>
</body>
</html>
<!--
/*
DistinguishedName : CN=Administrator,CN=Users,DC=epul3a,DC=local
Enabled : True
GivenName :
Name : Administrator
ObjectClass : user
ObjectGUID : 942805f8-904c-4393-ab28-38325a72450d
SamAccountName : Administrator
SID : S-1-5-21-2676391027-398497314-3097492335-500
Surname :
UserPrincipalName :
DistinguishedName : CN=Ali Gathor,OU=3AFISA,DC=epul3a,DC=local
Enabled : True
GivenName : Ali
Name : Ali Gathor
ObjectClass : user
ObjectGUID : 5c2f554a-5157-473d-bb21-2868e29bf8f4
SamAccountName : a.gathor
SID : S-1-5-21-2676391027-398497314-3097492335-1106
Surname : Gathor
UserPrincipalName : a.gathor@epul3a.local
*/ -->