__construct()
__sleep()
__wakeup()
close()
connect()
decrypt()
decrypt_login()
destroy()
encrypt()
encrypt_login()
new_rand()
server()
$conf
$is_connected
$password
$rand
$server
$username
Ldap manages connection to LDAP and includes several helper functions.
| package | LDAP |
|---|
__construct(object $config)
objectan object of class Config
__sleep()
__wakeup()
close()
connect(string $user, string $passwd, boolean $allowAnonymous) : mixed
stringuser name
stringpassword
booleanspecifies if anonymous binds are allowed
mixedif connect succeeds the server handle is returned, else falsedecrypt(object $data, string $prefix) : string
objectstring to decrypt
stringprefix for cookie names
stringdecrypted stringdecrypt_login() : array
arrayarray(user name, password)destroy()
encrypt(string $data, string $prefix) : object
stringstring to encrypt
stringprefix for cookie names
objectencrypted stringencrypt_login(string $username, string $password)
stringLDAP user name
stringLDAP password
new_rand() : int
intNew random valueserver() : object
objectconnection handle$conf
$is_connected
$password
$rand
$server
$username