Auth
[ class tree: Auth ] [ index: Auth ] [ all elements ]

Class: Auth_Container

Source Location: /Auth-1.3.0r2/Container.php

Class Overview


Storage class for fetching login data


Author(s):

Variables

Methods


Child classes:

Auth_Container_SMBPasswd
Storage driver for fetching login data from an SAMBA smbpasswd file.
Auth_Container_MDB2
Storage driver for fetching login data from a database
Auth_Container_LDAP
Storage driver for fetching login data from LDAP
Auth_Container_POP3
Storage driver for Authentication on a POP3 server.
Auth_Container_IMAP
Storage driver for fetching login data from an IMAP server
Auth_Container_File
Storage driver for fetching login data from an encrypted password file.
Storage driver for fetching login data from a database
Auth_Container_vpopmail
Storage driver for fetching login data from vpopmail
Auth_Container_MDB
Storage driver for fetching login data from a database
Auth_Container_RADIUS
Storage driver for authenticating users against RADIUS servers.
Auth_Container_SOAP
Storage driver for fetching login data from SOAP

Inherited Variables

Inherited Methods


Class Details

[line 28]
Storage class for fetching login data


[ Top ]


Class Variables

$activeUser =  ""

[line 36]

User that is currently selected from the storage container.
  • Access: public

Type:   mixed


[ Top ]



Method Detail

Auth_Container (Constructor)   [line 45]

Auth_Container Auth_Container( )

Constructor

Has to be overwritten by each storage class

  • Access: public

[ Top ]

addUser   [line 150]

boolean addUser( string $username, string $password, [array $additional = null])

Add a new user to the storage container

Overridden in child classes as:

Auth_Container_SMBPasswd::addUser()
Add a new user to the storage container
Auth_Container_MDB2::addUser()
Add user to the storage container
Auth_Container_File::addUser()
Add a new user to the storage container
Add user to the storage container
Auth_Container_MDB::addUser()
Add user to the storage container

Parameters:

string   $username   —  Username
string   $password   —  Password
array   $additional   —  Additional information

[ Top ]

changePassword   [line 169]

void changePassword( string $username, string $password)

Change password for user in the storage container

Overridden in child classes as:

Auth_Container_SMBPasswd::changePassword()
Change password for user in the storage container
Auth_Container_MDB2::changePassword()
Change password for user in the storage container
Auth_Container_File::changePassword()
Change password for user in the storage container
Change password for user in the storage container
Auth_Container_MDB::changePassword()
Change password for user in the storage container

Parameters:

string   $username   —  Username
string   $password   —  The new password

[ Top ]

fetchData   [line 55]

void fetchData( $username, $password, [ $isChallengeResponce = false])

Fetch data from storage container

Has to be overwritten by each storage class

  • Access: public

Overridden in child classes as:

Auth_Container_SMBPasswd::fetchData()
Get user information from pwfile
Auth_Container_MDB2::fetchData()
Get user information from database
Auth_Container_LDAP::fetchData()
Fetch data from LDAP server
Auth_Container_POP3::fetchData()
Try to login to the POP3 server
Auth_Container_IMAP::fetchData()
Try to open a IMAP stream using $username / $password
Auth_Container_File::fetchData()
Authenticate an user
Auth_Container_DB::fetchData()
Get user information from database
Auth_Container_vpopmail::fetchData()
Get user information from vpopmail
Auth_Container_MDB::fetchData()
Get user information from database
Auth_Container_RADIUS::fetchData()
Authenticate
Auth_Container_SOAP::fetchData()
Fetch data from SOAP service

Parameters:

   $username   — 
   $password   — 
   $isChallengeResponce   — 

[ Top ]

getCryptType   [line 110]

string getCryptType( )

Returns the crypt current crypt type of the container

Overridden in child classes as:

[ Top ]

getUser   [line 128]

void getUser( string $username)

Returns a user assoc array

Containers which want should overide this


Parameters:

string   $username   —  The username

[ Top ]

listUsers   [line 117]

void listUsers( )

List all users that are available from the storage container

Overridden in child classes as:

Auth_Container_SMBPasswd::listUsers()
Auth_Container_MDB2::listUsers()
Auth_Container_File::listUsers()
List all available users
Auth_Container_MDB::listUsers()

[ Top ]

removeUser   [line 159]

void removeUser( string $username)

Remove user from the storage container

Overridden in child classes as:

Auth_Container_SMBPasswd::removeUser()
Remove user from the storage container
Auth_Container_MDB2::removeUser()
Remove user from the storage container
Auth_Container_File::removeUser()
Remove user from the storage container
Remove user from the storage container
Auth_Container_MDB::removeUser()
Remove user from the storage container

Parameters:

string   $username   —  Username

[ Top ]

supportsChallengeResponce   [line 101]

void supportsChallengeResponce( )

Returns true if the container supports Challenge Responce

password authenthication


Overridden in child classes as:

[ Top ]

verifyPassword   [line 72]

bool verifyPassword( string $password1, string $password2, [string $cryptType = "md5"])

Crypt and verfiy the entered password
  • Return: True, if the passwords match

Parameters:

string   $password1   —  Entered password
string   $password2   —  Password from the data container (usually this password is already encrypted.
string   $cryptType   —  Type of algorithm with which the password from the container has been crypted. (md5, crypt etc.) Defaults to "md5".

[ Top ]


Documentation generated on Mon, 11 Mar 2019 13:52:32 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.