Fix potential problems uncovered with gcc -Wextra.

Bug: http://tracker.openchange.org/issues/421

Signed-off-by: Jelmer Vernooij <jelmer@openchange.org>
Error out rather than segfault when incomplete session is passed to emsmdb_transaction_wrapper.

Bug: http://tracker.openchange.org/issues/422

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Check for ndr_pull_mapi2k7_response failing.

Bug: http://tracker.openchange.org/issues/420

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Convert ndr errors to NTSTATUS rather than just returning NT_STATUS_UNSUCCESSFUL.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Add a debugging script to find and attach to Samba process running openchange
in multi-forked environment
Update Samba4 version to 4.1.4 release
debugoc: Pass logger in runGdb()

Otherwise we get undefined for logger.

Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
Merge pull request #5 from kamenim/master

debugoc: Pass logger in runGdb()
filter empty strings from ps -U 0
Merge pull request #7 from blaxter/master

filter empty strings from ps -U 0
Patch from Olly Betts <olly@survex.com>: Issue #426
rename load_interfaces samba symbol to openchange_load_interfaces
to avoid externally visible symbol conflicts with libsmbclient in Debian.
Patch from Olly Betts <olly@survex.com>: Issue #427
Add Archive-At header support to exchange2mbox tool
Patch from Olly Betts <olly@survex.com>: Issue #428

Add additional checks on memory allocation failures
Revert "mapistore: Bypass Embedded message creation for Tasks in Outlook"

This reverts commit a82625ee40bef7fc7fa663e56c0ff10553974e42.

Initial commit was totally wrong and it is the backend that
needs to handle 'not-implemented' conditions gracefully.
Merge branch 'master' of https://github.com/openchange/openchange into merge-openchange-master

Conflicts:
	mapiproxy/libmapiproxy/openchangedb_message.c
emsmdb/oxcfxics: Don't abort when we get a 'not yet seen' idset

We should find what to do in such situation, but aborting here
doesn't look good for end users.

Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
oxcfxics: Nitpic - use NS_STATUS_IS_ERR() for error checking

Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com>
emsmdbp_object: Nitpic - explicite check for MAPISTORE_SUCCESS when getting object properties

Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com>
utils/genpass: Use correct input parameter to create password

Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com>
mapiproxy: Initial iplementation for more flexible mechanizm for OpenChange to crash

At the moment we few places where OpenChange just calls abort().
1. Places where we don't yet what to do - i.e. not implemented functionality
   Aborting in those situations unfortunately brakes OpenChange process.
   At the same time Samba process is running fine and it is hard for
   people to realise what is going (eg. they need to restart Samba)
2. Unexpected conditions. We certainly should abort() in such situations.
   For instance, we end up handling bogus data in a swtich.
   Clearly something is wrong in such cases and we better abort
   rather than overwritting data silently (and unpredictibly)

Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com>