[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/phpgwapi/inc/ -> class.auth_pam.inc.php (source)

   1  <?php
   2      /**************************************************************************\
   3      * eGroupWare API - Auth from PAM                                           *
   4      * ------------------------------------------------------------------------ *
   5      * This library is part of the eGroupWare API                               *
   6      * http://www.egroupware.org/api                                            *
   7      * ------------------------------------------------------------------------ *
   8      * This library is free software; you can redistribute it and/or modify it  *
   9      * under the terms of the GNU Lesser General Public License as published by *
  10      * the Free Software Foundation; either version 2.1 of the License,         *
  11      * or any later version.                                                    *
  12      * This library is distributed in the hope that it will be useful, but      *
  13      * WITHOUT ANY WARRANTY; without even the implied warranty of               *
  14      * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                     *
  15      * See the GNU Lesser General Public License for more details.              *
  16      * You should have received a copy of the GNU Lesser General Public License *
  17      * along with this library; if not, write to the Free Software Foundation,  *
  18      * Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA            *
  19      \**************************************************************************/
  20  
  21      /* $Id: class.auth_pam.inc.php 20295 2006-02-15 12:31:25Z  $ */
  22  
  23      class auth_
  24      {
  25  		function authenticate($username, $passwd)
  26          {
  27              if (pam_auth($username, get_magic_quotes_gpc() ? stripslashes($passwd) : $passwd, &$error)) 
  28              {
  29                  return True;
  30              }
  31              return False;
  32          }
  33  
  34  		function change_password($old_passwd, $new_passwd, $account_id='')
  35          {
  36              // deny password changes.
  37              return False;
  38          }
  39      }


Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7