Testing version
This commit is contained in:
parent
c6084b511d
commit
055ffcf027
|
@ -23,15 +23,19 @@ $Id$
|
||||||
LDAP Account Manager checking login data.
|
LDAP Account Manager checking login data.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// Starting LDAP Account Manager session
|
||||||
|
//session_name("LDAP Account Manager");
|
||||||
|
@session_start();
|
||||||
|
|
||||||
// checking if the submitted username/password is correct.
|
// checking if the submitted username/password is correct.
|
||||||
if($action == "checklogin")
|
if($action == "checklogin")
|
||||||
{
|
{
|
||||||
// including ldap.php which provides basic ldap functions
|
// including ldap.php which provides basic ldap functions
|
||||||
include_once("../lib/ldap.php");
|
include_once("../lib/ldap.php");
|
||||||
|
|
||||||
$config = new Config; // Creating new Config object
|
//$config = new Config; // Creating new Config object
|
||||||
$ldap = new Ldap($config); // Creating new Ldap object
|
$ldap = new Ldap($config); // Creating new Ldap object
|
||||||
$result = $ldap->connect($username,$passwd);
|
//$result = $ldap->connect($username,$passwd);
|
||||||
if($result == True) // Username/password correct. Doing some configuration and loading main Frame.
|
if($result == True) // Username/password correct. Doing some configuration and loading main Frame.
|
||||||
{
|
{
|
||||||
// setting language
|
// setting language
|
||||||
|
@ -63,10 +67,6 @@ if($action == "checklogin")
|
||||||
// Loading Login page
|
// Loading Login page
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Starting LDAP Account Manager session
|
|
||||||
//session_name("LDAP Account Manager");
|
|
||||||
session_start();
|
|
||||||
|
|
||||||
session_register("config"); // Register $config object in session
|
session_register("config"); // Register $config object in session
|
||||||
|
|
||||||
// including ldap.php which provides basic ldap functions
|
// including ldap.php which provides basic ldap functions
|
||||||
|
|
Loading…
Reference in New Issue