Click here to Skip to main content
15,914,013 members
Home / Discussions / C#
   

C#

 
GeneralRe: please help me!, delete error of the image files(attached source code) Pin
Dr.Walt Fair, PE18-May-10 18:12
professionalDr.Walt Fair, PE18-May-10 18:12 
QuestionMy LCD doesnt show anything? [modified] Pin
THeKiNG2018-May-10 14:54
THeKiNG2018-May-10 14:54 
AnswerRe: My LCD doesnt show anything? Pin
Yusuf18-May-10 15:34
Yusuf18-May-10 15:34 
GeneralRe: My LCD doesnt show anything? Pin
THeKiNG2018-May-10 15:39
THeKiNG2018-May-10 15:39 
AnswerRe: My LCD doesnt show anything? Pin
Luc Pattyn18-May-10 15:37
sitebuilderLuc Pattyn18-May-10 15:37 
GeneralRe: My LCD doesnt show anything? Pin
THeKiNG2018-May-10 15:40
THeKiNG2018-May-10 15:40 
AnswerRe: My LCD doesnt show anything? Pin
THeKiNG2019-May-10 9:36
THeKiNG2019-May-10 9:36 
QuestionQuery users in Security Tab from an AD member Pin
Scolo18-May-10 11:10
Scolo18-May-10 11:10 
Hello,
I've got some shared mailboxes in AD. They are inside an OU. An example name could be: CN=Mailbox1, OU=Spain;

I'm getting properties of these mailboxes via C#.

I've searched and searched but i'm not able to list the users in the Security tab.

I'm able to get all the OU users. From these users i can get the members, the owner...

But i'm not able to list the users that are in the Security Tab (When you open one of these mailboxes in AD, you go to the Security Tab, all the users listed in there).

I don't need the permission type (read, write...). I only need to list these users.

I'm unable to find any help.

Thanks and kind regards.



My code is the following:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.DirectoryServices;
using System.DirectoryServices.ActiveDirectory;
using System.Data;

namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string OuDn;
OuDn = "OU=Mailboxes,OU=Site,DC=prueba,DC=net";
try
{
DirectoryEntry directoryObject = new DirectoryEntry("LDAP://" + OuDn);
foreach (DirectoryEntry child in directoryObject.Children)
{
Console.WriteLine(child.Name);


child.Close();
child.Dispose();
}
directoryObject.Close();
directoryObject.Dispose();
}
catch (DirectoryServicesCOMException e)
{
Console.WriteLine("An Error Occurred: " + e.Message.ToString());
}
Console.ReadLine();
}

}
}
QuestionOpening IE7 without menus or an address bar Pin
Melanie Peterson18-May-10 11:04
Melanie Peterson18-May-10 11:04 
AnswerRe: Opening IE7 without menus or an address bar Pin
Not Active18-May-10 11:19
mentorNot Active18-May-10 11:19 
GeneralRe: Opening IE7 without menus or an address bar Pin
Melanie Peterson18-May-10 11:25
Melanie Peterson18-May-10 11:25 
GeneralRe: Opening IE7 without menus or an address bar Pin
Not Active18-May-10 11:30
mentorNot Active18-May-10 11:30 
QuestionDataGridView DataSource: bindingSource or dataSet? Pin
mprice21418-May-10 10:49
mprice21418-May-10 10:49 
AnswerRe: DataGridView DataSource: bindingSource or dataSet? Pin
Henry Minute18-May-10 12:42
Henry Minute18-May-10 12:42 
QuestionMessage Closed Pin
18-May-10 10:24
Member 333565318-May-10 10:24 
Questiondisable sound Pin
behzadcp18-May-10 9:14
professionalbehzadcp18-May-10 9:14 
AnswerRe: disable sound Pin
Not Active18-May-10 10:03
mentorNot Active18-May-10 10:03 
AnswerRe: disable sound Pin
Henry Minute18-May-10 10:12
Henry Minute18-May-10 10:12 
GeneralRe: disable sound Pin
harold aptroot18-May-10 13:02
harold aptroot18-May-10 13:02 
QuestionConnecting to Data in a SQL Server Express Database. [modified] Pin
Darrall18-May-10 8:14
Darrall18-May-10 8:14 
AnswerRe: Connecting to Data in a SQL Server Express Database. Pin
venym7618-May-10 9:41
venym7618-May-10 9:41 
GeneralRe: Connecting to Data in a SQL Server Express Database. Pin
Darrall18-May-10 10:58
Darrall18-May-10 10:58 
AnswerRe: Connecting to Data in a SQL Server Express Database. Pin
Henry Minute18-May-10 10:02
Henry Minute18-May-10 10:02 
GeneralRe: Connecting to Data in a SQL Server Express Database. Pin
Darrall18-May-10 11:02
Darrall18-May-10 11:02 
QuestionPresentation Help..... Pin
AmbiguousName18-May-10 6:26
AmbiguousName18-May-10 6:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.