winlog/admin/authentification_ldap.php
2018-11-21 09:11:34 +01:00

29 lines
1.1 KiB
PHP

<?php
// Formulaire d'authentification LDAP
include_once('winlog_admin_conf.php');
// on sort immédiatement si login.php est appelé sans les paramètres attendus
if ($auth_mode !="LDAP") {
header('Location: interdit.php');
exit();
}
include_once('ldap_conf.php');
?>
<!DOCTYPE HTML>
<html lang="fr">
<head>
<title>Winlog</title>
<meta charset="utf-8">
<link rel="stylesheet" media="screen" type="text/css" title="default" href="default.css">
</head>
<body>
<p class="header">WINLOG-R</p>
<p style="text-align: center"><?php echo($auth_ldap_message); ?>
<form id="login" name="login" action="login_ldap.php" method="POST">
<div class="login"><label for="username">Compte : </label><input type="text" id⁼"username" name="username" /></div>
<div class = "login"><label for="password">Mot de passe : </label><input type="password" id="password" name="password" /></div>
<button type="submit" class ="bouton_valide">Valider</button>
</form>
<p class="footer">version <?php echo($winlog_version); ?></p>
</body>
</html>