James Cole 2021-11-15 23:16:30 +01:00
parent dba24d2dee
commit babf462bcf
No known key found for this signature in database
GPG Key ID: BDE6667570EADBD5
2 changed files with 7 additions and 7 deletions

View File

@ -143,10 +143,10 @@ class UpgradeDatabase extends Command
$result = Artisan::output();
echo $result;
$this->line('Now installing OAuth2 keys...');
Artisan::call('passport:install');
$result = Artisan::output();
echo $result;
// $this->line('Now installing OAuth2 keys...');
// Artisan::call('passport:install');
// $result = Artisan::output();
// echo $result;
$this->line('Done!');
}

View File

@ -26,15 +26,15 @@ use FireflyIII\Ldap\Rules\UserDefinedRule;
# select ldap model based on configuration option
switch(env('LDAP_DIALECT')) {
case 'OpenLDAP':
$ldapModel = class_exists(LdapRecord\Models\OpenLDAP\User::class) ? LdapRecord\Models\OpenLDAP\User::class : '';
break;
case 'ActiveDirectory':
$ldapModel = class_exists(LdapRecord\Models\ActiveDirectory\User::class) ? LdapRecord\Models\ActiveDirectory\User::class : '';
break;
case 'FreeIPA':
$ldapModel = class_exists(LdapRecord\Models\FreeIPA\User::class) ? LdapRecord\Models\FreeIPA\User::class : '';
break;
default:
# default to openLDAP
$ldapModel = class_exists(LdapRecord\Models\OpenLDAP\User::class) ? LdapRecord\Models\OpenLDAP\User::class : '';
}
return [