__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\Traversable
Options 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\Ldap
Provides a fluid interfacebind(string $username, string $password) : \Zend\Ldap\Ldap
string
The username for authenticating the bind
string
The password for authenticating the bind
\Zend\Ldap\Exception\LdapException |
---|
\Zend\Ldap\Ldap
Provides 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.
string
The hostname of the LDAP server to connect to
int
The port number of the LDAP server to connect to
bool
Use SSL
bool
Use STARTTLS
int
The value for network timeout when connect to the LDAP server.
\Zend\Ldap\Exception\LdapException |
---|
\Zend\Ldap\Ldap
Provides 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\Ldap
Provides 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\Ldap
Provides 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 |
---|
int
delete(string | \Zend\Ldap\Dn $dn, bool $recursively) : \Zend\Ldap\Ldap
string\Zend\Ldap\Dn
bool
\Zend\Ldap\Exception\LdapException |
---|
\Zend\Ldap\Ldap
Provides a fluid interfacegetBaseDn() : string
string
getBoundUser() : 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
bool
null
string
getCanonicalAccountName(string $acctname, int $form) : string
string
The name to canonicalize
int
The desired form of canonicalization
\Zend\Ldap\Exception\LdapException |
---|
string
The 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
|
---|
array
getLastError(int $errorCode, array $errorMessages) : string
int
array
string
getLastErrorCode() : int
int
getNode(string | \Zend\Ldap\Dn $dn) : \Zend\Ldap\Node | null
string\Zend\Ldap\Dn
\Zend\Ldap\Exception\LdapException |
---|
\Zend\Ldap\Node
null
getOptions() : array
array
The current options.getResource() : resource
resource
The 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\Ldap
Provides 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\Ldap
Provides 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\Ldap
Provides 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\Ldap
Provides 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 |
---|
array
setOptions(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\Traversable
Options used in connecting, binding, etc.
\Zend\Ldap\Exception\LdapException |
---|
\Zend\Ldap\Ldap
Provides a fluent interfaceupdate(string | \Zend\Ldap\Dn $dn, array $entry) : \Zend\Ldap\Ldap
string\Zend\Ldap\Dn
array
\Zend\Ldap\Exception\LdapException |
---|
\Zend\Ldap\Ldap
Provides 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
array
An array of names of desired attributes
\Zend\Ldap\Exception\LdapException |
---|
array
An array of the attributes representing the accountgetAccountCanonicalForm() : int
int
Either ACCTNAME_FORM_BACKSLASH, ACCTNAME_FORM_PRINCIPAL or ACCTNAME_FORM_USERNAME indicating the form usernames should be canonicalized to.getAccountDn(string $acctname) : string
string
The name of the account
\Zend\Ldap\Exception\LdapException |
---|
string
The DN of the specified accountgetAccountDomainName() : string
string
The account domain namegetAccountDomainNameShort() : string
string
The short account domain namegetAccountFilter(string $acctname) : string
string
string
The LDAP search filter for matching directory accountsgetAccountFilterFormat() : string
string
A format string for building an LDAP search filter to match an accountgetAllowEmptyPassword() : bool
bool
Allow empty passwordsgetBindRequiresDn() : bool
bool
Bind 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 |
---|
array
of DNsgetHost() : string
string
The hostname of the LDAP server being used to authenticate accountsgetNetworkTimeout() : int
int
The value for network timeout when connect to the LDAP server.getOptReferrals() : bool
bool
Opt. ReferralsgetPassword() : string
string
The default password for bindinggetPort() : int
int
The port of the LDAP server or 0 to indicate that no port value is setgetTryUsernameSplit() : bool
bool
Try splitting the username into username and domaingetUseSsl() : bool
bool
The default SSL / TLS encrypted transport controlgetUseStartTls() : bool
bool
The default SSL / TLS encrypted transport controlgetUsername() : string
string
The default acctname for bindingisPossibleAuthority(string $dname) : bool
string
The domain name to check
bool
splitName(string $name, string $dname, string $aname) : void
string
The name to split
string
The resulting domain name (this is an out parameter)
string
The 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