From 81173859181d5cddcdf006f557b1598262238f02 Mon Sep 17 00:00:00 2001 From: Denis CLAVIER Date: Sat, 19 May 2018 23:28:01 +0200 Subject: [PATCH] Correct few mistake in Readme and exception handler in connexion.php --- README.md | 2 +- oauth/connexion.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 573252d..d9bbd2a 100755 --- a/README.md +++ b/README.md @@ -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 diff --git a/oauth/connexion.php b/oauth/connexion.php index e16ed87..5fe8244 100644 --- a/oauth/connexion.php +++ b/oauth/connexion.php @@ -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.
If error persist contact your administrator.

"; echo 'Click here to come back to login page'; + echo '


' . $resp; } } }