fix login

This commit is contained in:
Roland Gruber 2003-03-20 20:45:40 +00:00
parent 055ffcf027
commit 0e1b61acc3
1 changed files with 3 additions and 2 deletions

View File

@ -25,6 +25,7 @@ $Id$
// Starting LDAP Account Manager session // Starting LDAP Account Manager session
//session_name("LDAP Account Manager"); //session_name("LDAP Account Manager");
include_once("../config/config.php");
@session_start(); @session_start();
// checking if the submitted username/password is correct. // checking if the submitted username/password is correct.
@ -34,8 +35,8 @@ if($action == "checklogin")
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($_SESSION["config"]); //$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