Setup Mozilla Sunbird for Kolab 2
From Kolab wiki
UPDATE: Kolab 2.2 no longer uses the webdav module. SyncKolab is the only easy option for Sunbird/Lightning and Kolab 2.2
Revised for Kolab 2.1 and Thunderbird 2.0.x/Lightning 0.3.1/0.5
NOTE: This does not use kolab calendaring!
Section 1.
This how-to assumes the default kolab installation in /kolab, if installed elsewhere, please make changes accordingly.
As root you'll making the same exact changes on these two files (make backups first):
httpd.conf.template and apache.conf
Their default locations are: /kolab/etc/kolab/templates/httpd.conf.template & /kolab/etc/apache.conf
1. Open up httpd.conf.template in your favorite editor and find the following lines:
<Directory "/kolab/var/kolab/www/freebusy">
#Dav On
2. Remove the hash mark in front of Dav On to enable webdav so it will look like:
<Directory "/kolab/var/kolab/www/freebusy">
Dav On
3. Farther down the file you will see the webcalendar section. Copy the whole directory section and paste it below the webcalender section.
4. Change the webcalendar directory name to whatever you want, in this example I used dir4cals.
Below is what the directory section should resemble:
<Directory "/kolab/var/kolab/www/dir4cals">
Dav On
AllowOverride None
Options None
# Disallow for everyone as default
Order allow,deny
<Limit GET PUT LOCK UNLOCK PROPFIND HEAD OPTIONS>
Allow from all
Require valid-user
</Limit>
AuthType Basic
AuthName "Kolab Freebusy (webdav)"
LDAP_Server 127.0.0.1
LDAP_Port 389
Base_DN "dc=syourdomain,dc=biz"
# temporary : openldap changed from 2.1.9 to 2.1.12
# anonymous bind with dn is nolonger allowed
# unfortunately mod_auth_ldap seems to exactly do so
# need to investigate ...
Bind_DN "cn=nobody,cn=internal,dc=yourdomain,dc=biz"
Bind_Pass "o0yFP+tkXO/ksdfsdfsdfhsjfsjfhfffffffsss5"
UID_Filter "(|(uid=%u)(mail=%u))"
DavMinTimeout 600
AddDefaultCharset Off
</Directory>
5. Save your changes
6. Open up apache.conf file in your favorite editor. follow steps 2 through 5.
7. Change the owner of the webdav lock directory from kolab to kolab-n
The command is: chown -R kolab-n: /kolab/var/kolab/www/locks
8. Create your cal directory in /kolab/var/kolab/www
The command is: mkdir /kolab/var/kolab/www/dir4cals
9. Change the owner of the calendar directory to kolab
The command is: chown -R kolab: /kolab/var/kolab/www/dir4cals
10. Run kolabconf
The command is: /kolab/sbin/kolabconf
11. Restart apache, probably not necessary, but I always do it.
The command is: /kolab/bin/openpkg rc apache restart
12. Copy a (preferably populated) calendar ics file to your calendar directory.
example cp /home/user/yourcal.ics /kolab/var/kolab/www/dir4cals
13. Change the owner of the calendar file to kolab-n
chown -R kolab-n: /kolab/var/kolab/www/dir4cals/yourcal.ics
14. Set permissions on the ics file to at least -rw-r-----
Chmod 0640 /kolab/var/kolab/www/dir4cals/yourcal.ics
Note: i haven't played around with permissions on this file - mine is set at 640 and works properly, ymmv.
Section II.
Thunderbird Lightning 0.3.1 and 0.5
1 Click on the Calendars tab. It is located in the left hand pane of Thunderbird, below the actual calendar.
2. Click New...
3. Choose on the Network, Click Next
4. Choose iCalendar(ICS)
5. Enter your kolab server url/calendardirectory/calendarfile
example: http://kolabsvr.mydomain.biz/dir4cals/yourcal.ics Click Next
6. You should be prompted for your kolab username and password.
7. Name your calendar and choose a color, Click Next
That should do it.
