diff --git a/Auth/ReverseProxyLdapAuth.php b/Auth/ReverseProxyLdapAuth.php index 387a2d5..6515eaf 100644 --- a/Auth/ReverseProxyLdapAuth.php +++ b/Auth/ReverseProxyLdapAuth.php @@ -6,6 +6,7 @@ use Kanboard\Core\Ldap\Client as LdapClient; use Kanboard\Core\Ldap\ClientException as LdapException; use Kanboard\Core\Ldap\User as LdapUser; +use LogicException; /** * Reverse-Proxy Ldap Authentication Provider @@ -53,10 +54,8 @@ public function authenticate() } $this->userInfo = $user; - return true; } - } catch (LdapException $e) { $this->logger->error($e->getMessage()); } diff --git a/Plugin.php b/Plugin.php index 27dde1c..7aaf6a4 100644 --- a/Plugin.php +++ b/Plugin.php @@ -30,7 +30,7 @@ public function getPluginAuthor() public function getPluginVersion() { - return '1.0.1'; + return '1.0.2'; } public function getPluginHomepage() diff --git a/README.md b/README.md index 1620a87..20cf7e6 100644 --- a/README.md +++ b/README.md @@ -11,15 +11,27 @@ Author - Frédéric Guillot - License MIT +Requirements +------------ + +- Kanboard >= 1.0.29 +- Kanboard configured to use LDAP +- Your web server must be configured as reverse-proxy + Installation ------------ -- Create a folder **plugins/ReverseProxyLdap** or uncompress the latest archive in the folder **plugins** -- Copy all files under this directory +You have the choice between 3 methods: + +1. Install the plugin from the Kanboard plugin manager in one click +2. Download the zip file and decompress everything under the directory `plugins/ReverseProxyLdap` +3. Clone this repository into the folder `plugins/ReverseProxyLdap` + +Note: Plugin folder is case-sensitive. Configuration ------------- -- You must have [LDAP configured in proxy mode in Kanboard](http://kanboard.net/documentation/ldap-authentication) -- [Reverse-Proxy server configured correctly](http://kanboard.net/documentation/reverse-proxy-authentication), the config parameter `REVERSE_PROXY_USER_HEADER` must be defined +- You must have [LDAP configured in proxy mode in Kanboard](https://kanboard.net/documentation/ldap-authentication) +- [Reverse-Proxy server configured correctly](https://kanboard.net/documentation/reverse-proxy-authentication), the config parameter `REVERSE_PROXY_USER_HEADER` must be defined - You **don't need** to set to `true` those constants: `LDAP_AUTH` and `REVERSE_PROXY_AUTH`