Brad Hards [Mon, 25 Jul 2011 09:43:06 +0000 (09:43 +0000)]
Tagging 0.11 release
Brad Hards [Thu, 7 Jul 2011 04:35:38 +0000 (04:35 +0000)]
Patch from Sean Finney:
Okay, here's something that gets pretty darned close, probably "close enough"
for the next release. With this patch (along with the previous, already
committed patches), one can create a profile that uses kerberos (and even the
existing kerberose credentials cache for SSO users). to create such a profile:
mapiprofile -c -P kerbtest --username <username> --nopass -k yes --address <exchangeserver>
afterwards, if you run openchangeclient -m -p kerbtest, you will see the
fetched kerberos tickets in your klist output. Ideally this could be
completely automagic and not require a -k flag at all (nor the username), but
the fix for that would be a bit more complicated and is left for a future
exercise. In the meantime this solution will not get in the way and isn't too
bad, at least IMHO :)
Addresses ticket #336.
Thanks for the patch!
Brad Hards [Wed, 6 Jul 2011 23:38:51 +0000 (23:38 +0000)]
Bump to current (alpha16) version of Samba.
Brad Hards [Sat, 2 Jul 2011 04:09:15 +0000 (04:09 +0000)]
minor update to build script.
Brad Hards [Sun, 19 Jun 2011 00:47:21 +0000 (00:47 +0000)]
libmapi: Improve unicode support
Patch from Milan Crha
Resolves bug #269.
Brad Hards [Sat, 11 Jun 2011 05:41:59 +0000 (05:41 +0000)]
mapiproxy: update to reflect recent samba API changes.
Brad Hards [Tue, 7 Jun 2011 23:22:16 +0000 (23:22 +0000)]
update to match Samba 4 API change
samba change is http://git.samba.org/?p=samba.git;a=commit;h=
907cdb5de7f16a2540299aeba211bf2a5ae6fafe
Brad Hards [Sun, 5 Jun 2011 23:11:36 +0000 (23:11 +0000)]
libmapi: Fix some string handling issues
Resolves ticket #359
Problem report and patch by Sean Finney. Thanks very much.
Brad Hards [Wed, 1 Jun 2011 22:01:32 +0000 (22:01 +0000)]
exchange2ical: prevent segfault on missing property
Patch by Sean Finney. Thanks very much!
Julien Kerihuel [Wed, 1 Jun 2011 11:37:46 +0000 (11:37 +0000)]
Patch from Sean Finney <seanius@seanius.net>:
Add authservice keyword to IDL for proper service lookup when doing Kerberos
Julien Kerihuel [Tue, 31 May 2011 14:37:40 +0000 (14:37 +0000)]
Fix cast
Julien Kerihuel [Tue, 31 May 2011 14:36:34 +0000 (14:36 +0000)]
Patch from Sean Finney <seanius@seanius.net>:
Fix ppszServer value in RfrGetNewDSA
Thanks for the fix!
Brad Hards [Fri, 27 May 2011 04:57:13 +0000 (04:57 +0000)]
Update loadparm stuff to use global context.
Without this we can't set the log level (i.e. debug output) any more
(after http://git.samba.org/?p=samba.git;a=commit;h=
958368efd0f0db4a0e77f6a374d3c7b5056105c6)
Resolves ticket #360
Brad Hards [Fri, 27 May 2011 04:14:43 +0000 (04:14 +0000)]
Fix leak of server resource in Logoff().
Problem investigation and patch by Milan Crha. Thanks very much!
Resolves bug #361.
Brad Hards [Wed, 25 May 2011 07:23:10 +0000 (07:23 +0000)]
Fix case where exchange2mbox will crash if "From" is missing
Patch by David McCullough (david_mccullough@mcafee.com) - thanks very much!
Brad Hards [Wed, 25 May 2011 01:18:24 +0000 (01:18 +0000)]
Correct IDL for ExceptionInfo
Problem report and patch by Sean Finney - thanks very much.
Minor additional changes by me.
Resolves bug #349
Brad Hards [Thu, 19 May 2011 23:13:57 +0000 (23:13 +0000)]
Implement RopSetSynchronizationGuid
We already had the IDL. This adds the libmapi implementation and mapitest.
Note that this ROP is probably not supported on Exchange 2010 (since it
requires an input handle that has to come from RopSynchronizationOpenAdvisor
and that ROP isn't supported on Exchange 2010). Tested on Exchange 2007.
Brad Hards [Thu, 19 May 2011 04:57:37 +0000 (04:57 +0000)]
Add forgotten file from r2850.
Brad Hards [Thu, 19 May 2011 04:52:46 +0000 (04:52 +0000)]
Implement RopSynchronizationOpenAdvisor (0x83)
Includes IDL, client side library (libmapi) and
mapitest coverage.
This ROP is not supported on Exchange 2010. Testing
was successful on Exchange 2007 SP3. mapitest skips
this test for Exchange 2010.
Brad Hards [Fri, 13 May 2011 15:24:51 +0000 (15:24 +0000)]
buildsystem: fix some incomplete linkage
This shouldn't change behaviour, but it will make detecting linker
and dependency problems easier.
Brad Hards [Thu, 12 May 2011 08:45:48 +0000 (08:45 +0000)]
libmapi: partial fix for bug #336
This has some gross gcc pragma stuff to hide the deprecation
warning.
Brad Hards [Wed, 11 May 2011 09:27:26 +0000 (09:27 +0000)]
update properties list
This patch updates openchange to use the latest [MS-OXPROPS] document, and to provide MNID_STRINGS
Many thanks to Milan Crha and Sean Finney for their work (and patience) on this.
Resolves bug #355
Brad Hards [Tue, 10 May 2011 15:50:25 +0000 (15:50 +0000)]
build: remove workaround for Samba bug 8113
We can now build alpha15 and git master from the same
script again. We can't build trunk against alpha15 though.
Brad Hards [Tue, 10 May 2011 09:54:25 +0000 (09:54 +0000)]
Implement RopSynchronizationGetTransferState
We already had the IDL. This adds the libmapi and mapitest elements.
Brad Hards [Tue, 10 May 2011 07:18:40 +0000 (07:18 +0000)]
Implement RopSynchronizeOpenCollector
We already have the IDL. This adds the libmapi and mapitest parts.
Brad Hards [Mon, 9 May 2011 14:37:20 +0000 (14:37 +0000)]
libmapi: rename function to avoid conflict with samba
Brad Hards [Mon, 9 May 2011 14:15:09 +0000 (14:15 +0000)]
mapiprofile: avoid gcc 4.6 warnings.
Brad Hards [Mon, 9 May 2011 11:17:30 +0000 (11:17 +0000)]
blackbox: Allow us to work without mapiprofile in path.
Brad Hards [Sun, 8 May 2011 16:54:26 +0000 (16:54 +0000)]
ics: implement client side of SetLocalReplicaMidsetDeleted
Includes IDL, libmapi and mapitest.
Resolves #207
Brad Hards [Sun, 8 May 2011 14:52:21 +0000 (14:52 +0000)]
build: use symbolic name for dcerpc-server lib
Fixes task #339
Brad Hards [Sun, 8 May 2011 13:24:59 +0000 (13:24 +0000)]
mapiprofile: allow creating of new profiles again
fixes #357.
The problem is that we can't pass in anything other than decimal values.
Samba4 (ldb) was previously more tolerant, but no more.
Brad Hards [Wed, 4 May 2011 08:40:54 +0000 (08:40 +0000)]
update the property parser
I'm still checking the results, so not committing those results yet.
Brad Hards [Wed, 4 May 2011 02:47:43 +0000 (02:47 +0000)]
mapiproxy: update to match recent samba fixes.
Unfortunately this breaks compatibility with Samba4
alpha15.
Julien Kerihuel [Mon, 2 May 2011 16:14:27 +0000 (16:14 +0000)]
Patch from David McCullough <david_mccullough@mcafee.com>:
- handle different attachment types
- including attached emails,
- include mail headers
- speed up performance as much as possible
Thank you for this patch. Much appreciated!
Brad Hards [Mon, 2 May 2011 04:57:14 +0000 (04:57 +0000)]
build: update to support alpha 15.
This requires a hacky change to the build script, since the
previous change (adding disable-s3build) won't work in alpha15.
So we detect the kind of build, and adjust the configure line to
match. Ugly.
Brad Hards [Sun, 1 May 2011 08:27:04 +0000 (08:27 +0000)]
Don't build samba3 - we only need samba4.
The default changed in Samba, so we need to explicitly disable it now.
Brad Hards [Fri, 15 Apr 2011 00:51:03 +0000 (00:51 +0000)]
restore prefix when the "configure" script is run from make
This is a merge of r2460 from sogo branch (by Wolfgang).
Typo fix by me.
Jelmer Vernooij [Sun, 10 Apr 2011 17:21:07 +0000 (17:21 +0000)]
Clean up some more files in 'make clean'.
Brad Hards [Fri, 1 Apr 2011 00:21:03 +0000 (00:21 +0000)]
revert previous change. Didn't work quite as expected...
Brad Hards [Thu, 31 Mar 2011 21:59:35 +0000 (21:59 +0000)]
Specify outputdir for mapicodes_enum.h (like other files)
Brad Hards [Fri, 18 Mar 2011 05:50:27 +0000 (05:50 +0000)]
buildsystem: make samba detection logic more flexible.
Patch by Sean Finney - thanks very much!
Resolves bug #348.
Brad Hards [Thu, 17 Mar 2011 23:40:28 +0000 (23:40 +0000)]
libmapiserver: remove unused smb_iconv_convenience argument
Update callers to match.
Brad Hards [Thu, 17 Mar 2011 02:02:22 +0000 (02:02 +0000)]
nspi: use PropertyTagArray_r for minimal ids.
Julien Kerihuel [Wed, 16 Mar 2011 14:18:40 +0000 (14:18 +0000)]
Remove parameter naming for pointer on functions in mapistore backend header file.
Julien Kerihuel [Wed, 16 Mar 2011 14:15:10 +0000 (14:15 +0000)]
Add a pointer to mapistore backend context in fsocpf context initialization
Julien Kerihuel [Wed, 16 Mar 2011 10:33:43 +0000 (10:33 +0000)]
Add a public backend function allowing backends to retrieve a folder or message identifier given a URI.
FID / MID are Exchange related only but some backends may require it (such as fsocpf).
Julien Kerihuel [Wed, 16 Mar 2011 10:20:17 +0000 (10:20 +0000)]
Import rfc1738 version from Samba4 (originally from squid) into openchange and
modify it to include '.' as an escapable character.
This will prevent path traversal attacks within new fsocpf design (name based)
Julien Kerihuel [Wed, 16 Mar 2011 10:03:08 +0000 (10:03 +0000)]
Add mapistore folder object skeleton for mapistore python bindings
Julien Kerihuel [Wed, 16 Mar 2011 09:17:36 +0000 (09:17 +0000)]
Split mapistore bindings between module and object.
Prepare further commit implementing folders, messages etc.
Julien Kerihuel [Tue, 15 Mar 2011 11:58:59 +0000 (11:58 +0000)]
Remove NTLM_AUTH_IS_OK macro and replace it directly with dcesrv_call_authenticated
Brad Hards [Tue, 15 Mar 2011 09:38:09 +0000 (09:38 +0000)]
server: Update to use new samba4 APIs.
Patches by Andrew Tridgell. Thanks very much!
Brad Hards [Mon, 14 Mar 2011 08:37:23 +0000 (08:37 +0000)]
mapiproxy: Update to reflect samba4 API change.
Brad Hards [Tue, 8 Mar 2011 00:25:31 +0000 (00:25 +0000)]
libmapi: minor NSPI cleanup.
Brad Hards [Mon, 7 Mar 2011 03:02:41 +0000 (03:02 +0000)]
libmapi: fix documentation typos.
Brad Hards [Mon, 7 Mar 2011 01:45:18 +0000 (01:45 +0000)]
Add a little example of GAL fetching with restrictions
Brad Hards [Sun, 6 Mar 2011 22:43:59 +0000 (22:43 +0000)]
Revert change in r2716
This appears to cause problems on (at least) Ubuntu boxes. So we leave it
for the user to modify if needed.
Brad Hards [Thu, 3 Mar 2011 23:51:13 +0000 (23:51 +0000)]
OCPF: apidocs typo fix.
Brad Hards [Thu, 3 Mar 2011 23:07:44 +0000 (23:07 +0000)]
Add workaround for missing samba4 headers
Workaround (but not fix) for bug 350.
Brad Hards [Thu, 3 Mar 2011 22:04:38 +0000 (22:04 +0000)]
libmapiadmin: Adapt to API change in Samba4
Brad Hards [Thu, 3 Mar 2011 22:01:19 +0000 (22:01 +0000)]
build: Work around linker problem on Fedora 13/14 (probably gold related)
Brad Hards [Wed, 2 Mar 2011 03:56:40 +0000 (03:56 +0000)]
Implement unit tests for python properties handling.
Julien Kerihuel [Tue, 1 Mar 2011 17:10:55 +0000 (17:10 +0000)]
Only add TYPE and PidTagMessageClass if ctx->type exists
Julien Kerihuel [Tue, 1 Mar 2011 12:38:30 +0000 (12:38 +0000)]
- Make folderID uint64_t optional when writing ocpf
files. (ocpf_write_init called with folderID set to 0)
mapistore_fsocpf doesn't need to handle fmid on behalf of mapistore
anymore.
- only write type if PidTagMessageClass is specified/used
- do not write RECIPIENT block if recipients are NULL (e.g. folder)
Julien Kerihuel [Tue, 1 Mar 2011 08:25:09 +0000 (08:25 +0000)]
Reimplement ocpf_get_recipients and update its API
Reflect changes in mapistore_fsocpf backend
Julien Kerihuel [Mon, 28 Feb 2011 18:02:34 +0000 (18:02 +0000)]
Replace existing OCPF recipients implementation with a SRowSet
Use PT_UNICODE instead of PT_STRING8 for most string properties (except MNID_ID specifically tagged as PT_STRING8)
Use Recipient blocks instead of strings similar to:
RECIPIENT {
TO {
prop1 = propvalue
prop2 = propvalue2
};
CC {
[...]
};
BCC {
[...]
};
};
Works with internal/external recipients too.
Brad Hards [Mon, 28 Feb 2011 04:24:51 +0000 (04:24 +0000)]
mapistore: implement setprops for mstoredb backend.
This doesn't work correctly for PT_DOUBLE. Still working on that.
Brad Hards [Mon, 28 Feb 2011 04:22:56 +0000 (04:22 +0000)]
mapitest: Minor test clean ups for Some ResolveRecipients-related problems
Brad Hards [Mon, 28 Feb 2011 04:17:55 +0000 (04:17 +0000)]
pyopenchange: fix error string
Also use PT_I2 instead of PT_SHORT, to match convention in SPropValue_CTR.
Brad Hards [Sun, 27 Feb 2011 22:30:12 +0000 (22:30 +0000)]
mapistore: Remove lpcfg_server_role prototype imported from samba
This is now propery exported from samba, and no longer required here.
Brad Hards [Sun, 27 Feb 2011 22:28:48 +0000 (22:28 +0000)]
mapistore: Fix prototype for mapistore_backend_get_uri_by_name
This should have been part of r2702.
Brad Hards [Sun, 27 Feb 2011 10:04:58 +0000 (10:04 +0000)]
mapistore: trivial documentation fixes.
Brad Hards [Sun, 27 Feb 2011 06:56:23 +0000 (06:56 +0000)]
mapistore: rename get_fid_by_name to be get_uri_by_name in backend ops
This reflects actual usage / arguments. It might be possible to avoid
doing any backend operation for this (just use indexing DB instead), but
this allows us to check if the backend folder has been created by some
other process and would create a problem at next update. Not sure if that
is important yet.
Fix implementation of this backend function in FSOCPF backend.
Add unit testing of duplicate folder creation, which exercises this.
Brad Hards [Sun, 27 Feb 2011 01:35:56 +0000 (01:35 +0000)]
mapistore: Add a test of folder creation without a folder comment.
Brad Hards [Sun, 27 Feb 2011 00:12:33 +0000 (00:12 +0000)]
mapistore: add python bindings and tests for get_message_count()
Brad Hards [Sat, 26 Feb 2011 10:48:06 +0000 (10:48 +0000)]
mapistore: add closedir implementation
This isn't properly implemented in fsocpf yet.
Brad Hards [Sat, 26 Feb 2011 06:50:16 +0000 (06:50 +0000)]
mapistore: add unit tests and docs for debug getter function
Brad Hards [Fri, 25 Feb 2011 00:04:20 +0000 (00:04 +0000)]
libmapi: remove stray quote in doxygen configuration.
Julien Kerihuel [Thu, 24 Feb 2011 21:39:20 +0000 (21:39 +0000)]
Add sanity check, prevent from provisioning if mapistoredb_init failed or wasn't called
Fix unittest for mapistoredb
Brad Hards [Thu, 24 Feb 2011 21:37:52 +0000 (21:37 +0000)]
mapistore: update API documentation
Brad Hards [Thu, 24 Feb 2011 21:20:38 +0000 (21:20 +0000)]
mapistore: typo fixes.
Julien Kerihuel [Thu, 24 Feb 2011 21:13:10 +0000 (21:13 +0000)]
Split mapistoredb initialization into 2 different steps:
- mapistoredb_new: memory allocation and default names provisioning
- mapistore_init: fill in last bits if unset by user and call mapistore_init
- Add mapistoredb assessors on database_path, mapping_path and named_properties_database_path
- Update python bindings to reflect these changes + associated python scripts.
Brad Hards [Wed, 23 Feb 2011 22:58:16 +0000 (22:58 +0000)]
mapistore: trivial API docs fix.
Julien Kerihuel [Tue, 22 Feb 2011 17:10:54 +0000 (17:10 +0000)]
Fix debuglevel setter for mapistore Python bindings
Implement debuglevel getter for mapistore Python bindings
Brad Hards [Tue, 22 Feb 2011 00:07:33 +0000 (00:07 +0000)]
mapistore: parameterise out some variables in the provision test script
Also add a test for creating the Inbox context.
Brad Hards [Mon, 21 Feb 2011 02:19:57 +0000 (02:19 +0000)]
mapistore: implement get_folder_count() in mapistore python bindings
Also convert mapistore_strip_ns_from_uri to use const char**
Also add a test for mapistore rmdir(), which appears to have
some kind of reference count problem - it is causing a python
assert that indicates that something is still reachable.
Brad Hards [Sun, 20 Feb 2011 10:22:42 +0000 (10:22 +0000)]
pyopenchange: add test case for mapistore closedir()
Brad Hards [Sat, 19 Feb 2011 11:16:12 +0000 (11:16 +0000)]
fsocpf: Fix updating of properties
We can now either set properties where none exist, update existing property
values, and add properties to those that are already set.
Brad Hards [Fri, 18 Feb 2011 04:04:06 +0000 (04:04 +0000)]
fsocpf: Minor work on set properties
The problem is that we can't yet update .properties
Brad Hards [Thu, 17 Feb 2011 22:57:12 +0000 (22:57 +0000)]
mapistore: fix fsocpf backend opendir and set_props calls
The set_props call isn't right - it only works for the case where
the folder we are changing is the root of the context. I see
"Invalid OCPF context" error messages, although we do try to write
to the correct file.
Julien Kerihuel [Thu, 17 Feb 2011 17:51:39 +0000 (17:51 +0000)]
- Move libmapistore pc file into mapiproxy/libmapistore
- Complete make install process for waf libmapistore
- Add backends compilation and dependencies check to WAF libmapistore
Brad Hards [Thu, 17 Feb 2011 05:06:52 +0000 (05:06 +0000)]
mapistore: Add unit tests for opendir and setprops.
This currently breaks the tests (i.e. they fail / segfault).
Brad Hards [Thu, 17 Feb 2011 05:05:56 +0000 (05:05 +0000)]
buildsystem: cleanup mapistore coverage noise files on make clean / distclean
Brad Hards [Thu, 17 Feb 2011 03:59:00 +0000 (03:59 +0000)]
mapistore: add unit tests of creating a sub-folder.
Brad Hards [Thu, 17 Feb 2011 03:41:30 +0000 (03:41 +0000)]
Add unit tests for python mapistore / mapistoredb
Run it like:
./pyopenchange/unittest/unittest_mapistoredb.py
(or add -v for more verbose output)
Brad Hards [Thu, 17 Feb 2011 01:54:56 +0000 (01:54 +0000)]
mapistore: Turn down URI generation message to DEBUG level
Julien Kerihuel [Wed, 16 Feb 2011 23:27:54 +0000 (23:27 +0000)]
Install header files for libmapistore
Julien Kerihuel [Wed, 16 Feb 2011 23:04:06 +0000 (23:04 +0000)]
- Introduce preliminary WAF build system support for libmapistore
- Remove libmapi/libmapi.h references within libmapistore
- Add a WAF_BUILD_INC macros to config.mk.in so waf and autoconf
requirements with regards to includes gets similar
- Change libmapistore includes
Brad Hards [Wed, 16 Feb 2011 05:14:13 +0000 (05:14 +0000)]
mapistore: Move some function declarations from mapistore_common.h to mapistore_backend.h
Most of these require a backend context. mapistore_strip_ns_from_uri() doesn't
require one, but its currently only used from the backends, and that seems
the mostly use.
Also fix / move a bit of API documentation.
Brad Hards [Wed, 16 Feb 2011 04:30:31 +0000 (04:30 +0000)]
mapistore: Use __FUNCTION__ macro instead of the literal function name for talloc_named()
Just makes it easier to update / harder to forget to change the name.
Brad Hards [Wed, 16 Feb 2011 03:59:33 +0000 (03:59 +0000)]
Remove stray semicolons.