Re: Retreiving MailBox Rights from AD using .Net
- From: "Joe Richards [MVP]" <humorexpress@xxxxxxxxxxx>
- Date: Mon, 03 Oct 2005 01:21:29 -0400
The CDOEXM interfaces are not exposed in the managed framework so probably yes, I don't know, I don't do .NET programming.
-- Joe Richards Microsoft MVP Windows Server Directory Services www.joeware.net
EyalS wrote:
Thanks. This did help. However, I had to use the invoke method as follow. Is this right?:
DirectoryEntry userEntry = new DirectoryEntry("LDAP://...........");
SecurityDescriptor objSD = (SecurityDescriptor)userEntry.InvokeGet["MailboxRights"].Value;
"Joe Richards [MVP]" wrote:
You should retrieve the mailbox sd via the mailboxrights property of the IMailboxStore interface. The msExchMailboxSecurityDescriptor is not guaranteed to be authoritative for the account, it is a reflection of the actual MAPI perms in the store.
See
http://support.microsoft.com/kb/310866/
-- Joe Richards Microsoft MVP Windows Server Directory Services www.joeware.net
EyalS wrote:
Hello,
I need to get mail box rights defined for a user through code.
I tried by getting the "msExchMailboxSecurityDesciptor" from the directory entry properties but with no success:
DirectoryEntry userEntry = new DirectoryEntry("LDAP://...........");
SecurityDescriptor objSD = (SecurityDescriptor)userEntry.Properties["msExchMailboxSecurityDesciptor"].Value;
However, I get a null value. Any suggestions or Is there any other way to do so?
Thanks...
.
- Prev by Date: Re: Grayed Out Users In Distribution Groups
- Next by Date: Re: max. number of SMTP Adresses attached to user object?
- Previous by thread: Re: Grayed Out Users In Distribution Groups
- Next by thread: Re: Retreiving MailBox Rights from AD using .Net
- Index(es):
Relevant Pages
|