#34517 [Opn->Csd]: Linux PAM authentication
| From: | tony2001@php.net | Date: | Sat, 11 Nov 2006 01:35:27 +0000 |
| Subject: | #34517 [Opn->Csd]: Linux PAM authentication | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-104798@lists.php.net to get a copy of this message | ||
ID: 34517
Updated by: tony2001@php.net
Reported By: renich at woralelanida dot com
-Status: Open
+Status: Closed
Bug Type: Feature/Change Request
Operating System: Linux
PHP Version: 5.0.5
New Comment:
See http://news.php.net/php.pecl.dev/4322
Previous Comments:
------------------------------------------------------------------------
[2005-09-15 22:49:37] renich at woralelanida dot com
Description:
------------
You guys should add an PAM auth function for sessions. Maybe a NT one
too.
There is no simple way of doing authentication using the already
registered linux users. I am in charge of an intranet and sessions
would be INTEGRAL if you could authenticate and obtain user info via a
function
Reproduce code:
---------------
<?php
$user = array( pam_auth($_POST[user],$_POST[passwd]) );
if (!$user)
{
sent_to_damnation();
}
else
{
giveem_the_session($user[user],$user[name],$user[uid],$user[gid],$user[home]
}
?>
Expected result:
----------------
$user = array(
[user] = 'renich'
[name] = 'Renich Bon Ciric'
[uid] = '500'
[gid] = '500'
[home] = '/home/renich'
[shell] = '/bin/bash'
)
Something like that?
Actual result:
--------------
No function actully
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34517&edit=1