PAM authentication broken
- Status
- Closed
- Subject
- PAM authentication broken
- Version
- 1.9.x
- Category
- Error
- Patch
- Feature
- User Administration (Registration, Login & Banning)
External Authentication (LDAP, AD, PAM, CAS, etc) - Resolution status
- Fix on the Way
- Submitted by
- johan_mx
- Volunteered to solve
- johan_mx
- Lastmod by
- mstef
- Rating
- Description
An attempt to log in using PAM (php-auth-pam) gives the following error message:
Notice: Undefined variable: error in /var/www/tikiwiki/tikiwiki-1.9.7/lib/userslib.php on line 554
Warning: Error variable must be passed by reference in /var/www/tikiwiki/tikiwiki-1.9.7/lib/userslib.php on line 554
Warning: Cannot modify header information - headers already sent by (output started at /var/www/tikiwiki/tikiwiki-1.9.7/lib/userslib.php:554) in /var/www/tikiwiki/tikiwiki-1.9.7/tiki-login.php on line 292
I'm using:
- php5-auth-pam-0.4-9.2 (Debian package)
- tikiwiki-1.9.7 (source)- Files
- Solution
Pass the error variable by reference:
tikiwiki-1.9.7.orig/lib/userslib.php 2007-03-26 18:48:10.000000000 +0200 +++ tikiwiki-1.9.7/lib/userslib.php 2007-03-26 19:13:01.000000000 +0200@@ -551,7 +551,7 @@ class UsersLib extends TikiLib {
+ if (pam_auth($user, $pass, &$error)) {
// Read page AuthPAM at tw.o, it says about a php module required.
// maybe and if extension line could be added here... module requires $error
// as reference.
- if (pam_auth($user, $pass, $error)) {
return USER_VALID;
} else {
// Uncomment the following to see errors on that
fixed for 1.9.8
http://tikiwiki.cvs.sourceforge.net/tikiwiki/tiki/lib/userslib.php?r1=1.133.2.69&r2=1.133.2.70- Importance
- 9 high
- Priority
- 45
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 1037
- Created
- Tuesday 27 March, 2007 11:21:32 UTC
by Unknown - LastModif
- Saturday 06 July, 2024 10:21:44 UTC