-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Can't delete ldap users #34557
Comments
Option 1 sudo -u www-data php /var/www/nextcloud/occ ldap:show-remnants sudo -u www-data php /var/www/nextcloud/occ user:delete username here Option 2 sudo -u www-data php /var/www/nextcloud/occ ldap:show-remnants > user.txt sudo -u www-data php /var/www/nextcloud/occ ldap:show-remnants | awk 'FNR > 3 {print $2}' | sed '$d' | xargs -L1 sudo -u www-data php /var/www/nextcloud/occ user:delete |
Hi andyxheli, The command 'occ ldap:show-remnants' works, but the commands 'occ user:delete' from option 1 or option 2 throw a PHP error : Error: Call to undefined method OCA\User_LDAP\User\OfflineUser::getExtStorageHome() in /var/www/html/nextcloud/apps/user_ldap/lib/Handler/ExtStorageConfigHandler.php:65 |
Hi, If I modify the file 'apps/user_ldap/lib/Handler/ExtStorageConfigHandler.php' at line 30 and If I replace I really don't know why, but with 'User_Proxy' namesapce, the method getExtStorageHome() can't be found. |
hi, I also unable to delete nextcloud user profile connected with ldap on nextcloud (the server where I tried have version 22.2.10) EDIT: |
#37346 should fix this if you like to try it out |
Hi blizzz, Thank you very much for your pull request and your help. |
Bug description
Hi,
I can't delete users that are not in LDAP anymore.
The command 'php occ user:delete id-account' return a PHP error.
I think this worked in previous Nextcloud version 24.x
I've updated Nextcloud server from 24.0.5 to 24.0.6 on thursday the 6th of october (the updates worked like a charm : no errors reported)
Feel free to ask if you need any others informations.
Thanks a lot for your help and your time.
Steps to reproduce
=> The command works
=> The command return :
Expected behavior
The command 'sudo -u www-data php occ user:delete id-return-by-previous-command' should worked.
Installation method
Community Web installer on a VPS or web space
Operating system
Debian/Ubuntu
PHP engine version
PHP 7.4
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Updated from a minor version (ex. 22.2.3 to 22.2.4)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: