Replace print to stderr by standard logging

Also log the actual traceback when _run_as_daemon raises an exception

Signed-off-by: Julien Kerihuel <j.kerihuel@openchange.org>
Don't hardcode 'ocsmanager.ini' as the config file

We can now have a development.ini without touching the packaged config file

Signed-off-by: Julien Kerihuel <j.kerihuel@openchange.org>
Use HTTP/1.1 instead of 1.0

HTTP/1.0 just doesn't work with NTLMAuthHandler,
or at least it is not possible to use curl + HTTP/1.0 to test ocsmanager.

Signed-off-by: Julien Kerihuel <j.kerihuel@openchange.org>
Revamped development.ini

Signed-off-by: Julien Kerihuel <j.kerihuel@openchange.org>
Sleep when waiting for NTLMAuthHandler socket

Signed-off-by: Julien Kerihuel <j.kerihuel@openchange.org>
Fix client_id deletion and _read_environment logs

Signed-off-by: Julien Kerihuel <j.kerihuel@openchange.org>
Handler KeyError in ntlm_env_setter

Signed-off-by: Julien Kerihuel <j.kerihuel@openchange.org>
Unquote body before passing it to ElementTree

Signed-off-by: Julien Kerihuel <j.kerihuel@openchange.org>
Use SamDB.domain_dn instead of home rolled stuff

Signed-off-by: Julien Kerihuel <j.kerihuel@openchange.org>
new readme

Signed-off-by: Julien Kerihuel <j.kerihuel@openchange.org>
doc fixes

Signed-off-by: Julien Kerihuel <j.kerihuel@openchange.org>
debug logging

Signed-off-by: Julien Kerihuel <j.kerihuel@openchange.org>
Add a basic logger for NTLMAuthHandler use.

This might need to be polished to include other info, but it is better
than what we had before (nothing).

Signed-off-by: Julien Kerihuel <j.kerihuel@openchange.org>
Add a default SAMBA_HOST to ocsmanager.ini

Signed-off-by: Julien Kerihuel <j.kerihuel@openchange.org>
Add curl example to test the freebusy service

Signed-off-by: Julien Kerihuel <j.kerihuel@openchange.org>
Now passes mem context when saving message.

Signed-off-by: Julien Kerihuel <j.kerihuel@openchange.org>
Fixed Outlook's message sending issue which was random.

Signed-off-by: Julien Kerihuel <j.kerihuel@openchange.org>
better logging for rpcproxy

 - Pass RPCPROXY_LOGLEVEL from the apache config to the actual application
 - Wrap the application in a try .. except and log tracebacks

Signed-off-by: Julien Kerihuel <j.kerihuel@openchange.org>
use maxsplit=1 when parsing cookies

cookie values can contain '=' ...

Signed-off-by: Julien Kerihuel <j.kerihuel@openchange.org>
Abort _handle_negotiate() if samba isn't available

Not sure how outlook will react to the HTTP 500 error,
but this is certainly better than looping forever.

Signed-off-by: Julien Kerihuel <j.kerihuel@openchange.org>