Constructor.
Parameters: | array|Traversable – Options used in connecting, binding, etc. |
---|---|
Throws ExceptionLdapException: | |
Return the LDAP error number of the last LDAP command
Return type: | int |
---|
Return the LDAP error message of the last LDAP command
Parameters: |
|
---|---|
Return type: | string |
Get 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
Return type: | bool|null|string |
---|
Sets the options used in connecting, binding, etc.
Parameters: | array|Traversable – Options used in connecting, binding, etc. |
---|---|
Return type: | Ldap Provides a fluent interface |
Throws : | ExceptionLdapException |
Gets the base DN under which objects of interest are located
Return type: | string |
---|
@return integer Either ACCTNAME_FORM_BACKSLASH, ACCTNAME_FORM_PRINCIPAL or ACCTNAME_FORM_USERNAME indicating the form usernames should be canonicalized to.
@return string The short account domain name
@return string A format string for building an LDAP search filter to match an account
@return bool The default SSL / TLS encrypted transport control
@return bool Try splitting the username into username and domain
@return int The value for network timeout when connect to the LDAP server.
@param string $acctname
Return type: | string The LDAP search filter for matching directory accounts |
---|
@param string $name The name to split
Parameters: |
|
---|---|
Return type: | void |
@param string $acctname The name of the account
Return type: | string The DN of the specified account |
---|---|
Throws : | ExceptionLdapException |
@param string $dname The domain name to check
Return type: | bool |
---|
@param string $acctname The name to canonicalize
Parameters: | int – The desired form of canonicalization |
---|---|
Return type: | string The canonicalized name in the desired form |
Throws : | ExceptionLdapException |
@param string $acctname
Parameters: | array – An array of names of desired attributes |
---|---|
Return type: | array An array of the attributes representing the account |
Throws : | ExceptionLdapException |
@return Ldap Provides a fluent interface
To 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.
Parameters: |
|
---|---|
Return type: | Ldap Provides a fluent interface |
Throws : | ExceptionLdapException |
@param string $username The username for authenticating the bind
Parameters: | string – The password for authenticating the bind |
---|---|
Return type: | Ldap Provides a fluent interface |
Throws : | ExceptionLdapException |
A 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
Parameters: |
|
---|---|
Return type: | Collection |
Throws : | ExceptionLdapException |
Extension point for collection creation
Parameters: |
|
---|---|
Return type: | Collection |
Throws : | ExceptionLdapException |
Count items found by given filter.
Parameters: |
|
---|---|
Return type: | integer |
Throws : | ExceptionLdapException |
Count children for a given DN.
Parameters: | string|Dn – |
---|---|
Return type: | integer |
Throws : | ExceptionLdapException |
Check if a given DN exists.
Parameters: | string|Dn – |
---|---|
Return type: | bool |
Throws : | ExceptionLdapException |
Search 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
Parameters: |
|
---|---|
Return type: | array |
Throws : | ExceptionLdapException |
Get LDAP entry by DN
Parameters: |
|
---|---|
Return type: | array |
Throws : | null|ExceptionLdapException |
Prepares an ldap data entry array for insert/update operation
Parameters: | array – |
---|---|
Throws ExceptionInvalidArgumentException: | |
Return type: | void |
Add new information to the LDAP repository
Parameters: |
|
---|---|
Return type: | Ldap Provides a fluid interface |
Throws : | ExceptionLdapException |
Update LDAP registry
Parameters: |
|
---|---|
Return type: | Ldap Provides a fluid interface |
Throws : | ExceptionLdapException |
Save entry to LDAP registry.
Internally decides if entry will be updated to added by calling {@link exists()}.
Parameters: |
|
---|---|
Return type: | Ldap Provides a fluid interface |
Throws : | ExceptionLdapException |
Delete an LDAP entry
Parameters: |
|
---|---|
Return type: | Ldap Provides a fluid interface |
Throws : | ExceptionLdapException |
Moves a LDAP entry from one DN to another subtree.
Parameters: |
|
---|---|
Return type: | Ldap Provides a fluid interface |
Throws : | ExceptionLdapException |
Moves a LDAP entry from one DN to another DN.
This is an alias for {@link rename()}
Parameters: |
|
---|---|
Return type: | Ldap Provides a fluid interface |
Throws : | ExceptionLdapException |
Renames a LDAP entry from one DN to another DN.
This method implicitly moves the entry to another location within the tree.
Parameters: |
|
---|---|
Return type: | Ldap Provides a fluid interface |
Throws : | ExceptionLdapException |
Copies a LDAP entry from one DN to another subtree.
Parameters: |
|
---|---|
Return type: | Ldap Provides a fluid interface |
Throws : | ExceptionLdapException |
Copies a LDAP entry from one DN to another DN.
Parameters: |
|
---|---|
Return type: | Ldap Provides a fluid interface |
Throws : | ExceptionLdapException |
Returns the specified DN as a ZendLdapNode
Parameters: | string|Dn – |
---|---|
Return type: | Node|null |
Throws : | ExceptionLdapException |
Returns the base node as a ZendLdapNode
Return type: | Node |
---|---|
Throws : | ExceptionLdapException |