You are here: Re: [PHP] PHP5.0.3 and pam authentication « PHP « IT news, forums, messages
Re: [PHP] PHP5.0.3 and pam authentication

Posted by Richard Lynch on 10/01/11 11:10

> I'm trying to use pam_auth for a script. It loads into php but it's not
> authenticating the users. I'm using the correct password and username.
> This is a example of how I'm using the function:
>
> pam_auth($_POST[uname], $_POST[passwd], &$error)
>
> Any ideas? Thanks in advance

For starters, you should quote uname and passwd.

It's clear you also have error_reporting too low on your development
server, or PHP would complain about that.

You should not have the & in there.

Finally, according to the pam_auth FAQ, if you using a passwd or shadow
file, your user has to have read permission to read that file. Seems like
the most likely reason for failure, based on what little info you give
us...

--
Like Music?
http://l-i-e.com/artists.htm

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация