-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Greenlight v2 -> v3 migration script migrates no external users #5281
Comments
Okay, I found out by manually checking the old postgres database that during a failed migration process in the past, it seems that all entities were deleted. I restored a snapshot of the machien and now it works in general. I successfully migrated the roles. However, I have the problems that only local users are migrated:
Although the documentations states: However, I can see als the users in the database:
(redacted some property values but the entities are there) Any ideas how I can also migrate the external users? |
I inspected the migration rake script and saw that there is a parameter called provider which is by default greenlight. As apparent above, the LDAP users come with an ldap-provider. I re-run the script with the parameter:
And it worked perfectly. Everything is now imported. Afterwards, I only had to adapt the users in the new postgres database because the new So to migrate values in Select new values which will be used by by the next command to check if they will be migrated correctly:
Now the correct usernames are printed. Update the values:
Now, the login usernames were modified and everything works like a charm. I'll leave this here for users with the same problem. However, I leave the ticket open because I want to propose that the additional parameter for the provider is added to the documentation. I cannot find it anywhere on the migration doc page. The pages only states that internal and external users are migrated, whereby the default provider value is set to Apart from that, the ticket can be closed 😄 |
Hmm - this change was accidental. Working on a hotfix |
I'm currently in a similar process, migrating from BBB 2.2 to 2.6. Since using LDAP directly is no longer supported (at least as far as I could find out), I installed and configured Keycloak + OpenID (in Keycloak I used 'User federation), which seems to work as LDAP users can log in and a Greenlight user profile gets created. There are also some local users on old BBB which were invited to test BBB, but normally our users are authenticated through LDAP. Migration scripts successfully migrated the few local users (I think these were external -as in not our staff- users, just for testing BBB), but when I run the user migration with [ldap] provider, I get an error that 'Provider does not exists':
And it shows that for all LDAP users in Greenlight v2, so it appears that the problem is in the new instance of Greenlight v3. Any ideas why Keycloak / LDAP is not recognized as 'ldap' provider? |
@farhatahmad thanks for providing a quick hotfix. I also encountered another problem which I recognized today. However, since all of my users are still migrated, I cannot test if the hotfix covers this issue. I noticed that Keycloak creates the username (e.g. for LDAP users) always in lowercase. If one chooses CN as the username identifier in Keykcloak, for example the username u123 is internally created, no matter if the original CN was CN=u123 or CN=U123. In my case, the external_id in my case was migrated and not migrated to lowercase. I had login issues for users, whose usernames are in lowercase in Keycloak but not in the greenlight database (e.g. Greenlight username is U123 and Keycloak username is u123). When the user logs in, the logins succeeds in general (in Keycloak you can see a succesful login if logging is enabled), however, Greenlight tells you that you cannot be authenticated. I updated my users by executing
and now the login works fine for all. I'm not deep enough into rake to see if this an actual problem, but I wanted you to know that there is an edge case which may cause trouble. |
Thanks for the info - this should be working in the latest releases |
I solved my original problem but now I have the problem that I can only migrate local users, see post below. Any help is appreciated.
Yesterday, I set up a fresh BBB server along with greenlight v3 according to the docs and both components are present in the latest version. In general, the setup works fine.Today, I wanted to migrate all users from BBB 2.4 with greenlight 2.14.7 to the new server with BBB 2.6 and greenlight v3. All of my users (with the exception of one local admin user) are LDAP users and I understand that LDAP is not natively supported anymore in greenlight v3, however, I want to keep the association between the LDAP users and their created rooms and settings in the past.When I run the migration script, however, nothing is actually migrated. For instance, I have several roles (e.g. normal users, users with the right to record etc.) in my old environment and the migration script for the roles is executed as follows:The V3_* parameters are set correctly according to the docs.As you can see, the roles migration script states that the migration is completed. Unfortunately, no roles are listed during the execution and they are not transferred to the new greenlight v3 instance. According to the docs, the script lists all roles (users, rooms, settings), which are currently migrated by the script. However, in my case, no roles are listed. I have the tested it for users, rooms and settings as well and I have the same behaviour. I also tried to download the migration script manually according to the docs for greenlight v2 version which are not present in the latest version and I have the same result.So in general, my questions are:
The text was updated successfully, but these errors were encountered: