How to reset an LDAP user who forgot his old password

Hi, I have a user from LDAP in nextcloud, who forgot his old password.
As all files are encrypted with the old password, there’s no way to recover them.
(Master key etc. is not enabled)

That’s fine, but how can I wipe that user, to start from scratch? I couldn’t find any way.

Try searching the forum. Perhaps you’ll find answers there or on the greater internet using keywords.

https://help.nextcloud.com/search?q=reset%20ldap

A few entries with solutions look promising. And there is documentation:

https://docs.nextcloud.com/server/latest/admin_manual/

Looks like you must enable the ability for ldap users to change their passwords themselves.

https://docs.nextcloud.com/server/latest/admin_manual/configuration_user/user_auth_ldap.html?highlight=reset%20ldap

1 Like

I already searched the forum and the manual, otherwise I would not post here :slight_smile:

The solution (found out by playing around with occ):
occ ldap:reset-user username

This is NOT in the manual: https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html#ldap-commands

And google has exactly 2 results for “occ ldap:reset-user” :smile: