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

Class: Auth_Container_SAP

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

Class Overview

Auth_Container
   |
   --Auth_Container_SAP

Performs authentication against a SAP system using the SAPRFC PHP extension.


Author(s):

Version:

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

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 54]
Performs authentication against a SAP system using the SAPRFC PHP extension.

When the option GETSSO2 is TRUE (default) the Single Sign-On (SSO) ticket is retrieved and stored as an Auth attribute called 'sap' in order to be reused for consecutive connections.

  • Author: Adam Ashley <aashley@php.net>
  • Author: Stoyan Stefanov <ssttoo@gmail.com>
  • Version: Release: @package_version@ File: $Revision: 302205 $
  • Copyright: 2001-2006 The PHP Group
  • Since: Class available since Release 1.4.0
  • License: PHP License 3.01


[ Top ]


Class Variables

$options = array(
        'CLIENT'    => '000',
        'LANG'      => 'EN',
        'GETSSO2'   => true,
    )

[line 61]

  • Var: Default options

Type:   array


[ Top ]



Method Detail

Auth_Container_SAP (Constructor)   [line 94]

void Auth_Container_SAP( array $options)

Class constructor. Checks that required options are present and that the SAPRFC extension is loaded

Options that can be passed and their defaults:

 array(
   'ASHOST' => "",
   'SYSNR'  => "",
   'CLIENT' => "000",
   'GWHOST' =>"",
   'GWSERV' =>"",
   'MSHOST' =>"",
   'R3NAME' =>"",
   'GROUP'  =>"",
   'LANG'   =>"EN",
   'TRACE'  =>"",
   'GETSSO2'=> true
 )


Parameters:

array   $options   —  array of options.

[ Top ]

fetchData   [line 117]

boolean fetchData( string $username, string $password)

Performs username and password check
  • Return: TRUE on success (valid user), FALSE otherwise

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

Parameters:

string   $username   —  Username
string   $password   —  Password

[ Top ]

getError   [line 158]

array getError( )

Retrieves the last error from the SAP connection and returns it as an array.
  • Return: Array of error information

[ Top ]


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