SelfServiceLdapConnection
in package
LDAP connection for self service.
Table of Contents
- $profile : mixed
- $server : mixed
- __construct() : mixed
- Constructor
- __sleep() : array<string|int, mixed>
- Closes connection to LDAP server before serialization
- bind() : bool
- Binds with the given credentials.
- getServer() : mixed
- Returns the LDAP handle.
Properties
$profile
private
mixed
$profile
$server
private
mixed
$server
Methods
__construct()
Constructor
public
__construct(selfServiceProfile $profile) : mixed
Parameters
- $profile : selfServiceProfile
-
profile
Return values
mixed —__sleep()
Closes connection to LDAP server before serialization
public
__sleep() : array<string|int, mixed>
Return values
array<string|int, mixed> —bind()
Binds with the given credentials.
public
bind(string $userDn, string $password) : bool
Parameters
- $userDn : string
-
user DN
- $password : string
-
password
Return values
bool —bind successful
getServer()
Returns the LDAP handle.
public
getServer() : mixed
Return values
mixed —LDAP handle