[SOGo] cant get carddav to work

2013-06-24 Thread Götz Reinicke - IT Koordinator
Hi,

Sogo Webfrontend and caldav (thunderbird/apple ical) are working fine
(beside the pop up problem in the frontend with firefox).

Also subscribing to and using calendars with ios (iPhone / iPad) is fine.

Now we have the request to support carddav as well and I was adding the
config from the wiki and changed the servername and added the ssl
certificate pathes.

retarting the httpd shows no errors, but accessing the server from apple
ical i do get errors in the server logs:


aa.bb.cc.dd - - [24/Jun/2013:09:58:48 GMT] OPTIONS /SOGo/:8843/
HTTP/1.1 404 34/0 0.002 - - 0

aa.bb.cc.dd - - [24/Jun/2013:09:58:48 +0200] OPTIONS /SOGo/%3A8843/
HTTP/1.1 404 34 - AddressBook/6.1.3 (1091) CardDAVPlugin/200
CFNetwork/520.5.1 Mac_OS_X/10.7.5 (11G63)


In apple Adressbook i have enterd the serversname and the serverpath is
discovered as /SOGo/:8843/

May be somewon can help me getting that up and running?


Thanks for any hint and suggestion! Regards Götz

-- 
Götz Reinicke
IT-Koordinator

Tel. +49 7141 969 82 420
Fax  +49 7141 969 55 420
E-Mail goetz.reini...@filmakademie.de

Filmakademie Baden-Württemberg GmbH
Akademiehof 10
71638 Ludwigsburg
www.filmakademie.de

Eintragung Amtsgericht Stuttgart HRB 205016

Vorsitzender des Aufsichtsrats: Jürgen Walter MdL
Staatssekretär im Ministerium für Wissenschaft,
Forschung und Kunst Baden-Württemberg

Geschäftsführer: Prof. Thomas Schadt



smime.p7s
Description: S/MIME Kryptografische Unterschrift


Re: [SOGo] cant get carddav to work

2013-06-24 Thread Der PCFreak

Hallo Götz,

folgende Config läuft bei mir:

Ich habe die IP des Servers durch 10.11.12.13 und den hostnamen durch 
your.domain.tld

ersetzt. Ich denke für die Apple-Geräte ist der Part mit

RewriteRule ^/.well-known/caldav$ /SOGo/dav/ [R]

sehr wichtig.

Unbedingt beachten, dass keine Leerzeichen etc. vergessen werden.

Die SSL-Zertifikate habe ich in /etc/apache2/mods-enabled/ssl.conf mit

###added for SOGo
SSLCertificateFile /etc/apache2/ssl/server.crt
SSLCertificateKeyFile /etc/apache2/ssl/server.key
listen 8443

eingebunden.

Gruß aus der Oberpfalz

Peter

### Addressbook SSL on IP ###
IfModule mod_ssl.c
VirtualHost *:8443
 ServerName your.domain.tld

 SSLEngine On
 #Cipher Order Fix for BEAST Attack Vector
 SSLHonorCipherOrder on
 SSLCipherSuite !aNULL:!eNULL:!EXPORT:!DSS:!DES:RC4-SHA:RC4-MD5:ALL

 #SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire
 FilesMatch \.(cgi|shtml|phtml|php)$
  SSLOptions +StdEnvVars
 /FilesMatch
 Directory /usr/lib/cgi-bin
  SSLOptions +StdEnvVars
 /Directory

 BrowserMatch MSIE [2-6] \
 nokeepalive ssl-unclean-shutdown \
 downgrade-1.0 force-response-1.0
 # MSIE 7 and newer should be able to use keepalive
 BrowserMatch MSIE [17-9] ssl-unclean-shutdown

 # Enable .well-known to make sure clients find CardDav
 RewriteEngine On
 RewriteRule ^/.well-known/caldav$ /SOGo/dav/ [R]
 RewriteRule ^/principals/users/(.*)$ /proxy/$1 [PT]
 RewriteRule ^/SOGo/(.*)$ /SOGo/$1 [env=REMOTE_HOST:%{REMOTE_ADDR},PT]
 #ProxyRequests Off
 #SetEnv proxy-nokeepalive 1
 ProxyPreserveHost On
 ProxyPassInterpolateEnv On

 #for CardDAV
 ProxyPass /proxy   http://127.0.0.1:2/SOGo/dav/ interpolate
 ProxyPass /SOGohttp://127.0.0.1:2/SOGo interpolate
 ProxyPass /http://127.0.0.1:2/SOGo/dav/ interpolate

Proxy http://127.0.0.1:2
 RequestHeader set x-webobjects-server-port 8443
 RequestHeader set x-webobjects-server-name your.domain.tld
 RequestHeader set x-webobjects-server-url https://your.domain.tld;
 RequestHeader set x-webobjects-server-protocol HTTP/1.0
 RequestHeader set x-webobjects-remote-host %{REMOTE_HOST}e 
env=REMOTE_HOST

 AddDefaultCharset UTF-8
 Order allow,deny
 Allow from all
/Proxy
ErrorLog /var/log/apache2/your.domain.tld-ssl-error.log
LogLevel error
CustomLog /var/log/apache2/your.domain.tld-ssl-access.log combined
/VirtualHost
/IfModule


On 24.06.2013 10:02, Götz Reinicke - IT Koordinator wrote:

Hi,

Sogo Webfrontend and caldav (thunderbird/apple ical) are working fine
(beside the pop up problem in the frontend with firefox).

Also subscribing to and using calendars with ios (iPhone / iPad) is fine.

Now we have the request to support carddav as well and I was adding the
config from the wiki and changed the servername and added the ssl
certificate pathes.

retarting the httpd shows no errors, but accessing the server from apple
ical i do get errors in the server logs:


aa.bb.cc.dd - - [24/Jun/2013:09:58:48 GMT] OPTIONS /SOGo/:8843/
HTTP/1.1 404 34/0 0.002 - - 0

aa.bb.cc.dd - - [24/Jun/2013:09:58:48 +0200] OPTIONS /SOGo/%3A8843/
HTTP/1.1 404 34 - AddressBook/6.1.3 (1091) CardDAVPlugin/200
CFNetwork/520.5.1 Mac_OS_X/10.7.5 (11G63)


In apple Adressbook i have enterd the serversname and the serverpath is
discovered as /SOGo/:8843/

May be somewon can help me getting that up and running?


Thanks for any hint and suggestion! Regards Götz



--
users@sogo.nu
https://inverse.ca/sogo/lists