__construct()
__destruct()
add()
bind()
connect()
copy()
copyToSubtree()
count()
countChildren()
delete()
disconnect()
exists()
getBaseDn()
getBaseNode()
getBoundUser()
getCanonicalAccountName()
getEntry()
getLastError()
getLastErrorCode()
getNode()
getOptions()
getResource()
getRootDse()
getSchema()
move()
moveToSubtree()
prepareLdapEntryArray()
rename()
save()
search()
searchEntries()
setOptions()
update()
createCollection()
getAccount()
getAccountCanonicalForm()
getAccountDn()
getAccountDomainName()
getAccountDomainNameShort()
getAccountFilter()
getAccountFilterFormat()
getAllowEmptyPassword()
getBindRequiresDn()
getChildrenDns()
getHost()
getNetworkTimeout()
getOptReferrals()
getPassword()
getPort()
getTryUsernameSplit()
getUseSsl()
getUseStartTls()
getUsername()
isPossibleAuthority()
splitName()
$boundUser
$options
$resource
$rootDse
$schema
$connectString
ACCTNAME_FORM_BACKSLASH
ACCTNAME_FORM_DN
ACCTNAME_FORM_PRINCIPAL
ACCTNAME_FORM_USERNAME
SEARCH_SCOPE_BASE
SEARCH_SCOPE_ONE
SEARCH_SCOPE_SUB
__construct(array | \Traversable $options)
array\TraversableOptions used in connecting, binding, etc.
\Zend\Ldap\Exception\LdapException |
|---|
__destruct() : void
add(string | \Zend\Ldap\Dn $dn, array $entry) : \Zend\Ldap\Ldap
string\Zend\Ldap\Dn
array
\Zend\Ldap\Exception\LdapException |
|---|
\Zend\Ldap\LdapProvides a fluid interfacebind(string $username, string $password) : \Zend\Ldap\Ldap
stringThe username for authenticating the bind
stringThe password for authenticating the bind
\Zend\Ldap\Exception\LdapException |
|---|
\Zend\Ldap\LdapProvides a fluent interfaceconnect(string $host, int $port, bool $useSsl, bool $useStartTls, int $networkTimeout) : \Zend\Ldap\Ldap
One way to disable this behavior is to set 'TLS_REQCERT never' in OpenLDAP's ldap.conf and restarting Apache. Or, if you really care about the server's cert you can put a cert on the web server.
stringThe hostname of the LDAP server to connect to
intThe port number of the LDAP server to connect to
boolUse SSL
boolUse STARTTLS
intThe value for network timeout when connect to the LDAP server.
\Zend\Ldap\Exception\LdapException |
|---|
\Zend\Ldap\LdapProvides a fluent interfacecopy(string | \Zend\Ldap\Dn $from, string | \Zend\Ldap\Dn $to, bool $recursively) : \Zend\Ldap\Ldap
string\Zend\Ldap\Dn
string\Zend\Ldap\Dn
bool
\Zend\Ldap\Exception\LdapException |
|---|
\Zend\Ldap\LdapProvides a fluid interfacecopyToSubtree(string | \Zend\Ldap\Dn $from, string | \Zend\Ldap\Dn $to, bool $recursively) : \Zend\Ldap\Ldap
string\Zend\Ldap\Dn
string\Zend\Ldap\Dn
bool
\Zend\Ldap\Exception\LdapException |
|---|
\Zend\Ldap\LdapProvides a fluid interfacecount(string | \Zend\Ldap\Filter\AbstractFilter $filter, string | \Zend\Ldap\Dn | null $basedn, int $scope) : int
string\Zend\Ldap\Filter\AbstractFilter
string\Zend\Ldap\Dnnull
int
\Zend\Ldap\Exception\LdapException |
|---|
intdelete(string | \Zend\Ldap\Dn $dn, bool $recursively) : \Zend\Ldap\Ldap
string\Zend\Ldap\Dn
bool
\Zend\Ldap\Exception\LdapException |
|---|
\Zend\Ldap\LdapProvides a fluid interfacegetBaseDn() : string
stringgetBoundUser() : bool | null | string
FALSE if no user is bound to the LDAP resource NULL if there has been an anonymous bind username of the currently bound user
boolnullstring
getCanonicalAccountName(string $acctname, int $form) : string
stringThe name to canonicalize
intThe desired form of canonicalization
\Zend\Ldap\Exception\LdapException |
|---|
stringThe canonicalized name in the desired formgetEntry(string | \Zend\Ldap\Dn $dn, array $attributes, bool $throwOnNotFound) : array
string\Zend\Ldap\Dn
array
bool
null\Zend\Ldap\Exception\LdapException
|
|---|
arraygetLastError(int $errorCode, array $errorMessages) : string
int
array
stringgetLastErrorCode() : int
intgetNode(string | \Zend\Ldap\Dn $dn) : \Zend\Ldap\Node | null
string\Zend\Ldap\Dn
\Zend\Ldap\Exception\LdapException |
|---|
\Zend\Ldap\Nodenull
getOptions() : array
arrayThe current options.getResource() : resource
resourceThe raw LDAP extension resource.move(string | \Zend\Ldap\Dn $from, string | \Zend\Ldap\Dn $to, bool $recursively, bool $alwaysEmulate) : \Zend\Ldap\Ldap
This is an alias for rename()
string\Zend\Ldap\Dn
string\Zend\Ldap\Dn
bool
bool
\Zend\Ldap\Exception\LdapException |
|---|
\Zend\Ldap\LdapProvides a fluid interfacemoveToSubtree(string | \Zend\Ldap\Dn $from, string | \Zend\Ldap\Dn $to, bool $recursively, bool $alwaysEmulate) : \Zend\Ldap\Ldap
string\Zend\Ldap\Dn
string\Zend\Ldap\Dn
bool
bool
\Zend\Ldap\Exception\LdapException |
|---|
\Zend\Ldap\LdapProvides a fluid interfaceprepareLdapEntryArray(array $entry) : void
rename(string | \Zend\Ldap\Dn $from, string | \Zend\Ldap\Dn $to, bool $recursively, bool $alwaysEmulate) : \Zend\Ldap\Ldap
This method implicitly moves the entry to another location within the tree.
string\Zend\Ldap\Dn
string\Zend\Ldap\Dn
bool
bool
\Zend\Ldap\Exception\LdapException |
|---|
\Zend\Ldap\LdapProvides a fluid interfacesave(string | \Zend\Ldap\Dn $dn, array $entry) : \Zend\Ldap\Ldap
Internally decides if entry will be updated to added by calling exists().
string\Zend\Ldap\Dn
array
\Zend\Ldap\Exception\LdapException |
|---|
\Zend\Ldap\LdapProvides a fluid interfacesearch(string | \Zend\Ldap\Filter\AbstractFilter | array $filter, string | \Zend\Ldap\Dn | null $basedn, int $scope, array $attributes, string | null $sort, string | null $collectionClass, int $sizelimit, int $timelimit) : \Zend\Ldap\Collection
Options can be either passed as single parameters according to the method signature or as an array with one or more of the following keys - filter - baseDn - scope - attributes - sort - collectionClass - sizelimit - timelimit
string\Zend\Ldap\Filter\AbstractFilterarray
string\Zend\Ldap\Dnnull
int
array
stringnull
stringnull
int
int
\Zend\Ldap\Exception\LdapException |
|---|
searchEntries(string | \Zend\Ldap\Filter\AbstractFilter | array $filter, string | \Zend\Ldap\Dn | null $basedn, int $scope, array $attributes, string | null $sort, bool $reverseSort, int $sizelimit, int $timelimit) : array
Options can be either passed as single parameters according to the method signature or as an array with one or more of the following keys - filter - baseDn - scope - attributes - sort - reverseSort - sizelimit - timelimit
string\Zend\Ldap\Filter\AbstractFilterarray
string\Zend\Ldap\Dnnull
int
array
stringnull
bool
int
int
\Zend\Ldap\Exception\LdapException |
|---|
arraysetOptions(array | \Traversable $options) : \Zend\Ldap\Ldap
Valid option keys: host port useSsl username password bindRequiresDn baseDn accountCanonicalForm accountDomainName accountDomainNameShort accountFilterFormat allowEmptyPassword useStartTls optReferrals tryUsernameSplit networkTimeout
array\TraversableOptions used in connecting, binding, etc.
\Zend\Ldap\Exception\LdapException |
|---|
\Zend\Ldap\LdapProvides a fluent interfaceupdate(string | \Zend\Ldap\Dn $dn, array $entry) : \Zend\Ldap\Ldap
string\Zend\Ldap\Dn
array
\Zend\Ldap\Exception\LdapException |
|---|
\Zend\Ldap\LdapProvides a fluid interfacecreateCollection(\Zend\Ldap\Collection\DefaultIterator $iterator, string | null $collectionClass) : \Zend\Ldap\Collection
\Zend\Ldap\Collection\DefaultIterator
stringnull
\Zend\Ldap\Exception\LdapException |
|---|
getAccount(string $acctname, array $attrs) : array
string
arrayAn array of names of desired attributes
\Zend\Ldap\Exception\LdapException |
|---|
arrayAn array of the attributes representing the accountgetAccountCanonicalForm() : int
intEither ACCTNAME_FORM_BACKSLASH, ACCTNAME_FORM_PRINCIPAL or ACCTNAME_FORM_USERNAME indicating the form usernames should be canonicalized to.getAccountDn(string $acctname) : string
stringThe name of the account
\Zend\Ldap\Exception\LdapException |
|---|
stringThe DN of the specified accountgetAccountDomainName() : string
stringThe account domain namegetAccountDomainNameShort() : string
stringThe short account domain namegetAccountFilter(string $acctname) : string
string
stringThe LDAP search filter for matching directory accountsgetAccountFilterFormat() : string
stringA format string for building an LDAP search filter to match an accountgetAllowEmptyPassword() : bool
boolAllow empty passwordsgetBindRequiresDn() : bool
boolBind requires DNgetChildrenDns(string | \Zend\Ldap\Dn $parentDn) : array
This method is used in recursive methods like {@see delete()} or {@see copy()}
string\Zend\Ldap\Dn
\Zend\Ldap\Exception\LdapException |
|---|
arrayof DNsgetHost() : string
stringThe hostname of the LDAP server being used to authenticate accountsgetNetworkTimeout() : int
intThe value for network timeout when connect to the LDAP server.getOptReferrals() : bool
boolOpt. ReferralsgetPassword() : string
stringThe default password for bindinggetPort() : int
intThe port of the LDAP server or 0 to indicate that no port value is setgetTryUsernameSplit() : bool
boolTry splitting the username into username and domaingetUseSsl() : bool
boolThe default SSL / TLS encrypted transport controlgetUseStartTls() : bool
boolThe default SSL / TLS encrypted transport controlgetUsername() : string
stringThe default acctname for bindingisPossibleAuthority(string $dname) : bool
stringThe domain name to check
boolsplitName(string $name, string $dname, string $aname) : void
stringThe name to split
stringThe resulting domain name (this is an out parameter)
stringThe resulting account name (this is an out parameter)
$boundUser : bool | null | string
$resource : resource
$connectString : string
ACCTNAME_FORM_BACKSLASH
ACCTNAME_FORM_DN
ACCTNAME_FORM_PRINCIPAL
ACCTNAME_FORM_USERNAME
SEARCH_SCOPE_BASE
SEARCH_SCOPE_ONE
SEARCH_SCOPE_SUB