Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include_once './includes/adLDAP.php';
- if( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
- $username = htmlspecialchars( $_POST['username'] );
- $password = htmlspecialchars( $_POST['password'] );
- $adldap = new adLDAP();
- $authUser = $adldap->authenticate($username, $password);
- if ($authUser) {
- echo "User authenticated successfully";
- //hier dan dms login
- }
- else {
- echo "User authentication unsuccessful";
- //user mag niks helemaal niks.. oftewel kan ook wel weg (misschien een redirect)
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement