Correct few mistake in Readme and exception handler in connexion.php
This commit is contained in:
parent
5afe073619
commit
8117385918
|
@ -164,7 +164,7 @@ Your LDAP hostname or LDAP IP, to connect to the LDAP server.
|
|||
#### $port
|
||||
Your LDAP port, to connect to the LDAP server. By default : 389.
|
||||
#### $ldap_version
|
||||
Your LDAP version, or protocol version used by your server. By default : 3. This parameter avoid LDAP blind error with LDAP 3 (issue )
|
||||
Your LDAP version, or protocol version used by your server. By default : 3. This parameter avoid LDAP blind error with LDAP 3 (issue #14)
|
||||
#### $search_attribute
|
||||
The attribute used to identify user on your LDAP. Should be uid, email, cn or sAMAccountName.
|
||||
#### $base
|
||||
|
|
|
@ -45,7 +45,7 @@ else
|
|||
}
|
||||
catch (Exception $e)
|
||||
{
|
||||
echo json_encode(array("error" => "Impossible to get data", "message" => $e->getMessage()));
|
||||
$resp = json_encode(array("error" => "Impossible to get data", "message" => $e->getMessage()));
|
||||
$authenticated = false;
|
||||
}
|
||||
|
||||
|
@ -71,6 +71,7 @@ else
|
|||
{
|
||||
echo "Authentication failed ... Check your username and password.<br />If error persist contact your administrator.<br /><br />";
|
||||
echo 'Click <a href="./index.php">here</a> to come back to login page';
|
||||
echo '<br /><br /><br />' . $resp;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue