You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to use the OC_User_IMAP backend (after enabling the "External User Support" app), login attempts for IMAP users fail because the PHP IMAP module is not installed in the owncloud/server docker image. I did not check whether the same is true for OC_User_SMB or OC_User_FTP from the same app, but https://doc.owncloud.com/server/next/admin_manual/configuration/user/user_auth_ftp_smb_imap.html also lists some dependencies there.
The php-imap apt package should be installed in the owncloud server image to make the user_external app (which is included in the image as far as I know) usable out of the box.
Manual Workaround
Until the issue is fixed in the owncloud server docker image, you can temporarily fix the problem by installing the package in the running container and reloading apache2 with the following command on the docker host:
To perform the mitigation automatically, you can hook into the entrypoint.d infrastructure. First, create a file called 00-install-packages.sh in the same folder as your docker-compose.yml with the following content:
Then modify the volumes section of the owncloud service in your docker-compose.yml to mount that file into the folder /etc/entrypoint.d/ inside the container. For my setup, the volumes section looks like this:
Problem Description
When trying to use the
OC_User_IMAP
backend (after enabling the "External User Support" app), login attempts for IMAP users fail because the PHP IMAP module is not installed in theowncloud/server
docker image. I did not check whether the same is true forOC_User_SMB
orOC_User_FTP
from the same app, but https://doc.owncloud.com/server/next/admin_manual/configuration/user/user_auth_ftp_smb_imap.html also lists some dependencies there.The
php-imap
apt package should be installed in the owncloud server image to make the user_external app (which is included in the image as far as I know) usable out of the box.Manual Workaround
Until the issue is fixed in the owncloud server docker image, you can temporarily fix the problem by installing the package in the running container and reloading apache2 with the following command on the docker host:
Automatic Workaround
To perform the mitigation automatically, you can hook into the
entrypoint.d
infrastructure. First, create a file called00-install-packages.sh
in the same folder as yourdocker-compose.yml
with the following content:Then modify the
volumes
section of theowncloud
service in yourdocker-compose.yml
to mount that file into the folder/etc/entrypoint.d/
inside the container. For my setup, thevolumes
section looks like this:This will cause the script to be executed and install the
php-imap
package every time you start the container usingdocker compose up
.The text was updated successfully, but these errors were encountered: