Skip to content
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

Lost access to space after backup/restore with lost users #8561

Closed
bobslaede opened this issue Mar 3, 2024 · 3 comments
Closed

Lost access to space after backup/restore with lost users #8561

bobslaede opened this issue Mar 3, 2024 · 3 comments
Labels

Comments

@bobslaede
Copy link

bobslaede commented Mar 3, 2024

After a restore where I have lost my original users in my original ldap server, I cannot access my Spaces anymore.
As an admin I can see the space, and I can see the users who where in the space as empty avatars.
Unfortunately I have lost the users from the original ldap server, and therefor lost the connection to the user ids.

Is there any way, as an admin on my self hosted ocis instance, to regain access to the space?
I do not have the content of the space completely downloaded to one single machine, so I cannot re-upload the content.

Is there any way to edit the users ID so I can get the original stuff back?

Before I was running in kubernetes with keycloak and openldap. After I lost my cluster, I have set up ocis in docker instead, to simplify, and that enables me to run ocis with its build in ldap server, and keycloak as auth. That was not possible with the kubernetes setup before.
I have the original users in keycloak, but they where mapped to my ocis instance via the ldap server before.

Related
#5967
#7265

@micbar
Copy link
Contributor

micbar commented Mar 4, 2024

Basically I think you could do a manual migration of the user ids.

  1. lookup the new id from the ldap and change the id in the filesystem, which is manual and multiple steps per space

  2. lookup the old ids from the filesystem and change the ones in the ldap

I would recommend 2

@bobslaede
Copy link
Author

Thank you! I will try it out :)

@micbar
Copy link
Contributor

micbar commented Jun 19, 2024

Closing. Please re-open if help is still needed.

@micbar micbar closed this as completed Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants