Hello,
We’ve recently started using LDAP with more than just test users. I am seeing this error in the log.
Nextcloud version (eg, 12.0.2): 12.0.4.3
Operating system and version (eg, Ubuntu 17.04): ubuntu xenial
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.18 (Ubuntu)
PHP version (eg, 7.1): PHP 7.0.22-0ubuntu0.16.04.1 (cli) ( NTS )
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it: Unknown
The output of your Nextcloud log in Admin > Logging:
The log file is absolutely flooded with this message
Invalid argument supplied for foreach() at /var/www/nextcloud/apps/user_ldap/lib/Access.php#1852
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
$CONFIG = array (
'instanceid' => 'xxxxxxxxxxxxxx',
'passwordsalt' => 'xxxxxxxxxxxxxxxxxxx',
'secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx,
'trusted_domains' =>
array (
0 => 'my_domain.com',
),
'datadirectory' => '/opt/nextcloud-data',
'overwriteprotocol' => 'https',
'overwrite.cli.url' => 'http://my_domain.com',
'htaccess.RewriteBase' => '/',
'dbtype' => 'mysql',
'version' => '12.0.4.3',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'nextcloud',
'dbpassword' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx',
'installed' => true,
'ldapIgnoreNamingRules' => false,
'default_language' => 'ca',
'memcache.local' => '\\OC\\Memcache\\APCu',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'filelocking.enabled' => 'true',
'redis' =>
array (
'host' => 'localhost',
'port' => 6379,
),
'maintenance' => false,
'theme' => '',
'loglevel' => 2,
'mail_smtpmode' => 'sendmail',
'mail_smtpauthtype' => 'LOGIN',
'mail_from_address' => 'no-reply',
'mail_domain' => 'mydomain.com',
);
I’ve opened an issue here too https://github.com/nextcloud/server/issues/7804
Thanks for any help!