Package Details: php-pam 1.0.3-3

Git Clone URL: https://aur-dev.archlinux.org/php-pam.git (read-only)
Package Base: php-pam
Description: This extension provides PAM (Pluggable Authentication Modules) integration in PHP.
Upstream URL: http://pecl.php.net/package/PAM
Licenses: PHP
Submitter: matteomattei
Maintainer: matteomattei
Last Packager: matteomattei
Votes: 7
Popularity: 0.000000
First Submitted: 2007-10-12 13:36
Last Updated: 2015-06-30 15:38

Latest Comments

mrechte commented on 2016-04-27 12:25

Hello.

Code does not compile:

/home/mrechte/build/php-pam/src/pam-1.0.3/pam.c: Dans la fonction ‘zif_pam_auth’:
/home/mrechte/build/php-pam/src/pam-1.0.3/pam.c:251:36: erreur : la macro « ZVAL_STRING » a reçu 3 arguments, mais elle n’en prend que 2
ZVAL_STRING(status, error_msg, 0);
^
/home/mrechte/build/php-pam/src/pam-1.0.3/pam.c:251:4: erreur : ‘ZVAL_STRING’ undeclared (first use in this function)
ZVAL_STRING(status, error_msg, 0);

$ pacman -Q php
php 7.0.5-2

Thanks

Costinio commented on 2013-11-03 01:13

"make INSTALL_ROOT=${startdir}/pkg install || return 1"
should be changed to
"make INSTALL_ROOT=${startdir}/pkg/$pkgname install || return 1"
or else the library (/usr/lib/php/modules/pam.so) does not install into the package.

matteomattei commented on 2011-08-29 15:50

Add revision 2, thanks evaryont.

evaryont commented on 2011-08-29 06:03

Please remove apache from the makedepends array. It compiles fine without apache installed.

Also, you could include /etc/php/conf.d/pam.ini:

extension=pam.so;
pam.servicename="php";

And include /etc/pam.d/php:

#%PAM-1.0
auth required pam_securetty.so
auth requisite pam_nologin.so
auth required pam_unix.so nullok
auth required pam_tally.so onerr=succeed file=/var/log/faillog
# use this to lockout accounts for 10 minutes after 3 failed attempts
#auth required pam_tally.so deny=2 unlock_time=600 onerr=succeed file=/var/log/faillog
account required pam_access.so
account required pam_time.so
account required pam_unix.so
session required pam_unix.so
session required pam_env.so
session required pam_motd.so
session required pam_limits.so
session optional pam_lastlog.so
session optional pam_loginuid.so

Making it a little easier. I'm sure the PAM file can be reduced a lot.