Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
SEARCH_SCOPE_SUB = '1'
Details SEARCH_SCOPE_ONE = '2'
Details SEARCH_SCOPE_BASE = '3'
Details ACCTNAME_FORM_DN = '1'
Details ACCTNAME_FORM_USERNAME = '2'
Details ACCTNAME_FORM_BACKSLASH = '3'
Details ACCTNAME_FORM_PRINCIPAL = '4'
Detailsboolean|null|string $_boundUser = 'false'FALSE if no user is bound to the LDAP resource NULL if there has been an anonymous bind username of the currently bound user
Detailsstring $_connectString = ''String used with ldap_connect for error handling purposes.
Detailsarray $_options = 'null'The options used in connecting, binding, etc.
Detailsresource $_resource = 'null'The raw LDAP extension resource.
DetailsZend_Ldap_Node $_rootDse = 'null'Caches the RootDSE
DetailsZend_Ldap_Node $_schema = 'null'Caches the schema
Details__construct(
array|Zend_Config $options
=
array
)
:
voidConstructor.
Details__destruct(
)
:
voidDestructor.
Details_createCollection(
Zend_Ldap_Collection_Iterator_Default $iterator, string|null $collectionClass
)
:
Zend_Ldap_CollectionExtension point for collection creation
Details_getAccount(
$acctname, array $attrs
=
null
)
:
array
Details_getAccountCanonicalForm(
)
:
integer
Details_getAccountDn(
string $acctname
)
:
string
Details_getAccountDomainName(
)
:
string
Details_getAccountDomainNameShort(
)
:
string
Details_getAccountFilter(
$acctname
)
:
string
Details_getAccountFilterFormat(
)
:
string
Details_getAllowEmptyPassword(
)
:
boolean
Details_getBindRequiresDn(
)
:
boolean
Details_getChildrenDns(
string|Zend_Ldap_Dn $parentDn
)
:
arrayRetrieve the immediate children DNs of the given $parentDn
This method is used in recursive methods like {@see delete()} or {@see copy()}
Details_getHost(
)
:
string
Details_getOptReferrals(
)
:
boolean
Details_getPassword(
)
:
string
Details_getPort(
)
:
int
Details_getTryUsernameSplit(
)
:
boolean
Details_getUseSsl(
)
:
boolean
Details_getUseStartTls(
)
:
boolean
Details_getUsername(
)
:
string
Details_isPossibleAuthority(
string $dname
)
:
boolean
Details_splitName(
string $name, string $dname, string $aname
)
:
void
Detailsadd(
string|Zend_Ldap_Dn $dn, array $entry
)
:
Zend_LdapAdd new information to the LDAP repository
Detailsbind(
string $username
=
null, string $password
=
null
)
:
Zend_Ldap
Detailsconnect(
string $host
=
null, int $port
=
null, boolean $useSsl
=
null, boolean $useStartTls
=
null
)
:
Zend_LdapTo connect using SSL it seems the client tries to verify the server certificate by default. 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.
Detailscopy(
string|Zend_Ldap_Dn $from, string|Zend_Ldap_Dn $to, boolean $recursively
=
false
)
:
Zend_LdapCopies a LDAP entry from one DN to another DN.
DetailscopyToSubtree(
string|Zend_Ldap_Dn $from, string|Zend_Ldap_Dn $to, boolean $recursively
=
false
)
:
Zend_LdapCopies a LDAP entry from one DN to another subtree.
Detailscount(
string|Zend_Ldap_Filter_Abstract $filter, string|Zend_Ldap_Dn|null $basedn
=
null, integer $scope
=
self
)
:
integerCount items found by given filter.
DetailscountChildren(
string|Zend_Ldap_Dn $dn
)
:
integerCount children for a given DN.
Detailsdelete(
string|Zend_Ldap_Dn $dn, boolean $recursively
=
false
)
:
Zend_LdapDelete an LDAP entry
Detailsdisconnect(
)
:
Zend_Ldap
Detailsexists(
string|Zend_Ldap_Dn $dn
)
:
booleanCheck if a given DN exists.
DetailsexplodeDn(
string $dn, array $keys
=
null, array $vals
=
null
)
:
boolean
DetailsfilterEscape(
string $str
)
:
string
DetailsgetBaseDn(
)
:
stringGets the base DN under which objects of interest are located
DetailsgetBaseNode(
)
:
Zend_Ldap_NodeReturns the base node as a Zend_Ldap_Node
DetailsgetBoundUser(
)
:
false|null|stringGet the currently bound user
FALSE if no user is bound to the LDAP resource NULL if there has been an anonymous bind username of the currently bound user
DetailsgetCanonicalAccountName(
string $acctname, $form
=
0
)
:
string
DetailsgetEntry(
string|Zend_Ldap_Dn $dn, array $attributes
=
array, boolean $throwOnNotFound
=
false
)
:
arrayGet LDAP entry by DN
DetailsgetLastError(
int $errorCode
=
null, array $errorMessages
=
null
)
:
stringReturn the LDAP error message of the last LDAP command
DetailsgetLastErrorCode(
)
:
intReturn the LDAP error number of the last LDAP command
DetailsgetNode(
string|Zend_Ldap_Dn $dn
)
:
Zend_Ldap_Node|nullReturns the specified DN as a Zend_Ldap_Node
DetailsgetOptions(
)
:
array
DetailsgetResource(
)
:
resource
DetailsgetRootDse(
)
:
Zend_Ldap_Node_RootDseReturns the RootDSE
DetailsgetSchema(
)
:
Zend_Ldap_Node_SchemaReturns the schema
Detailsmove(
string|Zend_Ldap_Dn $from, string|Zend_Ldap_Dn $to, boolean $recursively
=
false, boolean $alwaysEmulate
=
false
)
:
Zend_LdapMoves a LDAP entry from one DN to another DN.
This is an alias for {@link rename()}
DetailsmoveToSubtree(
string|Zend_Ldap_Dn $from, string|Zend_Ldap_Dn $to, boolean $recursively
=
false, boolean $alwaysEmulate
=
false
)
:
Zend_LdapMoves a LDAP entry from one DN to another subtree.
DetailsprepareLdapEntryArray(
array $entry
)
:
voidPrepares an ldap data entry array for insert/update operation
Detailsrename(
string|Zend_Ldap_Dn $from, string|Zend_Ldap_Dn $to, boolean $recursively
=
false, boolean $alwaysEmulate
=
false
)
:
Zend_LdapRenames a LDAP entry from one DN to another DN.
This method implicitely moves the entry to another location within the tree.
Detailssave(
string|Zend_Ldap_Dn $dn, array $entry
)
:
Zend_LdapSave entry to LDAP registry.
Internally decides if entry will be updated to added by calling {@link exists()}.
Detailssearch(
string|Zend_Ldap_Filter_Abstract|array $filter, string|Zend_Ldap_Dn|null $basedn
=
null, integer $scope
=
self, array $attributes
=
array, string|null $sort
=
null, string|null $collectionClass
=
null, integer $sizelimit
=
0, integer $timelimit
=
0
)
:
Zend_Ldap_CollectionA global LDAP search routine for finding information.
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
DetailssearchEntries(
string|Zend_Ldap_Filter_Abstract|array $filter, string|Zend_Ldap_Dn|null $basedn
=
null, integer $scope
=
self, array $attributes
=
array, string|null $sort
=
null, boolean $reverseSort
=
false, integer $sizelimit
=
0, integer $timelimit
=
0
)
:
arraySearch LDAP registry for entries matching filter and optional attributes
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
DetailssetOptions(
array|Zend_Config $options
)
:
Zend_LdapSets the options used in connecting, binding, etc.
Valid option keys: host port useSsl username password bindRequiresDn baseDn accountCanonicalForm accountDomainName accountDomainNameShort accountFilterFormat allowEmptyPassword useStartTls optRefferals tryUsernameSplit
Detailsupdate(
string|Zend_Ldap_Dn $dn, array $entry
)
:
Zend_LdapUpdate LDAP registry
Details