[horde] Horde with PAM-authentication on Debian 10 Buster with PHP7.3 ?

Christoph Haas christoph+horde at haas-online.org
Thu Apr 30 12:01:47 UTC 2020


I'm trying to use PAM-authentication (as I did on an old Horde-setup  
with PHP5.6) with Horde Groupware on a new Debian 10 Buster  
installation with PHP7.3.

I've set in /var/www/html/horde/config/conf.php
$conf['auth']['driver'] = 'pam';

And in /etc/pam.d I've created a file

with this content:
@include common-auth
@include common-account
@include common-session-noninteractive

and I've created the symbolic links:
ln -s /etc/pam.d/horde /etc/pam.d/pam
ln -s /etc/pam.d/horde /etc/pam.d/service

also I've configured /etc/nslcd.conf like I did on my old installation.

-->> On the old install this setup works like a charm.

But on the newly setup Debian Buster with PHP7.3, I get stuck with the  
error in the WebUI, when trying to login:
A fatal error has occurred
PAM authentication is not available.

and on the console:
HORDE: [horde] PAM authentication is not available. [pid 355 on line  
49 of "/usr/share/php/Horde/Auth/Pam.php"]

In line 48 will be checked, if the pam-extension exists:
if (!Horde_Util::extensionExists('pam'))

So I've tried to install
pecl install pecl/pam-1.0.3

(like I did on my old system), but the building of this package fails  
(like mentioned in:  
http://horde.690.n7.nabble.com/Tickets-14696-Fresh-install-on-Debian9-gt-Error-td141190.html#a141192 and https://bugs.php.net/bug.php?id=74812 and https://bugs.php.net/bug.php?id=74396). Also the pecl/pam-package seems to be  

A fix seems to use the updated pam-package from  
https://github.com/amishmm/php-pam (like proposed in  
which builds OK:
git clone https://github.com/amishmm/php-pam.git
cd php-pam
make install

The newly build pam.so file is located at /usr/lib/php/20180731 like  
all other packages.

But how do I make Horde to recognize this pam-package?

Many thanks! Cheers

christoph+horde at haas-online.org

More information about the horde mailing list