Fix #3618: Some LDAP CLI commands requires a authClientId parameter

This commit is contained in:
Lucas Bartholemy 2019-08-16 14:09:53 +02:00
parent 1ce9a3b205
commit 596370c99f
2 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -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");