Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Mon, 19 Sep 2005 01:35:02 -0700,    group: microsoft.public.exchange2000.active.directory.integration        back       


Retreiving MailBox Rights from AD using .Net   
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...
date: Mon, 19 Sep 2005 01:35:02 -0700   author:   EyalS

Re: Retreiving MailBox Rights from AD using .Net   
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...
date: Mon, 19 Sep 2005 11:03:19 -0400   author:   Joe Richards [MVP]

Re: Retreiving MailBox Rights from AD using .Net   
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...
>
date: Tue, 20 Sep 2005 00:18:03 -0700   author:   EyalS

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...
>>
date: Mon, 03 Oct 2005 01:21:29 -0400   author:   Joe Richards [MVP]

Re: Retreiving MailBox Rights from AD using .Net   
Hello,
i have the same problem. Inside the properties of user A you can give
an other user B FULL ACCESS to the Mailbox within the Exchange-Properties.
I just don't know the name of the tab in the properties of the AD user.

So we have many AD-users and i don't know how to get the information 
of mailbox user who except themselve has given authorization to there
mailbox.

In other words:
Can I export the information woho has FULL ACCESS of the mailboxes of everey
user within AD.

Friendly regards
DanielS1973
date: Fri, 7 Oct 2005 22:06:16 +0200   author:   DanielS1973

Re: Retreiving MailBox Rights from AD using .Net   
Sorry, i forgot to say that i have Win2000 Server und Exchange 2000
date: Fri, 7 Oct 2005 22:07:55 +0200   author:   DanielS1973

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us