473,395 Members | 1,653 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Reverse Mailbox Rights from DirectoryServices & CDOEXM

TM
Greetings, I've more or less figured out how to get a list of users who
have access to a particular user's mailbox (code below), but I'm
stumped as to how to get a list of users that a particular user has
access to. In other words, if I'm finding out info for user jdoe, I
can get a list of users who have access to jdoe's mailbox, but I can't
get a list of mailboxes that jdoe can access. MUCH thanks to any who
can help!

Blessings,
TM

I'm using C# .NET, DirectoryServices, and CDOEXM. I've also tried
webdav to no avail.

Existing code:

DirectoryEntry de = new
DirectoryEntry("LDAP://10.0.0.42/CN=Users,DC=mysub,DC=mydom,DC=com","Administrator" ,"password",
System.DirectoryServices.AuthenticationTypes.Secur e);

DirectoryEntry user = de.Children.Find("CN=Administrator", "user");
CDOEXM.IMailboxStore mailbox = (CDOEXM.IMailboxStore)
user.NativeObject;

System.Array ary = (System.Array) mailbox.Delegates;
Response.Write(ary.Length + "<br>");
for (int i=0; i<ary.Length; i++)
Response.Write(ary.GetValue(i) + "<br>");

Nov 16 '05 #1
1 2262
were you ever able to solve this problem? I'm facing the same situation, please let me know!
Jul 25 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: HitSkiper | last post by:
Trying to use the code below to move a users mailbox but keep getting the helpfull "Catastrophic error" message on the line "objMailbox.MoveMailbox(sMDB)". Anyone have a clue what i am doing wrong?...
2
by: Vincent Nguyen | last post by:
Hi, I have problem create exchange 2000 mailbox using CDOEXM in my Web Service application. The error I got was "Catastrophic failure". Here is the code that I have: DirectoryEntry user =...
0
by: Ouaes Jamali | last post by:
I am using C# and ASP.Net to create users and mailboxes. I can create an user without any problems but the code Blows up when i try to create a mailbox. Here is the code snippet is am using ...
0
by: TM | last post by:
Hello all - I'm hoping you will be able to shed some light on this little dilemma ;) I would like to know how to retrieve Mailbox Rights information from DirectoryServices (or if this isn't the...
0
by: TM | last post by:
Greetings, I've more or less figured out how to get a list of users who have access to a particular mailbox (code below), but I'm stumped as to how to get a list of mailboxes that a particular user...
0
by: Flens | last post by:
Hi, I have code that worked until we upgraded from Exchange 2000 to Exchange 2003 and I now get a catastrophic failure at CreateMailbox (COMException (0x080004005)) I have updated the...
5
by: Michael | last post by:
Hello, I've created an ASP web page where users in our organization can create Active Directory computer accounts. The web page is running on a Server 2003 SP1 IIS 6 installation. The...
0
by: Suman | last post by:
Hello Group, I am relatively new to .NET. I am trying to create a user in AD and a corresponding email account in the exchange server from an ASP.NET, C# application. ...
0
by: arjen1984 | last post by:
I want to create a mailbox-enabled mailbox. First i have used the toturial from microsoft: http://support.microsoft.com/kb/313114 Then my homeMDB string was incorrect. I saw an article , link:...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.