On Fri, 2007-08-03 at 15:14 +0100, Ricardo Botelho de Sousa wrote:
> Hi,
> 
>  Thanks for the quick answer!
> On Fri, 2007-08-03 at 14:08 +0200, Julien Kerihuel wrote:
> > On Fri, 2007-08-03 at 12:25 +0100, Ricardo Botelho de Sousa wrote:
> > > Hello!
> > > 
> > >  Has anyone tried setting up a profile against an Exchange 2007 server
> > > (version 8.0.685.0)?
> > >  I just compiled libmapi and I am getting the following error:
> > > ProcessNetworkProfile    : MAPI_E_INVALID_PARAMETER (0x80070057)
> > 
> > It sounds like ProcessNetworkProfile encountered problems while
> > fetching/extracting parts of the Exchange email address. 
> > 
> > Do you have any accentuated characters in you Organization or
> > Organization Unit names? 
> Hum,
>  looking at the about box it says: 
> /o=corpPT/ou=AG-COM/cn=Recipients/cn=ricardo-j-sousa
> 
> So it seems to have only ASCII chars. Is there any debug mode for
> mapiprofile?

The patch provided in attachment adds --debuglevel option to
mapiprofile. Once patched and installed, run mapiprofile --create again
with --debuglevel=5 and look for x500 lines. If the output lacks of
relevant information, I'll add some debugging strings to IProfAdmin
interface.

> 
> > We had successful reports from users testing OC against Exchange 2007. 
> > From their feedback, it is needed to:
> > 
> > 1. Create Public Folder Store on Exchange Server (needed by Outlook
> > 2003).
> 
> There are Public Folders in use here, although not available on the
> webmail.
> 
> > 2. Remove possible MAPI restrictions that would have been defined
> 
> Hum. I haven't added them explicitly... I can go check with the
>  production guys, but I'd need more information (what is a MAPI
>  restriction and how would I recognize one if it bit me?)

These are restrictions on MAPI clients version allowed to connect to
Exchange. MAPI restrictions are part of a possible further problem.

The mapi profile creation problem you encounter is anyway not linked to
the explanations provided above.

A wireshark capture between mapiprofile and Exchange would be really
helpful in this case. If you can send one on my email, I'll may be able
to get more relevant information.

Regards,
Julien.

-- 
Julien Kerihuel
[EMAIL PROTECTED]
OpenChange Project Manager

GPG Fingerprint: 0B55 783D A781 6329 108A  B609 7EF6 FE11 A35F 1F79

Index: mapiprofile.c
===================================================================
--- mapiprofile.c	(revision 227)
+++ mapiprofile.c	(working copy)
@@ -22,6 +22,8 @@
 
 #include <libmapi/libmapi.h>
 #include <samba/popt.h>
+#include <param.h>
+#include <param/proto.h>
 
 #include <sys/stat.h>
 #include <sys/types.h>
@@ -333,6 +335,7 @@
 	const char	*profdb = NULL;
 	const char	*profname = NULL;
 	const char	*attribute = NULL;
+	const char	*opt_debug = 0;
 	uint32_t	nopass = 0;
 
 	enum {OPT_PROFILE_DB=1000, OPT_PROFILE, OPT_ADDRESS, OPT_WORKSTATION,
@@ -340,7 +343,7 @@
 	      OPT_DELETE_PROFILE, OPT_LIST_PROFILE, OPT_DUMP_PROFILE, 
 	      OPT_DUMP_ATTR, OPT_PROFILE_NEWDB, OPT_PROFILE_LDIF, 
 	      OPT_PROFILE_SET_DFLT, OPT_PROFILE_GET_DFLT, OPT_PATTERN,
-	      OPT_NOPASS};
+	      OPT_NOPASS, OPT_DEBUG};
 
 	struct poptOption long_options[] = {
 		POPT_AUTOHELP
@@ -362,6 +365,8 @@
 		{"list", 'l', POPT_ARG_NONE, NULL, OPT_LIST_PROFILE, "list existing profiles in the database"},
 		{"dump", 'd', POPT_ARG_NONE, NULL, OPT_DUMP_PROFILE, "dump a profile entry"},
 		{"attr", 'a', POPT_ARG_STRING, NULL, OPT_DUMP_ATTR, "print an attribute value"},
+		{"debuglevel", 0, POPT_ARG_STRING, 0, OPT_DEBUG, "set debug level"},
+		{""},
 		{ NULL }
 	};
 
@@ -371,6 +376,9 @@
 
 	while ((opt = poptGetNextOpt(pc)) != -1) {
 		switch(opt) {
+		case OPT_DEBUG:
+			opt_debug = poptGetOptArg(pc);
+			break;
 		case OPT_PROFILE_LDIF:
 			ldif = poptGetOptArg(pc);
 			break;
@@ -427,6 +435,11 @@
 			break;
 		}
 	}
+	
+	/* debug options */
+	if (opt_debug) {
+		lp_set_cmdline("log level", opt_debug);
+	}
 
 	/* Sanity check on options */
 	if (!profdb) {

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
devel mailing list
[email protected]
http://mailman.openchange.org/listinfo/devel

Reply via email to