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

Migrating from user_sql to other authentication, preferably nextcloud internal user db #186

Open
tobox opened this issue Oct 14, 2022 · 1 comment

Comments

@tobox
Copy link

tobox commented Oct 14, 2022

Since Nextcloud 23 is getting close to EOL, and no Issues have been closed in user_sql since March, I am looking for a path to migrate my installation from user_sql to a different authentication mechanism. I have around 50 users, so some manual intervention would be possible.

But what is the proper way to remove user_sql and "create" the users in nextclouds internal user database? Ideally the whole process would be transparent to the end users.

@tobox
Copy link
Author

tobox commented Nov 9, 2022

I removed the users one by one from the database, but was unable to re-add the users using the nextcloud GUI (because there were existing files). But it worked when I manually added the users to the oc_users table:
insert into oc_users values ('username', 'Jon Doe', 'cryptic password string i copied from an existing user', 'username');
The user appeared in the GUI immediately and after changing the password in the GUI everything worked properly. All files, calendars, contacts and shares were still in place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant