*** empty log message ***

This commit is contained in:
duergner 2003-03-15 12:13:49 +00:00
parent 2cf741cc13
commit 0667e8092d
1 changed files with 12 additions and 9 deletions

View File

@ -34,20 +34,23 @@ if($action == "checklogin")
$config = new Config;
$ldap = new Ldap($config);
$result = $ldap->connect($username,$password);
if($result)
if($result == True)
{
include("./main.php"); // Username/password correct. Loading main Frame.
}
elseif($result == "Unable to bind to Server!")
else
{
if($ldap->server)
{
$error_message = "Wrong Password/Username combination. Try again.";
include("./login.inc"); // Username/password invalid. Returning to Login page.
}
elseif($result == "Unable to connect to Server!")
else
{
$error_message = "Cannot connect to specified LDAP-Server. Try again.";
include("./login.inc"); // Server not reachable. Returning to Login page.
}
}
}
// Loading Login page
else