ID:               34517
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to