Method based on LDAP
| package | sso\lib\dao\auths |
|---|
auth(string $user, string $pass, \sso\stdClass $options)
escapeLdap(string $text) : string
stringtext
stringescaped textgetOptions(array<mixed,mixed> $value = NULL)
normalizeLdapData(array<mixed,mixed> $data) : array<mixed,mixed>
array<mixed,mixed>return of ldap_* functions
array<mixed,mixed>same data without count entries and without array for entries with 1 element onlysearch(string $search, \stdClass $options)
connect(\stdClass $options) : resource
\stdClassOptions of method
\sso\BusinessException |
if anything go wrong |
|---|
resourceLDAP resource after connectdisconnect(resource $ldap)
resourceLDAP resource
searchOnLdap(array<mixed,mixed>|string $searchData, \stdClass $options, resource $ldap) : array<mixed,\sso\AuthUser>
array<mixed,mixed>stringData to search indexed by field name, or user ID
\stdClassoptions of method
resourceLDAP resource
\sso\Exception |
if ldap_search() failed |
|---|---|
\sso\BusinessException |
if something else failed |
array<mixed,\sso\AuthUser>List of users match $searchData