Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 31st, 2007, 10:50 AM
Authorized User
 
Join Date: Oct 2007
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default Active Directory Access

Hi,

How do I add Names from the Active Directory to a ComboBox?

Thanks.
 
Old October 31st, 2007, 11:20 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Well first you need to connect to Active Directory, then you need to search for the Names you want, then you add them to the ComboBox.

Which bit of this are you stuck on exactly?

/- Sam Judson : Wrox Technical Editor -/
 
Old October 31st, 2007, 11:24 AM
Authorized User
 
Join Date: Oct 2007
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Am I connecting correctly??

Server: testServer

AD Domain: myDomain.co.uk

Domain Object: myGroup

Then I want to get all Name properties from within myGroup.

So the path something like this...

testServer >> myDomain.co.uk >> myGroup >> GroupA, GroupB, GrouypC...

Here's my code to connect...

DirectoryEntry ent = new DirectoryEntry(LDAP://testServer/OU=myGroup,DC=co.uk);

Is this correct?

Thanks.
 
Old October 31st, 2007, 11:36 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

I'm no expert on Active Directory, but I think usually its DC=myDomain,DC=co,DC=uk


/- Sam Judson : Wrox Technical Editor -/





Similar Threads
Thread Thread Starter Forum Replies Last Post
Linking Access to Active Directory Brendan Bartley Access 2 November 28th, 2007 05:42 AM
Access to Active Directory pcyoung Access 4 August 17th, 2007 08:32 AM
Active Directory TCSE305 Windows Server 1 November 22nd, 2006 01:26 AM
About Active Directory apalmero VB How-To 1 April 8th, 2005 04:06 PM
About Active Directory apalmero VS.NET 2002/2003 1 November 9th, 2003 01:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.