ldsAuthDriver

Implements \jIAuthDriver

authentification driver, which communicate with a LDS server LDS = Linbox Directory Server

package

jelix

subpackage

auth_driver

link

http://lds.linbox.org/

see
since 1.0b1

Methods

constructor

__construct(array $params) 

Arguments

$params

array

driver parameters, written in the ini file of the auth plugin

change a user password

changePassword(string $login, string $newpassword) 

Arguments

$login

string

the login of the user

$newpassword

string

creates a new user object, with some first data.

createUserObject(string $login, string $password) : object

. Careful : it doesn't create a user in a database for example. Just an object.

Arguments

$login

string

the user login

$password

string

the user password

Response

object

the returned object depends on the driver

function wich decode UTF-8 Entity with ref  for example.

decodeEntities(string $text,  $charset = 'UTF-8') : string

It is needed because XMLRPC server doest not like this sort of encoding.

Arguments

$text

string

the content in which the entities should be decoded

$charset

Response

string

the decoded string

return user data corresponding to the given login

getUser(string $login) : object

Arguments

$login

string

the login of the user

Response

object

the user data container

construct the user list

getUserList(string $pattern) : array

Arguments

$pattern

string

'' for all users

Response

array

array of user object

Erase user data of the user $login

removeUser(string $login) 

Arguments

$login

string

the login of the user to remove

store a new user.

saveNewUser(object $user) 

It create the user in a database for example should be call after a call of createUser and after setting some of its properties...

Arguments

$user

object

the user data container

save updated data of a user warning : should not save the password !

updateUser(object $user) 

Arguments

$user

object

the user data container

verify that the password correspond to the login

verifyPassword(string $login, string $password) : object|false

Arguments

$login

string

the login of the user

$password

string

the password to test

Response

object|false

call an xmlrpc call for a method via the xmlrpc server in python (lmc-agent)

xmlCall(string $method, array $params) : mixed
Throws
\jException

Arguments

$method

string

name of the method

$params

array

array with param

Response

mixed

the value of the response returned by the call

Properties

_params

_params : 

Type(s)