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

Class: Auth_Container_SMBPasswd

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

Class Overview

Auth_Container
   |
   --Auth_Container_SMBPasswd

Storage driver for fetching login data from an SAMBA smbpasswd file.


Author(s):

Version:

  • $Revision: 1.2 $

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::changePassword()
Change password for user in the storage container
Auth_Container::fetchData()
Fetch data from storage container
Auth_Container::getCryptType()
Returns the crypt current crypt type of the 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::supportsChallengeResponce()
Returns true if the container supports Challenge Responce
Auth_Container::verifyPassword()
Crypt and verfiy the entered password

Class Details

[line 43]
Storage driver for fetching login data from an SAMBA smbpasswd file.

This storage container can handle SAMBA smbpasswd files.

Example: $a = new Auth("SMBPasswd", '/usr/local/private/smbpasswd'); $a->start(); if ($a->getAuth()) { printf ("AUTH OK
\n"); $a->logout(); }



[ Top ]


Class Variables

$pwfile =

[line 49]

File_SMBPasswd object

Type:   object


[ Top ]



Method Detail

Auth_Container_SMBPasswd (Constructor)   [line 59]

object Returns Auth_Container_SMBPasswd( $filename $filename)

Constructor of the container class
  • Return: an error object if something went wrong

Parameters:

$filename   $filename   —  string filename for a passwd type file

[ Top ]

addUser   [line 105]

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

Add a new user to the storage container

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

Parameters:

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

[ Top ]

changePassword   [line 140]

void changePassword( string $username, string $password)

Change password for user in the storage container

Overrides Auth_Container::changePassword() (Change password for user in the storage container)

Parameters:

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

[ Top ]

fetchData   [line 80]

boolean fetchData( string $username, string $password)

Get user information from pwfile

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

Parameters:

string   $username   —  Username
string   $password   —  Password

[ Top ]

listUsers   [line 88]

void listUsers( )


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

removeUser   [line 122]

void removeUser( string $username)

Remove user from the storage container

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

Parameters:

string   $username   —  Username

[ Top ]


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