authentification driver, which communicate with a LDS server LDS = Linbox Directory Server
| package |
jelix |
|---|---|
| subpackage |
auth_driver |
| link | |
| see | |
| since | 1.0b1 |
__construct(array $params)
arraydriver parameters, written in the ini file of the auth plugin
changePassword(string $login, string $newpassword)
stringthe login of the user
string
createUserObject(string $login, string $password) : object
. Careful : it doesn't create a user in a database for example. Just an object.
stringthe user login
stringthe user password
objectthe returned object depends on the driver
decodeEntities(string $text, $charset = 'UTF-8') : string
It is needed because XMLRPC server doest not like this sort of encoding.
stringthe content in which the entities should be decoded
stringthe decoded string
getUser(string $login) : object
stringthe login of the user
objectthe user data container
getUserList(string $pattern) : array
string'' for all users
arrayarray of user object
removeUser(string $login)
stringthe login of the user to remove
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...
objectthe user data container
updateUser(object $user)
objectthe user data container
verifyPassword(string $login, string $password) : object|false
stringthe login of the user
stringthe password to test
object|false
xmlCall(string $method, array $params) : mixed
| Throws |
|
|---|
stringname of the method
arrayarray with param
mixedthe value of the response returned by the call
_params :