mirror of
https://github.com/LDAPAccountManager/lam.git
synced 2025-10-03 17:59:21 +02:00
register_globals = Off ready
This commit is contained in:
parent
7474e2c3eb
commit
fa6ad5cf9c
1 changed files with 3 additions and 3 deletions
|
@ -194,7 +194,7 @@ if($_POST['action'] == "checklogin")
|
|||
include_once("../lib/ldap.inc"); // Include ldap.php which provides Ldap class
|
||||
|
||||
$ldap = new Ldap($_SESSION['config']); //$config); // Create new Ldap object
|
||||
$result = $ldap->connect($username,$passwd); // Connect to LDAP server for verifing username/password
|
||||
$result = $ldap->connect($_POST['username'],$_POST['passwd']); // Connect to LDAP server for verifing username/password
|
||||
if($result == True) // Username/password correct. Do some configuration and load main frame.
|
||||
{
|
||||
// setting language
|
||||
|
@ -213,12 +213,12 @@ if($_POST['action'] == "checklogin")
|
|||
if($ldap->server)
|
||||
{
|
||||
$error_message = _("Wrong Password/Username combination. Try again.");
|
||||
display_LoginPage($config); // Username/password invalid. Return to login page.
|
||||
display_LoginPage($_SESSION['config']); // Username/password invalid. Return to login page.
|
||||
}
|
||||
else
|
||||
{
|
||||
$error_message = _("Cannot connect to specified LDAP-Server. Try again.");
|
||||
display_LoginPage($config); // Username/password invalid. Return to login page.
|
||||
display_LoginPage($_SESSION['config']); // Username/password invalid. Return to login page.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue