ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5
Auth_Container_vpopmail Class Reference
+ Inheritance diagram for Auth_Container_vpopmail:
+ Collaboration diagram for Auth_Container_vpopmail:

Public Member Functions

 Auth_Container_vpopmail ()
 Constructor of the container class. More...
 
 fetchData ($username, $password)
 Get user information from vpopmail. More...
 
- Public Member Functions inherited from Auth_Container
 Auth_Container ()
 Constructor. More...
 
 fetchData ($username, $password, $isChallengeResponse=false)
 Fetch data from storage container. More...
 
 verifyPassword ($password1, $password2, $cryptType="md5")
 Crypt and verfiy the entered password. More...
 
 supportsChallengeResponse ()
 Returns true if the container supports Challenge Response password authentication. More...
 
 getCryptType ()
 Returns the crypt current crypt type of the container. More...
 
 listUsers ()
 List all users that are available from the storage container. More...
 
 getUser ($username)
 Returns a user assoc array. More...
 
 addUser ($username, $password, $additional=null)
 Add a new user to the storage container. More...
 
 removeUser ($username)
 Remove user from the storage container. More...
 
 changePassword ($username, $password)
 Change password for user in the storage container. More...
 
 log ($message, $level=AUTH_LOG_DEBUG)
 Log a message to the Auth log. More...
 
- Public Member Functions inherited from ilAuthContainerBase
 loginObserver ($a_username, $a_auth)
 Called after successful login. More...
 
 failedLoginObserver ($a_username, $a_auth)
 Called after failed login. More...
 
 checkAuthObserver ($a_username, $a_auth)
 Called after check auth requests. More...
 
 logoutObserver ($a_username, $a_auth)
 Called after logout. More...
 
 supportsCaptchaVerification ()
 Returns whether or not the auth container supports the verification of captchas This should be true for those auth methods, which are available in the default login form. More...
 

Additional Inherited Members

- Data Fields inherited from Auth_Container
 $activeUser = ""
 User that is currently selected from the storage container. More...
 
 $_auth_obj = null
 The Auth object this container is attached to. More...
 

Detailed Description

Definition at line 48 of file vpopmail.php.

Member Function Documentation

◆ Auth_Container_vpopmail()

Auth_Container_vpopmail::Auth_Container_vpopmail ( )

Constructor of the container class.

Returns
void

Definition at line 57 of file vpopmail.php.

References PEAR_ERROR_DIE, and PEAR\raiseError().

58  {
59  if (!extension_loaded('vpopmail')) {
60  return PEAR::raiseError('Cannot use VPOPMail authentication, '
61  .'VPOPMail extension not loaded!', 41, PEAR_ERROR_DIE);
62  }
63  }
const PEAR_ERROR_DIE
Definition: PEAR.php:34
& raiseError($message=null, $code=null, $mode=null, $options=null, $userinfo=null, $error_class=null, $skipmsg=false)
This method is a wrapper that returns an instance of the configured error class with this object's de...
Definition: PEAR.php:524
+ Here is the call graph for this function:

◆ fetchData()

Auth_Container_vpopmail::fetchData (   $username,
  $password 
)

Get user information from vpopmail.

Parameters
stringUsername - has to be valid email address
stringPassword
Returns
boolean

Definition at line 75 of file vpopmail.php.

References $result, AUTH_LOG_DEBUG, and Auth_Container\log().

76  {
77  $this->log('Auth_Container_vpopmail::fetchData() called.', AUTH_LOG_DEBUG);
78  $userdata = array();
79  $userdata = preg_split("/@/", $username, 2);
80  $result = @vpopmail_auth_user($userdata[0], $userdata[1], $password);
81 
82  return $result;
83  }
$result
const AUTH_LOG_DEBUG
Auth Log level - DEBUG.
Definition: Auth.php:59
log($message, $level=AUTH_LOG_DEBUG)
Log a message to the Auth log.
Definition: Container.php:246
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: