473,324 Members | 2,581 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

PHP & Pam Authentication

I recently installed pam_auth on my server as a standalone module so I
could have people login to areas of my site using their Linux (cPanel)
login and password, but am having problems. It seems regardless of
whether or not the login/password combination are correct, the pam_auth
module returns a "Permission Denied" or "Authentication Failure".

I've Google'd on this and checked the above site, and have gotten
nowhere. I'm hoping someone here has experience with this and can
provide some helpful advice cuz I'm completely stumped.

Thanks,
-Jay

Jul 17 '05 #1
3 10203
Jay Moore wrote:
I recently installed pam_auth on my server as a standalone module so I
could have people login to areas of my site using their Linux (cPanel)
login and password, but am having problems. It seems regardless of
whether or not the login/password combination are correct, the pam_auth
module returns a "Permission Denied" or "Authentication Failure".
Please try following:
Check if the module is enabled in httpd.conf If not enable, enable it and restart the web daemon.
Check if /etc/pam.d/httpd is created as part of pam_auth installation and is proper.( I assume you are using linux. I do not
know the location of other systems anyway.)

If it did not work still..Give following info..
OS details, webserver details, pam_module details ( all possible details like versions, download urls etc)
error_log details ( for example on my redhat box

the error log is in /var/log/httpd/error_log)

that would help us to see what the problem is.

hope this helps
Divakar
I've Google'd on this and checked the above site, and have gotten
nowhere. I'm hoping someone here has experience with this and can
provide some helpful advice cuz I'm completely stumped.

Thanks,
-Jay


Jul 17 '05 #2
> Please try following:
>> Check if the module is enabled in httpd.conf If not enable, enable it and restart the web daemon.
>> Check if /etc/pam.d/httpd is created as part of pam_auth installation and is proper.( I assume you are using linux. I do not
know the location of other systems anyway.)
I followed the install directions at this site:
http://www.math.ohio-state.edu/~ccun...m_auth/INSTALL

It makes no mention of editing httpd.conf or making sure
/etc/pam.d/httpd exists. I followed all the instructions to a 't', and
as far as files existing where they should be and paths being correct,
everything else checks out.


If it did not work still..Give following info..
>> OS details, webserver details, pam_module details ( all possible details like versions, download urls etc)
RH 9, Apache 1.3.29, PHP 4.3.3, pam info at the above url
>> error_log details ( for example on my redhat box

the error log is in /var/log/httpd/error_log)

that would help us to see what the problem is.


Aside from the error detailing it was unable to load the module (which I
fixed - had the path wrong), I see no other PHP issues in my error_log file.

I'm stumped.

-Jay

Jul 17 '05 #3
Just reposting in case anyone missed it. I'm still having problems
using Pam Authentication despite following the install directions
explicitly. I keep getting "Authentication Failure" errors.

-Jay

Jay Moore wrote:
Please try following:
>> Check if the module is enabled in httpd.conf

If not enable, enable it and restart the web daemon.
>> Check if /etc/pam.d/httpd is created as part of pam_auth

installation and is proper.( I assume you are using linux. I do not
know the location of other systems anyway.)

I followed the install directions at this site:
http://www.math.ohio-state.edu/~ccun...m_auth/INSTALL

It makes no mention of editing httpd.conf or making sure
/etc/pam.d/httpd exists. I followed all the instructions to a 't', and
as far as files existing where they should be and paths being correct,
everything else checks out.


If it did not work still..Give following info..
>> OS details, webserver details, pam_module details

( all possible details like versions, download urls etc)

RH 9, Apache 1.3.29, PHP 4.3.3, pam info at the above url
>> error_log details ( for example on my redhat box

the error log is in /var/log/httpd/error_log)

that would help us to see what the problem is.

Aside from the error detailing it was unable to load the module (which I
fixed - had the path wrong), I see no other PHP issues in my error_log
file.

I'm stumped.

-Jay


Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Rich | last post by:
I am running IIS6 on a Win2k3 server. I have an ASP.Net app (C#) that a user logs into and then I use LogonUser to validate them and log them onto the server. I have Windows Authentication ONLY...
36
by: Thomas | last post by:
after spending countless hours trying, i give up and hope to get some help in here. on server1 i got the web myweb.com with my test.asp. in the test.asp, i'm trying to read a file from an UNC...
1
by: Martin | last post by:
Hi, After I gave up on tracking user sessions through the session object (Session_OnEnd is still not triggered by Abandon() even with mode=InProc and me manipulating session variables; in a new...
2
by: Rob Mayo | last post by:
What I'm trying to do is Create an ASP.Net app that has both Windows-authenticated users and Anonymous users. The idea is this: When authenticated users attempt to access the site, their...
4
by: TipTop | last post by:
I am trying to use integrated Windows authentication and impersonation to run a page that accesses SQL Server via integrated security. It's not working -- sort of. I've set IIS security to...
0
by: Chris Mohan | last post by:
Hi, I've configured a web app to use windows authentication and also set up two separate subdirectories to use forms authentication. It appears to work fine but I have never seen a sample that...
3
by: Stu Lock | last post by:
Hi, Is there a way of requiring a log in for individual asp.net pages rather than securing a entire directory. I have a web app where there are 100+ pages but only 2 need to be password...
0
by: Grzegorz Kaczor | last post by:
Hello, I have an ASP.NET application in my website in virtual folder A. This folder contains the application itself. I also have a data virtual directory B which contains data that can be seen...
2
by: Rob R. Ainscough | last post by:
I'm using forms authentication along with Master pages -- my authenticated forms reside is a sub-dir (Secure) below the web site root dir. The problem is that any graphics placed on the Master...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.