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

Class: Auth_Container_File

Source Location: /Auth-1.2.4/Container/File.php

Class Overview

Auth_Container
   |
   --Auth_Container_File

Storage driver for fetching login data from an encrypted password file.


Author(s):

Version:

  • $Revision: 1.14 $

Variables

Methods


Inherited Variables

Inherited Methods

Class: Auth_Container

Auth_Container::Auth_Container()
Constructor
Auth_Container::addUser()
Add a new user to the storage container
Auth_Container::fetchData()
Fetch data from storage container
Auth_Container::getUser()
Returns a user assoc array
Auth_Container::listUsers()
List all users that are available from the storage container
Auth_Container::removeUser()
Remove user from the storage container
Auth_Container::verifyPassword()
Crypt and verfiy the entered password

Class Details

[line 38]
Storage driver for fetching login data from an encrypted password file.

This storage container can handle CVS pserver style passwd files.



[ Top ]


Class Variables

$pwfile =  ''

[line 45]

Path to passwd file

Type:   string


[ Top ]



Method Detail

Auth_Container_File (Constructor)   [line 55]

object Auth_Container_File Auth_Container_File( string $filename)

Constructor of the container class
  • Return: new Auth_Container_File object

Parameters:

string   $filename   —  path to passwd file

[ Top ]

addUser   [line 116]

boolean addUser( string $user, string $pass, [mixed $additional = ''])

Add a new user to the storage container

Overrides Auth_Container::addUser() (Add a new user to the storage container)

Parameters:

string   $user   —  username
string   $pass   —  password
mixed   $additional   —  CVS username

[ Top ]

fetchData   [line 70]

mixed fetchData( string $user, string $pass)

Authenticate an user
  • Return: boolean|PEAR_Error

Overrides Auth_Container::fetchData() (Fetch data from storage container)

Parameters:

string   $user   —  username
string   $pass   —  password

[ Top ]

listUsers   [line 83]

array listUsers( )

List all available users

Overrides Auth_Container::listUsers() (List all users that are available from the storage container)
[ Top ]

removeUser   [line 148]

boolean removeUser( string $user)

Remove user from the storage container

Overrides Auth_Container::removeUser() (Remove user from the storage container)

Parameters:

string   $user   —  Username

[ Top ]


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