Documentation

LDAPConnector
in package

Table of Contents

SERVICE_NAME  = 'ldap.connector'
LDAP_DN_MASK  = 'dc=?, dc=?'
LDAP_FILTER_MASK  = '(&(objectClass=User)(UserPrincipalName=?@?))'
$domain  : mixed
$domain_parts  : mixed
$hostname  : mixed
$ldap_con  : mixed
$port  : mixed
__construct()  : mixed
checkUser()  : array<string|int, mixed>
getLdapUser()  : array<string|int, mixed>

Constants

LDAP_FILTER_MASK

private mixed LDAP_FILTER_MASK = '(&(objectClass=User)(UserPrincipalName=?@?))'

Properties

Methods

__construct()

public __construct(string $hostName, string $domain[, int $port = 389 ]) : mixed
Parameters
$hostName : string
$domain : string
$port : int = 389
Tags
throws
BadParameterException
Return values
mixed

checkUser()

public checkUser(mixed $login, mixed $password) : array<string|int, mixed>
Parameters
$login : mixed
$password : mixed
Tags
throws
FaildLoginToLDAP
Return values
array<string|int, mixed>

getLdapUser()

private getLdapUser(mixed $login, mixed $password) : array<string|int, mixed>
Parameters
$login : mixed
$password : mixed
Tags
throws
FaildLoginToLDAP
Return values
array<string|int, mixed>

Search results