I have a problem with and LDAP user. Our owncloud is connected with Windows Active Directory via LDAP and files are encrypted.
So... The problem is, the user change his password via LDAP a few months ago but he didn't change in owncloud server. Right now he don't remember the old password so he can't change it and encrypt the files again with the new password.
We tried to remove the user by the admin web panel but we get an error:
Unable to delete 25A7B9BE-XXXX-XXXX-XXXX-424445615463 Unable to delete user.
I understand we can't delete a LDAP user. The problem is the user can't log in right now, he gets:
Public Key missing for user: 25A7B9BE-XXXX-XXXX-XXXX-424445615463
if no recovery key was enabled, the user has no chance to decrypt the data
if recovery key, an admin has a way to re-set the user's password directly in OC using the recovery key
if a user knows both the old and new password they need to login in OC and go to personal page to enter the old password to reencrypt the keys. There should be a yellow message about this in web UI at login time.
Yes, before i tried to delete the user can log in and see his files. But when he can't upload new files because owncloud is encrypting with old password.
The user didn't remember his old password, so he can't update the password (he needs the old password to set a new password). For that reason, I tried to delete the user, to delete his files and generate the user again and he could be able to put a new password.
When i was deleting the user, I get the error i said in other post and from that moment the user can't log in on owncloud server. He gets Public Key missing for user: 25A7B9BE-XXXX-XXXX-XXXX-424445615463.
Okay, you would have to delete the entries of this user by hand in every table his UUID is in.
How versed are you in mysql?
You would have to do a mysql query. Log in to the database, and do something like this:
Delete from where =25A7B9BE-XXXX-XXXX-XXXX-424445615463;
Then when you are done with that, you have to delete the home folder of this user
Then the user can login. I would also remove him from the users that are synchronized in to owncloud. and when you are done cleaning up, include him again.