SelfServiceLdapConnection
in package
LDAP connection for self-service.
Table of Contents
- $profile : selfServiceProfile
- $server : Connection|null
- __construct() : mixed
- Constructor
- __serialize() : array<string, selfServiceProfile>
- Closes connection to the LDAP server before serialization.
- __unserialize() : void
- Restores the profile.
- bind() : bool
- Binds with the given credentials.
- getServer() : Connection|null
- Returns the LDAP handle.
Properties
$profile
private
selfServiceProfile
$profile
$server
private
Connection|null
$server
= \null
Methods
__construct()
Constructor
public
__construct(selfServiceProfile $profile) : mixed
Parameters
- $profile : selfServiceProfile
-
profile
Return values
mixed —__serialize()
Closes connection to the LDAP server before serialization.
public
__serialize() : array<string, selfServiceProfile>
Return values
array<string, selfServiceProfile> —data
__unserialize()
Restores the profile.
public
__unserialize(array<string, selfServiceProfile> $data) : void
Parameters
- $data : array<string, selfServiceProfile>
-
data
Return values
void —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() : Connection|null
Return values
Connection|null —LDAP handle