__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)
object
an object of class Config
__sleep()
__wakeup()
close()
connect(string $user, string $passwd, boolean $allowAnonymous) : mixed
string
user name
string
password
boolean
specifies if anonymous binds are allowed
mixed
if connect succeeds the server handle is returned, else falsedecrypt(object $data, string $prefix) : string
object
string to decrypt
string
prefix for cookie names
string
decrypted stringdecrypt_login() : array
array
array(user name, password)destroy()
encrypt(string $data, string $prefix) : object
string
string to encrypt
string
prefix for cookie names
object
encrypted stringencrypt_login(string $username, string $password)
string
LDAP user name
string
LDAP password
new_rand() : int
int
New random valueserver() : object
object
connection handle$conf
$is_connected
$password
$rand
$server
$username