Browse Source

fix login

master
Roland Gruber 21 years ago
parent
commit
0e1b61acc3
  1. 5
      lam/templates/login.php

5
lam/templates/login.php

@ -25,6 +25,7 @@ $Id$
// Starting LDAP Account Manager session
//session_name("LDAP Account Manager");
include_once("../config/config.php");
@session_start();
// checking if the submitted username/password is correct.
@ -34,8 +35,8 @@ if($action == "checklogin")
include_once("../lib/ldap.php");
//$config = new Config; // Creating new Config object
$ldap = new Ldap($config); // Creating new Ldap object
//$result = $ldap->connect($username,$passwd);
$ldap = new Ldap($_SESSION["config"]); //$config); // Creating new Ldap object
$result = $ldap->connect($username,$passwd);
if($result == True) // Username/password correct. Doing some configuration and loading main Frame.
{
// setting language

Loading…
Cancel
Save