php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #34517 Linux PAM authentication
Submitted: 2005-09-15 22:49 UTC Modified: 2006-11-11 01:35 UTC
From: renich at woralelanida dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 5.0.5 OS: Linux
Private report: No CVE-ID: None
 [2005-09-15 22:49 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 05:01:34 2025 UTC