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

Nextcloud: Migration and change of base DN, LDAP auto discovery #7174

Closed
stephdl opened this issue Nov 22, 2024 · 5 comments
Closed

Nextcloud: Migration and change of base DN, LDAP auto discovery #7174

stephdl opened this issue Nov 22, 2024 · 5 comments
Labels
verified All test cases were verified successfully

Comments

@stephdl
Copy link

stephdl commented Nov 22, 2024

We need to test the migration of an openldap directory.nh to another base DN set by the sysadmin with the use of nextcloud. Alternatively the LDAP settings discovery is not automatic, it is done when the sysadmin configure the settings panel

For this purpose the test the platform we need to install on NS7 and migrate the whole stack to NS8

nethserver-openldap
nethserver-nextcloud

@stephdl
Copy link
Author

stephdl commented Nov 22, 2024

QA

nextcloud version to test with new event user-domain-changed : ghcr.io/nethserver/nextcloud:1.2.0-dev.1

test case 1(direct install)

  • install an account provider openldap or SAMBA AD
  • install the testing version of nextcloud: add-module ghcr.io/nethserver/nextcloud:1.2.0-dev.1
  • configure it
  • you can login to nextcloud with the user of ldap

test case 2 (migration from NS7 to NS8)

  • install on NS7 the testing version of nethserver-ns8-migration
    yum install http://packages.nethserver.org/nethserver/7.9.2009/testing/x86_64/Packages/nethserver-ns8-migration-1.0.18-1.1.g865021d.ns7.x86_64.rpm

  • install an account provider open-ldap

  • install nextcloud

  • modify the bind.env to set the version of nextcloud
    this is an example :
    vim /usr/share/nethesis/nethserver-ns8-migration/apps/nethserver-nextcloud/bind.env
    change MODULE_IMAGE_URL="nextcloud"
    to MODULE_IMAGE_URL="ghcr.io/nethserver/nextcloud:1.1.9-dev.1"

  • migrate nextcloud by the UI, set a bind DN like asked by the UI

  • once the stack is migrated, using the remote account provider you can use nextcloud with a user of the LDAP

  • once the test before is good, migrate the account provider

  • at the end of the account provider migration, the event user-domain-changed is triggered and all the services nextcloud will restart (you can see it in journald of NS8)

  • once the stack is migrated,do not reconfigure something, just test, you can continue to login to nextcloud. In any case do not configure the settings panel of nextcloud NS8 panel

@stephdl stephdl added the testing Packages are available from testing repositories label Nov 22, 2024
@nethbot nethbot moved this from ToDo to Testing in NethServer Nov 22, 2024
@gsanchietti
Copy link
Member

Test case 1 verified.

@stephdl stephdl changed the title Nextcloud: Add user-domain-changed to auto discover ldap settings Nextcloud: Migration and change of base DN, LDAP auto discovery Nov 25, 2024
@stephdl
Copy link
Author

stephdl commented Nov 25, 2024

test case 2 written @gsanchietti

@gsanchietti
Copy link
Member

Test case 2 verified: after the migration, the LDAP configuration of Nextcloud reports the correct user domain.
Please bear in mind that Nextcloud could take a couple of minutes before being fully reconfigured.

@gsanchietti gsanchietti added verified All test cases were verified successfully and removed testing Packages are available from testing repositories labels Nov 26, 2024
@nethbot nethbot moved this from Testing to In Progress in NethServer Nov 26, 2024
@nethbot nethbot moved this from In Progress to Verified in NethServer Nov 26, 2024
@gsanchietti gsanchietti removed their assignment Nov 26, 2024
@stephdl stephdl closed this as completed Nov 26, 2024
@github-project-automation github-project-automation bot moved this from Verified to Done in NethServer Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
verified All test cases were verified successfully
Projects
Status: Done
Development

No branches or pull requests

2 participants