|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-11-11 01:35 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 07:00:01 2025 UTC |
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