[turba] Turba personal LDAP addressbook in ADS 2008

Thomas Feld thomas_feld at yahoo.de
Fri May 28 11:16:10 UTC 2010


I have a strange problem with turba (currently 2.3.4) 

I want to use Active Directory 2008 (former 2003) to store a personal
addressbook. Creating, reading and deleting objects works fine.
But when i try to edit an entry i get the following error :

HORDE [error] [turba] Änderung fehlgeschlagen: (67) Operation not allowed on RDN
[pid 7071 on line 92 of "/srv/www/htdocs/horde/turba/lib/Forms/EditContact.php"]

See the sources.php below

IMHO the similar error when trying to edit the CN attribute by itself.
Moving the contact entry to the local addressbook (pref.), editing there and
moving back to LDAP works fine, too.

When i tried to use the "recommended" mapping 'name' => 'displayname', it is not
possible to create an entry because the attribute CN is not available (maybe
emty)  :

HORDE [error] [turba] Failed to add an object: [50] "Insufficient access" DN:
,OU=testuser,OU=Contacts,DC=testing,DC=de ...



Thanks,

Thomas

===========================

sources.php


$_ldap_uid = Auth::getBareAuth();
$_ldap_basedn = 'DC=testing,DC=de';

$cfgSources['personal_ldap'] = array(
        'title' => _("My LDAP Address Book"),
        'type' => 'ldap',
     
        'params' => array(
                'server' => 'server.testing.de',
                'tls' => false,
                'port' => 389,
                'root' => 'OU=' . $_ldap_uid . ',OU=Contacts,' . $_ldap_basedn,
                'bind_dn' => $_ldap_uid . '@testing.de',
                'bind_password' => Auth::getCredential('password'),
                'sizelimit' => 0,
                'dn' => array('cn'),

                'objectclass' => array('top',
                'person',                         
                'organizationalPerson',
                'contact'),

                'scope' => 'sub',
                'charset' => 'utf-8',
                'version' => 3,
                'checkrequired' => false,
                'checkrequired_string' => ' ',
                'checksyntax' => false,
                'deref' => LDAP_DEREF_ALWAYS,
                'filter' => '&(cn=*)(mail=*)',
                'referrals' => 0,
        ),

        'map' => array(
                '__key' => 'dn',
                'name' => 'cn',
                'firstname' => 'givenName',
                'lastname' => 'sn',
                'email' => 'mail', 

        ),

        'search' => array(
                'name',
                'email',

        ),

        'strict' => array(
                'dn',

        ),

        'approximate' => array(
                'cn',
        ),

        'export' => true,
        'browse' => true,
 );




More information about the turba mailing list