Last post Jun 09, 2006 11:59 AM by potatoking
May 13, 2006 02:36 AM|potatoking|LINK
I would like to create a public folder, but after searching some forum, i had to MailEnableGroup Allusers and Admins first, i use the following XML in my code. But i always get Access is Denied error.
Any hints? Thanks.
<?xml version="1.0" encoding="utf-8" ?>
- <execute namespace="Exchange Provider" procedure="MailEnableGroup" impersonate="1">
<before source="data" destination="executeData" mode="merge" />
<after source="executeData" destination="data" mode="insert" />
- <securityContext impersonate="1" trusted="1">
<basic username="DOMAIN\admin_Reseller.com" password="********" />
May 16, 2006 05:58 PM|jjstreic|LINK
Can you post the result of this run?
May 17, 2006 11:09 AM|potatoking|LINK
- <errorContext description="Access is denied." code="0x80070005" executeSeqNo="1">
<errorSource namespace="Exchange Provider" procedure="MailEnableGroup" />
This only happens in code invoke via Web. provtest returns ok.
May 26, 2006 03:34 PM|Conrad|LINK
Is this a custom web application that you created?
If so, then when you submit the request via the MPF Client COM Object, the web application submitting the request (the idenity of the Application Pool), must have rights to submit a request with Callers Credentials (just put that user identity in the MPFClientAccts
security group to make this easy on yourself). Then when you submit the request, you must pass a username and password that has permissions to perform the request that you're submitting.
If you don't embed the credentials, then the web application identity will need the permission to perform the target request.
Also, since you're calling the provider directly, you'll need to submit the call as a trusted request.
Jun 09, 2006 11:59 AM|potatoking|LINK
Turns out i use MailEnableGroup in Managed Exchange NS instead of Exchange Provider NS works...
don't know why though. I've deliberately change "Private" to "Public" in the Managed Exchange NS. Still no luck.