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

Ed Murray mail at avenuedesign.net
Thu Apr 15 20:32:58 PDT 2004


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';
         }



More information about the turba mailing list