From 596370c99faccb2ca465db86fc9a0c5faedf23fc Mon Sep 17 00:00:00 2001 From: Lucas Bartholemy Date: Fri, 16 Aug 2019 14:09:53 +0200 Subject: [PATCH] Fix #3618: Some LDAP CLI commands requires a authClientId parameter --- protected/humhub/docs/CHANGELOG.md | 1 + protected/humhub/modules/ldap/commands/LdapController.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/protected/humhub/docs/CHANGELOG.md b/protected/humhub/docs/CHANGELOG.md index 9fad4e404e..93f1ba1ea0 100644 --- a/protected/humhub/docs/CHANGELOG.md +++ b/protected/humhub/docs/CHANGELOG.md @@ -12,6 +12,7 @@ HumHub Change Log - Fix #3552: Updated to Yii - AuthClient 2.2+ library - Fix #3588: OEmbed CSS class not provided - Fix #3609: LDAP paging control limits max. users +- Fix #3618: Some LDAP CLI commands requires a authClientId parameter 1.3.14 (June 26, 2019) diff --git a/protected/humhub/modules/ldap/commands/LdapController.php b/protected/humhub/modules/ldap/commands/LdapController.php index 4de7e34365..e7d6b72685 100644 --- a/protected/humhub/modules/ldap/commands/LdapController.php +++ b/protected/humhub/modules/ldap/commands/LdapController.php @@ -165,7 +165,7 @@ class LdapController extends \yii\console\Controller * @param string $id the auth client id (default: ldap) * @return int status code */ - public function actionMappingClear($id) + public function actionMappingClear($id = 'ldap') { $this->stdout("*** LDAP Flush user id mappings for AuthClient ID: " . $id . "\n\n"); User::updateAll(['authclient_id' => new Expression('NULL')], ['auth_mode' => $id]); @@ -181,7 +181,7 @@ class LdapController extends \yii\console\Controller * @param string $id the auth client id (default: ldap) * @return int status code */ - public function actionMappingRebuild($id) + public function actionMappingRebuild($id = 'ldap') { $this->stdout("*** LDAP ReMap Users for AuthClient ID: " . $id . "\n\n");