Hi,
I'm trying to build a small CalDav server.
I use OpenBSD-5.2-current
I connect to the CalDav Server from an Imac using ical following these
instructions :
http://radicale.org/user_documentation/#ical
This works great without authentication (i.e type = None # in the
/etc/radicale/config file)
Now i read :
more /usr/local/share/doc/pkg-readmes/radicale-0.7
so, i want to enable authentication, what i have done :
htpasswd -c -s users wesley
htpasswd -s users bruno
# Now in the /etc/radicale/config i put:
type = htpasswd
# Restart radicale
/etc/rc.d/radicale restart
# Test port 5232 is ok :
netstat -anf inet | grep 5232 # this give me :
tcp 0 0 *.5232 *.*
LISTEN
I test it from ical :
tail /var/log/radicale # give me :
2012-09-06 09:45:02,516 - INFO: PROPFIND request at / received
2012-09-06 09:45:02,519 - DEBUG: Request headers:
{'CONTENT_LENGTH': '139',
'CONTENT_TYPE': 'text/xml',
'GATEWAY_INTERFACE': 'CGI/1.1',
'HTTP_CONNECTION': 'close',
'HTTP_DEPTH': '0',
'HTTP_HOST': '192.168.0.26:5232',
'HTTP_USER_AGENT': 'DAVKit/4.0.3 (732.2); CalendarStore/4.0.4 (997.7);
iCal/4.0.4 (1395.7); Mac OS X/10.6.8 (10K549)',
'PATH_INFO': '/',
'QUERY_STRING': '',
'REMOTE_ADDR': '192.168.0.18',
'REMOTE_HOST': '',
'REQUEST_METHOD': 'PROPFIND',
'SCRIPT_NAME': '',
'SERVER_NAME': 'openbsd52.my.domain',
'SERVER_PORT': '5232',
'SERVER_PROTOCOL': 'HTTP/1.1',
'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.7.3',
'wsgi.errors': <open file '/dev/null', mode 'w' at 0x8716ae38>,
'wsgi.file_wrapper': <class wsgiref.util.FileWrapper at 0x7de0bf8c>,
'wsgi.input': <socket._fileobject object at 0x8717fd6c>,
'wsgi.multiprocess': False,
'wsgi.multithread': True,
'wsgi.run_once': False,
'wsgi.url_scheme': 'http',
'wsgi.version': (1, 0)}
2012-09-06 09:45:02,519 - DEBUG: Sanitized path: /
2012-09-06 09:45:02,520 - DEBUG: Request content:
<?xml version="1.0" encoding="utf-8"?>
<x0:propfind xmlns:x0="DAV:">
<x0:prop>
<x0:principal-collection-set/>
</x0:prop>
</x0:propfind>
2012-09-06 09:45:02,520 - INFO: Checking rights for collection owned by
nobody
2012-09-06 09:45:02,521 - INFO: Anonymous user refused
2012-09-06 09:45:02,521 - DEBUG: Answer status: 401 Unauthorized
2012-09-06 09:45:02,797 - INFO: PROPFIND request at / received
2012-09-06 09:45:02,800 - DEBUG: Request headers:
{'CONTENT_LENGTH': '139',
'CONTENT_TYPE': 'text/xml',
'GATEWAY_INTERFACE': 'CGI/1.1',
'HTTP_AUTHORIZATION': 'Basic d2VzbGV5OmNvbmNlcHQ=',
'HTTP_CONNECTION': 'close',
'HTTP_DEPTH': '0',
'HTTP_HOST': '192.168.0.26:5232',
'HTTP_USER_AGENT': 'DAVKit/4.0.3 (732.2); CalendarStore/4.0.4 (997.7);
iCal/4.0.4 (1395.7); Mac OS X/10.6.8 (10K549)',
'PATH_INFO': '/',
'QUERY_STRING': '',
'REMOTE_ADDR': '192.168.0.18',
'REMOTE_HOST': '',
'REQUEST_METHOD': 'PROPFIND',
'SCRIPT_NAME': '',
'SERVER_NAME': 'openbsd52.my.domain',
'SERVER_PORT': '5232',
'SERVER_PROTOCOL': 'HTTP/1.1',
'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.7.3',
'wsgi.errors': <open file '/dev/null', mode 'w' at 0x8716ae38>,
'wsgi.file_wrapper': <class wsgiref.util.FileWrapper at 0x7de0bf8c>,
'wsgi.input': <socket._fileobject object at 0x8717fd6c>,
'wsgi.multiprocess': False,
'wsgi.multithread': True,
'wsgi.run_once': False,
'wsgi.url_scheme': 'http',
'wsgi.version': (1, 0)}
2012-09-06 09:45:02,800 - DEBUG: Sanitized path: /
2012-09-06 09:45:02,801 - DEBUG: Request content:
<?xml version="1.0" encoding="utf-8"?>
<x0:propfind xmlns:x0="DAV:">
<x0:prop>
<x0:principal-collection-set/>
</x0:prop>
</x0:propfind>
2012-09-06 09:45:02,801 - INFO: Checking rights for collection owned by
nobody
2012-09-06 09:45:02,801 - INFO: wesley refused
2012-09-06 09:45:02,801 - DEBUG: Answer status: 401 Unauthorized
Any idea ?
Thank you very much for your help.
Regards,
Wesley MOUEDINE ASSABY
www.mouedine.net