ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
Auth_Container_Vpopmaild Class Reference
+ Inheritance diagram for Auth_Container_Vpopmaild:
+ Collaboration diagram for Auth_Container_Vpopmaild:

Public Member Functions

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

Data Fields

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

Detailed Description

Definition at line 55 of file NetVPOPMaild.php.

Member Function Documentation

Auth_Container_Vpopmaild::Auth_Container_Vpopmaild (   $server = null)

Constructor of the container class.

Parameters
$serverstring server or server:port combination
Returns
object Returns an error object if something went wrong

Definition at line 76 of file NetVPOPMaild.php.

References $server.

{
if (isset($server) && !is_null($server)) {
if (is_array($server)) {
if (isset($server['host'])) {
$this->server = $server['host'];
}
if (isset($server['port'])) {
$this->port = $server['port'];
}
} else {
if (strstr($server, ':')) {
$serverparts = explode(':', trim($server));
$this->server = $serverparts[0];
$this->port = $serverparts[1];
} else {
$this->server = $server;
}
}
}
}
Auth_Container_Vpopmaild::fetchData (   $username,
  $password 
)

fetchData()

Try to login to the Vpopmaild server

Parameters
stringusername
stringpassword
Returns
boolean

Definition at line 108 of file NetVPOPMaild.php.

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

{
$this->log('Auth_Container_Vpopmaild::fetchData() called.', AUTH_LOG_DEBUG);
$vpopmaild =& new Net_Vpopmaild();
// Connect
try {
$res = $vpopmaild->connect($this->server, $this->port, $this->method);
} catch (Net_Vpopmaild_FatalException $e) {
$this->log('Connection to Vpopmaild server failed.', AUTH_LOG_DEBUG);
return PEAR::raiseError($e->getMessage(), $e->getCode());
}
// Authenticate
try {
$result = $vpopmaild->clogin($username, $password);
$vpopmaild->quit();
} catch (Net_Vpopmaild_Exception $e) {
return PEAR::raiseError($e->getMessage(), $e->getCode());
}
return $result;
}

+ Here is the call graph for this function:

Field Documentation

Auth_Container_Vpopmaild::$port = 89

Definition at line 68 of file NetVPOPMaild.php.

Auth_Container_Vpopmaild::$server = 'localhost'

Definition at line 62 of file NetVPOPMaild.php.

Referenced by Auth_Container_Vpopmaild().


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