The constructor.
void
LDAPConnector
(ref $configuration)
-
ref
$configuration: object $configuration A Properties Properties with configuration for connection.
authenticate will check a DN/password pair against the LDAP server.
boolean
authenticateDN
(string $dn, string $password)
-
string
$dn
-
string
$password: the password associated with $systemName
returns true if the dn exists
string|null
dnExists
(mixed $dn, string $systemName)
-
string
$systemName: The name to fetch the DN for.
Get the course DNs that match the search
string
getClassesDNsBySearch
(mixed $filter, string $systemName)
Get the DNs that match the search immediately below the baseDN
string
getDNsByList
(mixed $filter, mixed $baseDN, string $systemName)
Get the DNs that match the search
string
getDNsBySearch
(mixed $filter, mixed $baseDN, string $systemName)
Get the user DNs that match the search
string
getGroupDNsBySearch
(mixed $filter, string $systemName)
Get the DN for the systemname passed
string
getInfo
(string $dn, optional $fields)
-
string
$dn
-
optional
$fields: array $return An array of fields to return.
Get the user DNs that match the search
string
getUserDNsBySearch
(mixed $filter, string $systemName)
returns true if the Group dn exists
string|null
groupDNExists
(mixed $dn, string $systemName)
-
string
$systemName: The name to fetch the DN for.
returns true if the User dn exists
string|null
userDNExists
(mixed $dn, string $systemName)
-
string
$systemName: The name to fetch the DN for.
Attempts to bind to the LDAP server anonymously.
boolean
_anonymousBind
()
Attempt to bind to the LDAP server using $dn and $password credentials.
boolean
_bind
(string $dn, string $password)
-
string
$dn: The LDAP DN.
-
string
$password: The password.
Attempts to bind to the LDAP server either anonymously or with a DN and password supplied in the configuration so that we can search the database.
void
_bindForSearch
()
Connects to the LDAP server.
void
_connect
()
Disconnects from the LDAP server.
void
_disconnect
()