tiredofit / docker-fusiondirectory

Dockerized web based LDAP manager
MIT License
48 stars 18 forks source link

Nextcloud plugin not usable #33

Closed mjmucha closed 4 years ago

mjmucha commented 4 years ago

I tried to use the new Nextcloud plugin. But when i access the Nextcloud page inside FusionDirectory i get the following error:

Plugin
Fatal error: Cannot find any plugin definitions for plugin '?plug=64' ('..//plugins/personal/nextcloud/main.inc' is not a file)!

Please fix the above error and reload the page.

I did fix this for my instance by manually mounting a main.inc file to /www/fusiondirectory/plugins/personal/nextcloud/ with the content:

<?php
nextcloudAccount::mainInc('nextcloudAccount', $ui->dn);
?>
tiredofit commented 4 years ago

Hi there, to look into to see if I've missed something from installing. Will have a solution within 24 hours.

tiredofit commented 4 years ago

Thanks, I've looked into it and it seems the upstream source is missing the file. I've built in a workaround in the code.

Tagged as tiredofit/fusiondirectory:latest and tiredofit/fusiondirectory:2.5.1

joergmschulz commented 4 years ago

on startup, I see /var/run/s6/etc/cont-init.d/40-fusiondirectory: line 54: /www/fusiondirectory/plugins/personal/nextcloud/main.inc: No such file or directory nevertheless; used the current image and alternatively cloned and built it myself. But, it is possible to add nextcloud attributes to people. Only on trying to review my own nextcloud attributes, the error shows up again.

tiredofit commented 4 years ago

Got it. Installing the main.inc in a staging area instead of directly to the path, as it's failing due to the way fusiondirectory plugins are installed. Tagged as tiredofit/fusiondirectory:latest and tiredofit/fusiondirectory:2.5.2

joergmschulz commented 4 years ago

confirmed - this works. @mjmucha : would you mind closing this issue?

mjmucha commented 4 years ago

Sure! I only had time today to look into it. For me it is also fixed