[turba] turba 2.0.5 / create distribution list

Gianluca Bosco g.bosco at bitache.net
Thu Dec 29 05:41:35 PST 2005


>> ... as stupid as it may sound...
>>
>> ... but how can I create "distribution list" with turba 2.0.5?
>>
>> I read the Users' FAQ, the I could not find any "new list" options, in
>> the drop-down browse window.
>
> You don't have write access to the address book source then.

I do have write access to the address book, since I can populate it 
with my address recipients.

My sources.php is configured as follow:

************

if (Util::extensionExists('ldap')) {

$uid = Auth::getBareAuth();
$basedn = 'dc=bit,dc=net';
$cfgSources['public_ldap'] = array(
    'title' => _("Public and personal - LDAP"),
    'type' => 'ldap',
    'params' => array(
        'server' => 'localhost',
       'tls' => false,
        'root' => 'ou=' . $uid . ',ou=public_addressbook,' . $basedn,
        'bind_dn' => 'cn=' . $uid . ',ou=users,' . $basedn,
        'bind_password' => Auth::getCredential('password'),
//Modified by me! 24/12/2005    'dn' => array('cn', 'uid'),
        'dn' => array('uid'),
        'objectclass' => array('top',
                               'person',
                               'inetOrgPerson',
                               // 'calEntry',
                               'organizationalPerson'),
        'scope' => 'one',
        'charset' => 'utf-8',
        'version' => 3
    ),
    'map' => array(
        '__key' => 'dn',
        '__uid' => 'uid',
        'firstname' => 'givenname',
        'lastname' => 'sn',
        'name' => 'cn',
        'email' => 'mail',
        'homeAddress' => 'homepostaladdress',
        'homePhone' => 'homephone',
        'cellPhone' => 'mobile',
        'workPhone' => 'telephonenumber',
        'notes' => 'description',
        'website' => 'labeledURI',
        'pgpPublicKey' => 'object_pgppublickey',
        'smimePublicKey' => 'object_smimepublickey',

    ),
    'search' => array(
        'name',
        'email',
        'homePhone',
        'workPhone',
        'cellPhone',
        'homeAddress'
    ),
    'strict' => array(
        'dn',

    ),
    'public' => true,
    'readonly' => false,
    'admin' => array($uid),
    'export' => true
);



// First we need to get the uid.
$uid = Auth::getBareAuth();
$basedn = 'dc=bit,dc=net';
$cfgSources['personal_ldap'] = array(
    'title' => _("Private and personal - LDAP"),
    'type' => 'ldap',
    'params' => array(
        'server' => 'localhost',
       'tls' => false,
        'root' => 'ou=' . $uid . ',ou=personal_addressbook,' . $basedn,
        'bind_dn' => 'cn=' . $uid . ',ou=users,' . $basedn,
        'bind_password' => Auth::getCredential('password'),
//Modified by me! 24/12/2005    'dn' => array('cn', 'uid'),
        'dn' => array('uid'),
        'objectclass' => array('top',
                               'person',
                               'inetOrgPerson',
                               'organizationalPerson'),
        'scope' => 'one',
        'charset' => 'utf-8',
        'version' => 3
    ),
    'map' => array(
        '__key' => 'dn',
        '__uid' => 'uid',
        'firstname' => 'givenname',
        'lastname' => 'sn',
        'name' => 'cn',
        'email' => 'mail',
        'homeAddress' => 'homepostaladdress',
        'homePhone' => 'homephone',
        'cellPhone' => 'mobile',
        'workPhone' => 'telephonenumber',
        'notes' => 'description',
        'website' => 'labeledURI',
        'pgpPublicKey' => 'object_pgppublickey',
        'smimePublicKey' => 'object_smimepublickey',


    ),
    'search' => array(
        'name',
        'email',
        'homePhone',
        'workPhone',
        'cellPhone',
        'homeAddress'
    ),
    'strict' => array(
        'dn',

    ),
    'public' => true,
    'readonly' => false,
    'admin' => array($uid),
    'export' => true
);

// End LDAP check.
}


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



More information about the turba mailing list