[sync] Insufficient Access Error when attempting to sync to personal_ldap

Bill Day williamson.day at gmail.com
Sun Sep 7 05:22:52 UTC 2008


I am using synthesis on a Palm TX to attempt to sync to my personal ldap
address book.  This is something I have had working in the past, but now I
am getting an "insufficient access" error message (see below).  I am able to
browse my ldap directory with luma, so I *think* the problem is not with
ldap.  I have included the relevant portion of my sources.php file below.

I updated CVS within the past hour.

Thanks for any help you can offer.

Sincerely,

Bill Day



Sep 07 00:25:07 HORDE [error] [horde] Error in adding client entry due to
replace request: Failed to add an object: [50] "Insufficient access" DN:
uid=20080907002507.13614qpi3o2z0ias at williamsonday.org,ou=billday,ou=Personal,ou=contacts,dc=williamsonday,dc=local
(attributes:
[a:9:{s:2:"sn";s:5:"Gregg";s:9:"givenname";s:3:"Tom";s:2:"cn";s:10:"Gregg,
Tom";s:16:"businesscategory";s:8:"Personal";s:13:"postaladdress";s:62:"P.O.
Box 393Newcastle, ME 04553United States of America$
04553";s:10:"postalcode";s:5:"04553";s:9:"turbaType";s:6:"Object";s:3:"uid";s:49:"
20080907002507.13614qpi3o2z0ias at williamsonday.org";s:11:"objectclass";a:6:{i:0;s:3:"top";i:1;s:6:"person";i:2;s:12:"turbaContact";i:3;s:13:"inetOrgPerson";i:4;s:8:"calEntry";i:5;s:20:"organizationalPerson";}}]).Charset:UTF-8
[pid 8030 on line 332 of "/usr/share/php/SyncML/Sync.php"]


/**
 * A personal LDAP address book. This assumes that the login is
 * <username>@domain.com and that the users are stored on the same LDAP
 * server. Thus it is possible to bind with the username and password from
the
 * user. For more info; please refer to the docs/LDAP file in the Turba
 * distribution.
 *
 * To store distribution lists in the LDAP directory, you'll need to include
 * horde/scripts/ldap/horde.schema in your LDAP configuration.
 *
 * To store freebusy information in the LDAP directory, you'll need to
include
 * turba/scripts/ldap/rfc2739.schema in your LDAP configuration.
 */
/* First we need to get the uid. */
 $_ldap_uid = Auth::getBareAuth();
 $_ldap_basedn = 'dc=williamsonday,dc=local';
 $cfgSources['personal_ldap'] = array(
     'title' => _("Personal Address Book"),
    'type' => 'ldap',
     'params' => array(
         'server' => 'localhost',
         'tls' => false,
         'root' => 'ou=' . $_ldap_uid . ',ou=Personal,ou=contacts,' .
$_ldap_basedn,
         'bind_dn' => 'uid=' . $_ldap_uid . ',ou=accounts,' . $_ldap_basedn,
     'bind_password' => Auth::getCredential('password'),
         'dn' => array('uid'),
         'objectclass' => array('top',
                               'person',
                                 'turbaContact',
                                'inetOrgPerson',
                                 'calEntry',
                                'organizationalPerson'),
         'scope' => 'one',
         'charset' => 'utf-8',
         'version' => 3
    ),
     'map' => array(
         '__key' => 'dn',
         '__uid' => 'uid',

         // From horde.schema:
         '__type' => 'turbaType',
         '__members' => 'turbaMembers',

         'name' => 'cn',
         'email' => 'mail',
     "firstname" => "givenname",
         'lastname' => 'sn',
         'title' => 'title',
         'company' => 'organizationname',
         'businessCategory' => 'businesscategory',
         'workAddress' => 'postaladdress',
         'workPostalCode' => 'postalcode',
         'workPhone' => 'telephonenumber',
         'fax' => 'facsimiletelephonenumber',
         'homeAddress' => 'homepostaladdress',
         'homePhone' => 'homephone',
         'cellPhone' => 'mobile',
         'notes' => 'description',

         // Evolution interopt attributes: (those that do not require the
         // evolution.schema)
         'office' => 'roomNumber',
         'department' => 'ou',
        'nickname' => 'displayName',
         'website' => 'labeledURI',

         // These are not stored on the LDAP server.
         'pgpPublicKey' => 'object_pgppublickey',
         'smimePublicKey' => 'object_smimepublickey',

         // From rfc2739.schema:
          'freebusyUrl' => 'calFBURL',
     ),
     'search' => array(
        'name',
         'email',
         'businessCategory',
         'title',
         'homePhone',
         'workPhone',
         'cellPhone',
         'homeAddress'
     ),
     'strict' => array(
         'dn',
     ),
     'approximate' => array(
         'cn',
     ),
     'export' => true,
     'browse' => true,
 );



-- 
Bill Day
williamson.day at gmail.com
PGP Fingerprint: EE5D DE55 9EF1 E012 7417
A5F1 1D7D 0847 7785 1146


More information about the sync mailing list