[kronolith] Re: struggling getting free/busy SOLVED
Ben Chavet
ben at horde.org
Wed Feb 23 07:27:15 PST 2005
> Ben,
>
> There are probably a lot of us are trying to accomplish similar, some more -
> some less, hackishly ;-). I would appreciate your keeping the list informed.
> Or, if you feel it is off topic or there could be a lack of interest, me
> personally.
>
> Thanks,
>
> ed
Here is how I got it working. This assumes that you already have the
freebusy URL's in your ldap directory for all of the necessary users.
I'm also just showing the relevant parts of my config files. Hope it
helps.
--Ben
horde/config/hooks.php:
=======================
if (!function_exists('_prefs_hook_from_addr')) {
function _prefs_hook_from_addr($name = null)
{
if (is_null($name)) {
$name = Auth::getAuth();
}
if (!empty($name)) {
return $name . '@example.com';
}
return '';
}
}
horde/turba/config/sources.php
==============================
$cfgSources['ldap'] = array(
'title' => _("CALMIT"),
'type' => 'ldap',
'params' => array(
'server' => 'ldap-server.example.com',
'port' => 389,
'root' => 'ou=Users,dc=example,dc=com',
'bind_dn' => 'cn=username,ou=DSA,dc=example,dc=com',
'bind_password' => 'ldap-password',
'sizelimit' => 200,
'filter' => 'mail=*',
'dn' => array('cn'),
'objectclass' => array('top',
'person',
'organizationalPerson','inetOrgPerson'),
'charset' => 'iso-8859-1',
// check if all required attributes for an entry are set and add them
// if needed.
'checkrequired' => false,
// string to put in missing required attributes.
'checkrequired_string' => ' ',
'version' => 3
),
'map' => array(
'__key' => 'dn',
'name' => 'displayName',
'email' => 'mail',
'workPhone' => 'telephonenumber',
'cellPhone' => 'mobile',
'office' => 'roomNumber',
'employeeType' => 'employeeType',
'pgpPublicKey' => 'userCertificate',
'freebusyUrl' => 'calFBURL',
),
'search' => array(
'name',
'email',
'workPhone',
'cellPhone',
'office',
'employeeType'
),
'strict' => array(
'dn',
),
'public' => true,
'readonly' => true,
'admin' => array(),
'export' => true
};
horde/kronolith/config/prefs.php
================================
$_prefs['search_abook'] = array(
'value' => 'a:2:{i:0;s:8:"localsql";i:1;s:4:"ldap";}',
'locked' => false,
'shared' => false,
'type' => 'implicit',
'desc' => _("Choose the address books to search for free/busy URLs:")
);
More information about the kronolith
mailing list