Overview

Packages

  • Kolab
    • Server

Classes

  • Horde_Kolab_Server_Composite
  • Horde_Kolab_Server_Connection_File
  • Horde_Kolab_Server_Connection_Mock
  • Horde_Kolab_Server_Connection_Mock_Ldap
  • Horde_Kolab_Server_Connection_Mock_Search
  • Horde_Kolab_Server_Connection_Simpleldap
  • Horde_Kolab_Server_Connection_Splittedldap
  • Horde_Kolab_Server_Decorator_Clean
  • Horde_Kolab_Server_Decorator_Count
  • Horde_Kolab_Server_Decorator_Log
  • Horde_Kolab_Server_Decorator_Map
  • Horde_Kolab_Server_Exception
  • Horde_Kolab_Server_Exception_Bindfailed
  • Horde_Kolab_Server_Exception_Novalue
  • Horde_Kolab_Server_Factory
  • Horde_Kolab_Server_Ldap
  • Horde_Kolab_Server_Ldap_Changes
  • Horde_Kolab_Server_Ldap_Filtered
  • Horde_Kolab_Server_Ldap_Standard
  • Horde_Kolab_Server_List_Base
  • Horde_Kolab_Server_Object_Attribute_Base
  • Horde_Kolab_Server_Object_Attribute_Createtimestamp
  • Horde_Kolab_Server_Object_Attribute_Createtimestampdate
  • Horde_Kolab_Server_Object_Attribute_Decorator
  • Horde_Kolab_Server_Object_Attribute_Default
  • Horde_Kolab_Server_Object_Attribute_Empty
  • Horde_Kolab_Server_Object_Attribute_External
  • Horde_Kolab_Server_Object_Attribute_Field
  • Horde_Kolab_Server_Object_Attribute_Firstnamelastname
  • Horde_Kolab_Server_Object_Attribute_Guid
  • Horde_Kolab_Server_Object_Attribute_Id
  • Horde_Kolab_Server_Object_Attribute_Internal
  • Horde_Kolab_Server_Object_Attribute_Locked
  • Horde_Kolab_Server_Object_Attribute_Modifytimestamp
  • Horde_Kolab_Server_Object_Attribute_Modifytimestampdate
  • Horde_Kolab_Server_Object_Attribute_Objectclass
  • Horde_Kolab_Server_Object_Attribute_Openldapaci
  • Horde_Kolab_Server_Object_Attribute_Required
  • Horde_Kolab_Server_Object_Attribute_Single
  • Horde_Kolab_Server_Object_Attribute_Value
  • Horde_Kolab_Server_Object_Attribute_Writelock
  • Horde_Kolab_Server_Object_Base
  • Horde_Kolab_Server_Object_Factory
  • Horde_Kolab_Server_Object_Groupofnames
  • Horde_Kolab_Server_Object_Hash
  • Horde_Kolab_Server_Object_Inetorgperson
  • Horde_Kolab_Server_Object_Kolab
  • Horde_Kolab_Server_Object_Kolab_Address
  • Horde_Kolab_Server_Object_Kolab_Administrator
  • Horde_Kolab_Server_Object_Kolab_Adminrole
  • Horde_Kolab_Server_Object_Kolab_Distlist
  • Horde_Kolab_Server_Object_Kolab_Domainmaintainer
  • Horde_Kolab_Server_Object_Kolab_Maintainer
  • Horde_Kolab_Server_Object_Kolab_User
  • Horde_Kolab_Server_Object_Kolabgermanbankarrangement
  • Horde_Kolab_Server_Object_Kolabgroupofnames
  • Horde_Kolab_Server_Object_Kolabinetorgperson
  • Horde_Kolab_Server_Object_Kolabpop3account
  • Horde_Kolab_Server_Object_Kolabsharedfolder
  • Horde_Kolab_Server_Object_Mcached
  • Horde_Kolab_Server_Object_Organizationalperson
  • Horde_Kolab_Server_Object_Person
  • Horde_Kolab_Server_Object_Top
  • Horde_Kolab_Server_Objects_Base
  • Horde_Kolab_Server_Query_Element_And
  • Horde_Kolab_Server_Query_Element_Approx
  • Horde_Kolab_Server_Query_Element_Begins
  • Horde_Kolab_Server_Query_Element_Contains
  • Horde_Kolab_Server_Query_Element_Ends
  • Horde_Kolab_Server_Query_Element_Equals
  • Horde_Kolab_Server_Query_Element_Greater
  • Horde_Kolab_Server_Query_Element_Group
  • Horde_Kolab_Server_Query_Element_Less
  • Horde_Kolab_Server_Query_Element_Mapped
  • Horde_Kolab_Server_Query_Element_Not
  • Horde_Kolab_Server_Query_Element_Or
  • Horde_Kolab_Server_Query_Element_Single
  • Horde_Kolab_Server_Query_Ldap
  • Horde_Kolab_Server_Result_Ldap
  • Horde_Kolab_Server_Schema_Base
  • Horde_Kolab_Server_Schema_Decorator_Cache
  • Horde_Kolab_Server_Search_Base
  • Horde_Kolab_Server_Search_Operation_Addressesforuidormail
  • Horde_Kolab_Server_Search_Operation_Attributes
  • Horde_Kolab_Server_Search_Operation_Base
  • Horde_Kolab_Server_Search_Operation_Children
  • Horde_Kolab_Server_Search_Operation_Constraint_Single
  • Horde_Kolab_Server_Search_Operation_Constraint_Strict
  • Horde_Kolab_Server_Search_Operation_Groupsformember
  • Horde_Kolab_Server_Search_Operation_Guid
  • Horde_Kolab_Server_Search_Operation_Guidforalias
  • Horde_Kolab_Server_Search_Operation_Guidforcn
  • Horde_Kolab_Server_Search_Operation_Guidforkolabusers
  • Horde_Kolab_Server_Search_Operation_Guidformail
  • Horde_Kolab_Server_Search_Operation_Guidformailoralias
  • Horde_Kolab_Server_Search_Operation_Guidforuid
  • Horde_Kolab_Server_Search_Operation_Guidforuidormail
  • Horde_Kolab_Server_Search_Operation_Guidforuidormailoralias
  • Horde_Kolab_Server_Search_Operation_Mailforuidormail
  • Horde_Kolab_Server_Search_Operation_Restrictgroups
  • Horde_Kolab_Server_Search_Operation_Restrictkolab
  • Horde_Kolab_Server_Structure_Attribute_Double
  • Horde_Kolab_Server_Structure_Attribute_Value
  • Horde_Kolab_Server_Structure_Base
  • Horde_Kolab_Server_Structure_Kolab
  • Horde_Kolab_Server_Structure_Ldap

