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

Class: Auth_Container_SMBPasswd

Source Location: /Auth-1.6.4/Auth/Container/SMBPasswd.php

Class Overview

Auth_Container
   |
   --Auth_Container_SMBPasswd

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


Author(s):

Version:

  • Release: @package_version@ File: $Revision: 237449 $

Copyright:

  • 2001-2006 The PHP Group

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::log()
Log a message to the Auth log
Auth_Container::removeUser()
Remove user from the storage container
Auth_Container::supportsChallengeResponse()
Returns true if the container supports Challenge Response
Auth_Container::verifyPassword()
Crypt and verfiy the entered password

Class Details

[line 63]
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 72]

File_SMBPasswd object

Type:   object


[ Top ]



Method Detail

Auth_Container_SMBPasswd (Constructor)   [line 84]

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 132]

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 169]

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 105]

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 114]

void listUsers( )


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

removeUser   [line 150]

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 15:41:38 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.