Bug 295924 - www/davical: IMAP authentication fails after upgrade from 1.1.12 to 1.1.13 (workaround included)
Summary: www/davical: IMAP authentication fails after upgrade from 1.1.12 to 1.1.13 (w...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Dirk Meyer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-06-07 18:33 UTC by Fabian Wenk
Modified: 2026-06-07 18:33 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (dinoex)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Wenk 2026-06-07 18:33:24 UTC
This is primarily for other who may also run into this issue. I have just sent the following e-mail to the davical-general@lists.sourceforge.net mailing list:

Hello

I am running on FreeBSD 14.4-RELEASE / amd64 with PHP 8.4.

The FreeBSD Port was recently updated from 1.1.12 to 1.1.13 and after 
installing it on my server users were not able to login any more and got 
a message about wrong username / password. Admin Login was still 
working, so I saw the message about pending database update and did it with:

   cd /usr/local/share/davical/dba/
   ./update-davical-database

But still regular users were not able to login and I found this messages 
in my Apache httpd error log:

[Sun Jun 07 17:19:12.316643 2026] [php:notice] [pid 32935] [client 
2001:xxxx:xxxx:xxxx::4:56201] DAViCal setup.php: Informational: 
/usr/local/www/davical/config/config.php(655): [2] 
include(drivers_imap_pam.php): Failed to open stream: No such file or 
directory, referer: https://davical.example.com/upgrade.php
[Sun Jun 07 17:19:12.316766 2026] [php:notice] [pid 32935] [client 
2001:xxxx:xxxx:xxxx::4:56201] DAViCal setup.php: Informational: 
/usr/local/www/davical/config/config.php(655): [2] include(): Failed 
opening 'drivers_imap_pam.php' for inclusion 
(include_path='../inc:/usr/local/share/awl/inc:.:/usr/local/share/pear'), 
referer: https://davical.example.com/upgrade.php

I have restored the now missing 
/usr/local/www/davical/inc/drivers_imap_pam.php from my backup and 
everything is running fine again.

As I am using the IMAP Authentication as described at 
https://wiki.davical.org/index.php?title=Configuration/hooks/Authentication/IMAP 
I was searching what is going on and how the path forward would be.

I did find the issue #324 "Migrate away from PHP's imap extension?"
https://gitlab.com/davical-project/davical/-/work_items/324

And then I did remember that with the upgrade to PHP 8.4 I already had 
to replace the then removed php-imap port with mail/pecl-imap.

According to https://www.php.net/imap it was removed in PHP 8.4.0, but 
there is https://pecl.php.net/package/imap available, so this all still 
works.

Is there a better solution then re-adding the drivers_imap_pam.php and 
mention that from PHP 8.4 on PECL IMAP is needed?

Would it be helpful if I add a comment the closed issue #324, or should 
I create a new issue?


Best regards,
Fabian