*** empty log message ***
This commit is contained in:
parent
2cf741cc13
commit
0667e8092d
|
@ -34,21 +34,24 @@ if($action == "checklogin")
|
||||||
$config = new Config;
|
$config = new Config;
|
||||||
$ldap = new Ldap($config);
|
$ldap = new Ldap($config);
|
||||||
$result = $ldap->connect($username,$password);
|
$result = $ldap->connect($username,$password);
|
||||||
if($result)
|
if($result == True)
|
||||||
{
|
{
|
||||||
include("./main.php"); // Username/password correct. Loading main Frame.
|
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.";
|
$error_message = "Wrong Password/Username combination. Try again.";
|
||||||
include("./login.inc"); // Username/password invalid. Returning to Login page.
|
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.";
|
$error_message = "Cannot connect to specified LDAP-Server. Try again.";
|
||||||
include("./login.inc"); // Server not reachable. Returning to Login page.
|
include("./login.inc"); // Server not reachable. Returning to Login page.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// Loading Login page
|
// Loading Login page
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue