Como valido cuando el usuario no ingeso el email y el password
Código PHP:
Ver original$adServer = "172.25.1.3"; #replace with your AD server ip/hostname
or $this->msg = "Could not connect to LDAP server.";
$ldaprdn = "midominio\\" . $_POST["email"];
$ldapbind = ldap_bind($ldapconn, $ldaprdn, $_POST["password"]);
if ($ldapbind) {
$msg = "Successfully Authenticated";
$_SESSION['email'] = $email;
$_SESSION['password'] = $password;
return true;
} else {
echo "Error";
//$msg = "Invalid email address / password";
return false;
}