Interfaces

  • Horde_Kolab_Server_Connection_Interface
  • Horde_Kolab_Server_Interface
  • Horde_Kolab_Server_List_Interface
  • Horde_Kolab_Server_Object_Attribute_Interface
  • Horde_Kolab_Server_Object_Interface
  • Horde_Kolab_Server_Object_Searches
  • Horde_Kolab_Server_Objects_Interface
  • Horde_Kolab_Server_Query_Element_Interface
  • Horde_Kolab_Server_Query_Interface
  • Horde_Kolab_Server_Result_Interface
  • Horde_Kolab_Server_Schema_Interface
  • Horde_Kolab_Server_Search_Interface
  • Horde_Kolab_Server_Search_Operation_Interface
  • Horde_Kolab_Server_Structure_Attribute_Interface
  • Horde_Kolab_Server_Structure_Interface
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Kolab_Server_Connection_Mock_Ldap

This class provides a class for testing the Kolab Server DB.

Copyright 2008-2012 Horde LLC (http://www.horde.org/)

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Package: Kolab\Server
Category: Kolab
License: LGPL 2.1
Author: Gunnar Wrobel wrobel@pardus.de
Link: http://pear.horde.org/index.php?package=Kolab_Server
Located at Horde/Kolab/Server/Connection/Mock/Ldap.php
Methods summary
public
# __construct( array $params, array $data )

Constructor.

Constructor.

Parameters

$params
Connection parameters.
$data
Mockup LDAP data.
public null
# bind( string $dn = '', string $pw = '' )

Binds the LDAP connection with a specific user and pass.

Binds the LDAP connection with a specific user and pass.

Parameters

$dn
DN to bind with
$pw
Password associated to this DN.

Returns

null

Throws

Horde_Kolab_Server_Exception

If the user does not exit, he has no password, provided an incorrect password or anonymous binding is not allowed.

public Horde_Ldap_Entry|Horde_Ldap_Error
# getEntry( string $dn, array $attr = array() )

Get a specific entry based on the DN

Get a specific entry based on the DN

Parameters

$dn
DN of the entry that should be fetched
$attr
Array of Attributes to select. If ommitted, all attributes are fetched.

Returns

Horde_Ldap_Entry|Horde_Ldap_Error
Reference to a Horde_Ldap_Entry object or Horde_Ldap_Error object
public array
# search( string $base = null, string $filter = null, string $params = array() )

Search for object data.

Search for object data.

Parameters

$base
The search base
$filter
The LDAP search filter.
$params
Additional search parameters.

Returns

array
The result array.

Throws

Horde_Kolab_Server_Exception

If the search operation encountered a problem.

public mixed
# getEntries( array $result )

Return the entries of a result.

Return the entries of a result.

Parameters

$result
The LDAP search result.

Returns

mixed
The entries of the result or false.
public array
# parse( string $filter )

Parse LDAP filter. Partially derived from Net_LDAP_Filter.

Parse LDAP filter. Partially derived from Net_LDAP_Filter.

Parameters

$filter
The filter string.

Returns

array
An array of the parsed filter.

Throws

Horde_Kolab_Server_Exception

If parsing the filter expression fails.

public array
# parseSub( string $filter )

Parse a LDAP subfilter.

Parse a LDAP subfilter.

Parameters

$filter
The subfilter string.

Returns

array
An array of the parsed subfilter.

Throws

Horde_Kolab_Server_Exception
public array
# doSearch( array $filter, array $attributes = null )

Perform the search.

Perform the search.

Parameters

$filter
Filter criteria-
$attributes
<p>Restrict the search result to these attributes.</p>

Returns

array
A LDAP serach result.

Throws

Horde_Kolab_Server_Exception

If the search operation is not available.

public Horde_Ldap_Error|true
# add( Horde_Ldap_Entry $entry )

Add a new entryobject to a directory.

Add a new entryobject to a directory.

Parameters

$entry
Horde_Ldap_Entry

Returns

Horde_Ldap_Error|true
Horde_Ldap_Error object or true
public Horde_Ldap_Error|true
# modify( string|Horde_Ldap_Entry $entry, array $data = array() )

Modify an ldapentry directly on the server

Modify an ldapentry directly on the server

Parameters

$entry
$entry DN-string or Horde_Ldap_Entry
$data
$parms Array of changes

Returns

Horde_Ldap_Error|true
Horde_Ldap_Error object or true
public null
# delete( string $uid )

Delete an object.

Delete an object.

Parameters

$uid
The UID of the object to be deleted.

Returns

null

Throws

Horde_Kolab_Server_Exception
public null
# move( string $uid, string $new )

Rename an object.

Rename an object.

Parameters

$uid
The UID of the object to be renamed.
$new
The new UID of the object.

Returns

null

Throws

Horde_Kolab_Server_Exception
public
# schema( )
API documentation generated by ApiGen