Remove remnents ldap users - error message

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

After deleted the ldap config, i try to list the remnants users in database with this CLI command :
sudo -u www-data php occ ldap:show-remnants (see here https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html#ldap-commands-label)

Here is the the result :

image

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Issue :

After deleted the ldap config, i try to list the remnants users in database with this CLI command :
sudo -u www-data php occ ldap:show-remnants (see here https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html#ldap-commands-label)

Here is the the result :

image

Nextcloud 24.0.2
Debian 11
Apache/2.4.53
Version: 7.4.28
Extensions : Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, standard, sodium, apache2handler, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, imap, intl, json, ldap, exif, mysqli, pdo_mysql, pdo_sqlite, apc, posix, readline, redis, shmop, SimpleXML, soap, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xmlreader, xmlrpc, xmlwriter, xsl, zip, Phar, Zend OPcache

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Provisions users with Active directory / LDAP
  2. Delete your LDAP configuration
  3. Try to list with CLI the remnants users

The output of your Nextcloud log in Admin > Logging:

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

config.php :
<?php$CONFIG = array ( ‘instanceid’ => ‘************’, ‘passwordsalt’ => - Pastebin.com

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

root@nextcloud:/var/www/nextcloud.company.xyz# cat /var/log/apache2/error-nextcloud.company.xyz.log
[Mon Jul 04 00:00:02.367345 2022] [ssl:warn] [pid 501] AH01909: nextcloud.company.xyz:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jul 04 09:58:31.803121 2022] [access_compat:error] [pid 284171] [client 82.65.xxx.xxx:0] AH01797: client denied by server configuration: /var/www/nextcloud.company.xyz/data/.ocdata