Re: Retreiving MailBox Rights from AD using .Net



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...

.



Relevant Pages

  • Re: Everyone
    ... Null session shares and guesst access are the only ways to connect ... >>Joe Richards Microsoft MVP Windows Server Directory Services ...
    (microsoft.public.win2000.active_directory)
  • Re: is the AD LDAP interface domain trust aware?
    ... Joe Richards Microsoft MVP Windows Server Directory Services ...
    (microsoft.public.windows.server.active_directory)
  • Re: LDAP changePassword always returns error
    ... >>Joe Richards Microsoft MVP Windows Server Directory Services ... >>>>Microsoft Windows Script Host Version 5.6 ...
    (microsoft.public.security)
  • Re: active directory rebuilding indicies
    ... SDE, Active Directory Core ... > Joe Richards Microsoft MVP Windows Server Directory Services ...
    (microsoft.public.windows.server.active_directory)
  • Re: ADAM user object limitations?
    ... Joe Richards Microsoft MVP Windows Server Directory Services ...
    (microsoft.public.windows.server.active_directory)