Nextcloud version (eg, 10.0.2): 12.0.3
Operating system and version (eg, Ubuntu 16.04): Ubuntu 16.04.3
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.18
PHP version (eg, 5.6): 7.0.22
Is this the first time you’ve seen this error?: No
Can you reliably replicate it? (If so, please outline steps): Yes
The issue you are facing: Whenever i try to delete a user (only on LDAP backend) i cant delete him in the Users tab. It fails with: "Benutzer konnte nicht gelöscht werden"
I try to revoke the given security group in my AD and wait for the syncronisation. Still cant delete the user manually, only disable works. I tried to delete the user manually with the occ. cd /var/www/nextcloud, sudo -u www-data php occ user:delete [Username], fails with "The specified user could not be deleted. Please check the logs. " (Nothing special in any log?!) The user is shown after quite some time in sudo -u www-data php occ ldap:show-remnants though.
If i give the group again, the user is still seeing his old folder structure but cant access it. I have deleted the /var/www/nextcloud/data/[Username] folder manually, but something seems to be cached. Maybe in the database? I dont know. Is there any way to ensure, that the user is completely deleted from Nextcloud and if i want him to re-enter my Cloud, he is completely seen as a new user?
The output of your Nextcloud log in Admin > Logging: Sometimes this pops up in between: “[Username] is not a valid user anymore” Its the name of the user i want to delete completely (plus folders and data)
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
‘instanceid’ => ‘SENSITIVE’,
‘passwordsalt’ => ‘SENSITIVE’,
‘secret’ => ‘SENSITIVE’,
‘trusted_domains’ =>
array (
0 => ‘SENSITIVE’,
),
‘datadirectory’ => ‘/var/www/nextcloud/data’,
‘overwrite.cli.url’ => ‘SENSITIVE’,
‘dbtype’ => ‘mysql’,
‘version’ => ‘12.0.3.3’,
‘proxy’ => ‘SENSITIVE’,
‘proxyuserpwd’ => ‘SENSITIVE’,
‘dbname’ => ‘SENSITIVE’,
‘dbhost’ => ‘localhost’,
‘dbport’ => ‘’,
‘dbtableprefix’ => ‘oc_’,
‘dbuser’ => ‘SENSITIVE’,
‘dbpassword’ => ‘*SENSITIVE’,
‘installed’ => true,
‘memcache.distributed’ => ‘\OC\Memcache\Redis’,
‘memcache.local’ => ‘\OC\Memcache\Redis’,
‘memcache.locking’ => ‘\OC\Memcache\Redis’,
‘redis’ =>
array (
‘host’ => ‘localhost’,
‘port’ => 6379,
),
‘ldapIgnoreNamingRules’ => false,
‘ldapUserCleanupInterval’ => 20,
‘ldapProviderFactory’ => ‘\OCA\User_LDAP\LDAPProviderFactory’,
‘mail_smtpmode’ => ‘smtp’,
‘mail_smtpauthtype’ => ‘PLAIN’,
‘mail_from_address’ => ‘**SENSITIVE’,
‘mail_domain’ => ‘SENSITIVE’,
‘mail_smtphost’ => ‘SENSITIVE’,
‘skeletondirectory’ => ‘/var/www/User-Data’,
‘updater.release.channel’ => ‘stable’,
‘loglevel’ => 3,
);
Greetings
Mike