[turba] Help w/ Distribution Lists in LDAP

Lee lee at disinfo.com
Sat May 10 19:09:47 PDT 2003


Hey All,
We were running turba 1 and just upgraded to 1.2 (addressbook info is 
stored in ldap), and are looking to add distribution list support. Im 
having trouble find documentation explaining what needs to be modified 
to allow for distribution lists. Can anyone give me a breif rundown of 
what I need to do in both turba and with our ldap schema to enable 
distribution list support?

Thanks,
Lee


CONFIG FILES:


#
# config/sources.php
#

$vdomain = strtolower(preg_replace('|^mail\.|i', '', 
$_SERVER['HTTP_HOST']));
$usermail=Auth::getAuth();
$uid = preg_replace('|@.*|i', '', $usermail);
$pass=Auth::getCredential('password');

/*      PRIVATE ADDRESS BOOK      */

$cfgSources['private'] = array(
        'title' => 'Personal Addressbook for ' . $uid,
        'type' => 'ldap',

        'params' => array(
            'server' => 'server.com',
            'port' => 389,
            'root' => 'ou=addressbook,uid=' . $uid. 
',ou=users,dc=organization,dc=com',

            /*BIND AS USER NOT AS ROOT    */

            'bind_dn' => 'uid=' . $uid . 
',ou=users,dc=organization,dc=com',
            'bind_password' => $pass,
            'dn' => array('cn'),
            'objectclass' => array( 'addressBookEntry' ),
            'encoding' => 'utf8',
            'version' => 3,
            'filter' =>  ''
        ),

        'map' => array(
            '__key' => 'dn',
            'name' => 'cn',
            'email' => 'mail',
            'homePhone' => 'homephone',
            'workPhone' => 'telephonenumber',
            'cellPhone' => 'mobile',
            'homeAddress' => 'postaladdress',
            'notes' => 'description'
        ),

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

        'strict' => array(
            'dn'
            ),

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


#
# config/attributes.php
#

$attributes['name'] = array(
     'type' => 'text',
     'desc' => _("Name")
);
$attributes['alias'] = array(
     'type' => 'text',
     'desc' => _("Alias")
);
$attributes['email'] = array(
     'type' => 'email',
     'desc' => _("Email")
);
$attributes['title'] = array(
     'type' => 'text',
     'desc' => _("Title")
);
$attributes['company'] = array(
     'type' => 'text',
     'desc' => _("Company")
);
$attributes['homeAddress'] = array(
     'type' => 'multiline',
     'desc' => _("Home Address")
);
$attributes['workAddress'] = array(
     'type' => 'multiline',
     'desc' => _("Work Address")
);
$attributes['homePhone'] = array(
     'type' => 'phone',
     'desc' => _("Home Phone")
);
$attributes['workPhone'] = array(
     'type' => 'phone',
     'desc' => _("Work Phone")
);
$attributes['cellPhone'] = array(
     'type' => 'phone',
     'desc' => _("Cell Phone")
);
$attributes['fax'] = array(
     'type' => 'phone',
     'desc' => _("Fax")
);
$attributes['notes'] = array(
     'type' => 'multiline',
     'desc' => _("Notes")
);



More information about the turba mailing list