Connection to LDAP server could not be established

It’s a mistake, This is only when I stay on maintenance mode on. I can already see the same colums when the maintenance maode is off…

But with mainteance mode off I have this trouble

sudo -u nextcloud php --define apc.enable_cli=1 occ  files:scan --all -vv

In Connection.php line 219:
                                                      
  [OC\ServerNotAvailableException]                    
  Connection to LDAP server could not be established  
                                                      

Exception trace:
  at /var/www/nextcloud/apps/user_ldap/lib/Connection.php:219
 OCA\User_LDAP\Connection->getConnectionResource() at /var/www/nextcloud/apps/user_ldap/lib/Access.php:1159
 OCA\User_LDAP\Access->executeSearch() at /var/www/nextcloud/apps/user_ldap/lib/Access.php:1347
 OCA\User_LDAP\Access->search() at /var/www/nextcloud/apps/user_ldap/lib/Access.php:1010
 OCA\User_LDAP\Access->searchUsers() at /var/www/nextcloud/apps/user_ldap/lib/Access.php:894
 OCA\User_LDAP\Access->fetchListOfUsers() at /var/www/nextcloud/apps/user_ldap/lib/User_LDAP.php:281
 OCA\User_LDAP\User_LDAP->getUsers() at /var/www/nextcloud/apps/user_ldap/lib/User_Proxy.php:169
 OCA\User_LDAP\User_Proxy->getUsers() at /var/www/nextcloud/lib/private/User/Manager.php:286
 OC\User\Manager->search() at /var/www/nextcloud/apps/files/lib/Command/Scan.php:184
 OCA\Files\Command\Scan->execute() at /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php:255
 Symfony\Component\Console\Command\Command->run() at /var/www/nextcloud/core/Command/Base.php:168
 OC\Core\Command\Base->run() at /var/www/nextcloud/3rdparty/symfony/console/Application.php:1009
 Symfony\Component\Console\Application->doRunCommand() at /var/www/nextcloud/3rdparty/symfony/console/Application.php:273
 Symfony\Component\Console\Application->doRun() at /var/www/nextcloud/3rdparty/symfony/console/Application.php:149
 Symfony\Component\Console\Application->run() at /var/www/nextcloud/lib/private/Console/Application.php:209
 OC\Console\Application->run() at /var/www/nextcloud/console.php:99
 require_once() at /var/www/nextcloud/occ:11

files:scan [--output [OUTPUT]] [-p|--path PATH] [--all] [--unscanned] [--shallow] [--home-only] [--] [<user_id>...]

and also

# sudo -u nextcloud php7.3 --define apc.enable_cli=1 occ   ldap:check-user toto
Cannot check user existence, because disabled LDAP configurations are present.

Why and how can I enable this missing configuration ??