Returns a list of allowed email addresses for the given user.
array|PEAR_Error
addrsForIdOrMail
(string $id)
-
string
$id: The users primary mail address or ID.
Redefinition of:
- Horde_Kolab_Server::addrsForIdOrMail()
- Returns a list of allowed email addresses for the given user.
Build a piece of a search query.
Taken from the Turba LDAP driver.
string
&buildSearchQuery
(array $criteria)
-
array
$criteria: The array of criteria.
Return the root of the UID values on this server.
string
getBaseUid
()
Redefinition of:
- Horde_Kolab_Server::getBaseUid()
- Return the root of the UID values on this server.
Get the mail addresses for the group of this object.
array|PEAR_Error
getGroupAddresses
(string $uid)
-
string
$uid: The UID of the object to fetch.
Get the groups for this object.
array|PEAR_Error
getGroups
(string $uid)
-
string
$uid: The UID of the object to fetch.
Redefinition of:
- Horde_Kolab_Server::getGroups()
- Get the groups for this object
Identify the GID for the first group found using a specified attribute value.
mixed|PEAR_Error
gidForAttr
(string $attr, string $value, [int $restrict = KOLAB_SERVER_RESULT_SINGLE])
-
string
$attr: The name of the attribute used for searching.
-
string
$value: The desired value of the attribute.
-
int
$restrict: A KOLAB_SERVER_RESULT_* result restriction.
Redefinition of:
- Horde_Kolab_Server::gidForAttr()
- Identify the GID for the first group found using a specified attribute value.
Identify the primary mail attribute for the first object found with the given ID or mail.
mixed|PEAR_Error
mailForIdOrMail
(string $id)
-
string
$id: Search for objects with this ID/mail.
Redefinition of:
- Horde_Kolab_Server::mailForIdOrMail()
- Identify the primary mail attribute for the first object found with the given ID or mail.
Map attributes defined within this library into their real world counterparts.
NULL
mapAttributes
( &$data, array $data)
-
array
$data: The data to be written.
-
&$data
Map a single attribute key defined within this library into its real world counterpart.
The
mapField
(array $field)
-
array
$field: The attribute name.
Map attribute keys defined within this library into their real world counterparts.
NULL
mapKeys
( &$keys, array $keys)
-
array
$keys: The attribute keys.
-
&$keys
Is the given UID member of the group with the given mail address?
boolen|PEAR_Error
memberOfGroupAddress
(string $uid, string $mail)
-
string
$uid: UID of the user.
-
string
$mail: Search the group with this mail address.
Redefinition of:
- Horde_Kolab_Server::memberOfGroupAddress()
- Is the given UID member of the group with the given mail address?
Save an object.
boolean|PEAR_Error
save
(string $dn, array $data)
-
string
$dn: The DN of the object.
-
array
$data: The data for the object.
Redefinition of:
- Horde_Kolab_Server::save()
- Stub for saving object data.
Build a search query.
Taken from the Turba LDAP driver.
string
searchQuery
(array $criteria)
-
array
$criteria: The array of criteria.
Identify the UID for the first object found using a specified attribute value.
mixed|PEAR_Error
uidForAttr
(string $attr, string $value, [int $restrict = KOLAB_SERVER_RESULT_SINGLE])
-
string
$attr: The name of the attribute used for searching.
-
string
$value: The desired value of the attribute.
-
int
$restrict: A KOLAB_SERVER_RESULT_* result restriction.
Redefinition of:
- Horde_Kolab_Server::uidForAttr()
- Identify the UID for the first user found using a specified attribute value.
Identify the UID for the first object found with the given ID or mail.
mixed|PEAR_Error
uidForIdOrMail
(string $id)
-
string
$id: Search for objects with this ID/mail.
Redefinition of:
- Horde_Kolab_Server::uidForIdOrMail()
- Identify the UID for the first object found with the given ID or mail.
Return the UID for a given primary mail, ID, or alias.
mixed|PEAR_Error
uidForMailAddress
(string $mail)
-
string
$mail: A valid mail address for the user.
Redefinition of:
- Horde_Kolab_Server::uidForMailAddress()
- Return the UID for a given primary mail, uid, or alias.
Disconnect from LDAP.
NULL
unbind
()
Redefined in descendants as:
Map attributes defined within this library their their real world counterparts.
NULL
unmapAttributes
( &$data, array $data)
-
array
$data: The data that has been read and needs to be mapped.
-
&$data
Add a new object
boolean
_add
(string $dn, array $data)
-
string
$dn: The DN of the object to be added.
-
array
$data: The attributes of the object to be added.
Redefined in descendants as:
Identify attributes for the first object found using a filter.
mixed|PEAR_Error
_attrsForFilter
(string $filter, array $attrs, [int $restrict = KOLAB_SERVER_RESULT_SINGLE])
-
string
$filter: The LDAP filter to use.
-
array
$attrs: The attributes to retrieve.
-
int
$restrict: A KOLAB_SERVER_RESULT_* result restriction.
Get the attributes of the first result entry.
mixed|PEAR_Error
_attrsFromResult
(array $result, array $attrs, [int $restrict = KOLAB_SERVER_RESULT_SINGLE])
-
array
$result: The LDAP search result.
-
array
$attrs: The attributes to retrieve.
-
int
$restrict: A KOLAB_SERVER_RESULT_* result restriction.
Binds the LDAP connection with a specific user and pass.
boolean|PEAR_Error
_bind
([string $dn = false], [string $pw = ''])
-
string
$dn: DN to bind with
-
string
$pw: Password associated to this DN.
Redefined in descendants as:
Connects to the LDAP server.
boolean|PEAR_Error
_connect
([string $server = null], [string $base_dn = null])
-
string
$server: LDAP server URL.
-
string
$base_dn: LDAP server base DN.
Count the number of results.
int
_count
(string $result)
-
string
$result: The LDAP search result.
Redefined in descendants as:
Determine the type of a Kolab object.
int
_determineType
(string $dn)
-
string
$dn: The DN of the object to examine.
Redefinition of:
- Horde_Kolab_Server::_determineType()
- Determine the type of a Kolab object.
Identify the DN for the first object found using a filter.
mixed|PEAR_Error
_dnForFilter
(string $filter, [int $restrict = KOLAB_SERVER_RESULT_SINGLE])
-
string
$filter: The LDAP filter to use.
-
int
$restrict: A KOLAB_SERVER_RESULT_* result restriction.
Identify the DN of the first result entry.
string|PEAR_Error
_dnFromResult
(array $result, [int $restrict = KOLAB_SERVER_RESULT_SINGLE])
-
array
$result: The LDAP search result.
-
int
$restrict: A KOLAB_SERVER_RESULT_* result restriction.
Return the current LDAP error number.
int
_errno
()
Redefined in descendants as:
Return the current LDAP error description.
string
_error
()
Redefined in descendants as:
Return the first entry of a result.
resource
_firstEntry
(resource $result)
-
resource
$result: The LDAP search result.
Redefined in descendants as:
Generates a UID for the given information.
string|PEAR_Error
_generateUid
(string $type, string $id, array $info)
-
string
$type: The type of the object to create.
-
string
$id: The id of the object.
-
array
$info: Any additional information about the object to create.
Redefinition of:
- Horde_Kolab_Server::_generateUid()
- Generates a UID for the given information.
Return the attributes of an entry.
array
_getAttributes
(resource $entry)
-
resource
$entry: The LDAP entry.
Redefined in descendants as:
Return the dn of an entry.
string
_getDn
(resource $entry)
-
resource
$entry: The LDAP entry.
Redefined in descendants as:
Return the DNs of a result.
array
_getDns
(resource $result, [int $from = -1], [int $to = -1])
-
resource
$result: The LDAP search result.
-
int
$from: Only return results after this position.
-
int
$to: Only return results until this position.
Return the entries of a result.
array
_getEntries
(resource $result, [int $from = -1], [int $to = -1])
-
resource
$result: The LDAP search result.
-
int
$from: Only return results after this position.
-
int
$to: Only return results until this position.
Redefined in descendants as:
Get the LDAP object classes for the given DN.
array|PEAR_Error
_getObjectClasses
(string $dn)
-
string
$dn: DN of the object.
List all objects of a specific type
array|PEAR_Error
_listObjects
(string $type, [array $params = null])
-
string
$type: The type of the objects to be listed
-
array
$params: Additional parameters.
Redefinition of:
- Horde_Kolab_Server::_listObjects()
- List all objects of a specific type
Return the next entry of a result.
resource
_nextEntry
(resource $entry)
-
resource
$entry: The current LDAP entry.
Redefined in descendants as:
Read object data.
array|PEAR_Error
_read
(string $dn, [string $attrs = null])
-
string
$dn: The object to retrieve.
-
string
$attrs: Restrict to these attributes.
Redefinition of:
- Horde_Kolab_Server::_read()
- Stub for reading object data.
Redefined in descendants as:
Search for an object.
array|PEAR_Error
_search
(string $filter, [array $attributes = null], [string $base = null])
-
string
$filter: Filter criteria.
-
array
$attributes: Restrict the search result to these attributes.
-
string
$base: The base location for searching.
Redefined in descendants as:
Sort the entries of a result.
boolean
_sort
(resource $result, string $attribute)
-
resource
$result: The LDAP search result.
-
string
$attribute: The attribute used for sorting.
Redefined in descendants as:
Inherited Methods
Inherited From Horde_Kolab_Server
Horde_Kolab_Server::Horde_Kolab_Server()
Horde_Kolab_Server::add()
Horde_Kolab_Server::addrsForIdOrMail()
Horde_Kolab_Server::factory()
Horde_Kolab_Server::fetch()
Horde_Kolab_Server::generateUid()
Horde_Kolab_Server::getBaseUid()
Horde_Kolab_Server::getGroups()
Horde_Kolab_Server::gidForAttr()
Horde_Kolab_Server::gidForMail()
Horde_Kolab_Server::listHash()
Horde_Kolab_Server::listObjects()
Horde_Kolab_Server::mailForIdOrMail()
Horde_Kolab_Server::memberOfGroupAddress()
Horde_Kolab_Server::read()
Horde_Kolab_Server::save()
Horde_Kolab_Server::singleton()
Horde_Kolab_Server::store()
Horde_Kolab_Server::uidForAlias()
Horde_Kolab_Server::uidForAttr()
Horde_Kolab_Server::uidForId()
Horde_Kolab_Server::uidForIdOrMail()
Horde_Kolab_Server::uidForMail()
Horde_Kolab_Server::uidForMailAddress()
Horde_Kolab_Server::uidForMailOrAlias()
Horde_Kolab_Server::uidForMailOrIdOrAlias()
Horde_Kolab_Server::_determineType()
Horde_Kolab_Server::_generateUid()
Horde_Kolab_Server::_listObjects()
Horde_Kolab_Server::_read()