openrat-cms

# OpenRat Content Management System
git clone http://git.code.weiherhei.de/openrat-cms.git
Log | Files | Refs

SSLAuth.class.php (482B)


      1 <?php
      2 
      3 /**
      4  * Authentifizierung ueber ein SSL-Zertifikat.
      5  *  
      6  * @author dankert
      7  */
      8 class SSLAuth implements Auth
      9 {
     10 	public function username()
     11 	{
     12 	    $conf = config('security','ssl');
     13 	    if ( isset($_SERVER[config('security','ssl','client_cert_dn_env')]))
     14 	        return $_SERVER[config('security','ssl','client_cert_dn_env')];
     15 	}
     16 	
     17 	
     18 	/**
     19 	 * Ueberpruefen des Kennwortes ist nicht möglich.
     20 	 */
     21 	public function login( $user, $password, $token )
     22 	{
     23 		return false;
     24 	}
     25 }
     26 
     27 ?>