LDAP authentification driver for authentification information stored in LDAP server
| package |
jelix |
|---|---|
| subpackage |
auth_driver |
__construct( $params)
_bindLdapUser()
_buildUserDn( $login)
_getLinkId()
changePassword(string $login, string $newpassword)
stringthe login of the user
string
checkPassword(string $givenPassword, string $currentPasswordHash) : boolean|string
stringthe password to verify
stringthe hash of the real password
boolean|stringfalse if password does not correspond. True if it is ok. A string containing a new hash if it is ok and need to store a new hash
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
cryptPassword(string $password, $forceOldHash = false) : string
stringthe password to hash
stringthe hash password
getAttributesLDAP( $user, $update = false)
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
setAttributesLDAP( &$user, $attributes)
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
_default_attributes : array
| var | |
|---|---|
| access |
protected |
array
_params :
passwordHashMethod :
passwordHashOptions :