[turba] Re: problem with duplicate dn with LDAP backend (andreas oster)

andreas oster aoster at novanetwork.de
Thu Apr 15 23:35:15 PDT 2004


Ed Murray wrote:
> Hi Andreas,
> 	I am very interested in your code. There appears to be a line that has
> been chopped off. Could you repost again please. Take note of the line
> that starts with:
> 
> $this->driver->makeKey(
> 
> 
> turba/lib/Source.php
> 
>      /**
>       * Adds a new entry to the contact source.
>       *
>       * @param array $attributes  The attributes of the new object to
> add.
>       *
>       * @return mixed             The new __key value on success, or a
>       *                           PEAR_Error object on failure.
>       */
>      function addObject($attributes)
>      {
>          if ($this->readonly) {
>              return false;
>          }
> 
>          // Always generate a new key.
>          $attributes['__key'] = 
> $this->driver->makeKey($this->toDriverKeys($attri
> 
>          if (!isset($attributes['__type'])) {
>              $attributes['__type'] = 'Object';
>          }
> 
Dear Ed,

this is actually from the original code, I have only posted the whole
function for better finding :) The only changes in Sources.php is the
line
       $key = $result;

best regards

Andreas



More information about the turba mailing list