C# + Directoryservice + Data Grid

  • Thread starter Thread starter Justin Rich
  • Start date Start date
J

Justin Rich

I would like to find a way to use the data grid to hook in to the AD. Was
looking at the choices for data sources and i didnt see a way to do it, but
figured i would ask to see if i missed something

using C#, connecting to the AD with System.Directoryservice and would like
to use a data grid to show and manipulate this data.

Any idea how this can be done?

Thank
Justin
 
I would like to find a way to use the data grid to hook in to the AD. Was
looking at the choices for data sources and i didnt see a way to do it, but
figured i would ask to see if i missed something

using C#, connecting to the AD with System.Directoryservice and would like
to use a data grid to show and manipulate this data.

Any idea how this can be done?

You would have to write your own .NET data provider for AD - not
something I'd want to take on right now! :-)

Seriously - the AD stuff is not exactly the same as a database - you
can't just get a data set full of users.

There's two ways around this:

1) You *can* query AD using an ADO command object, to some degree (it
won't work for everything, but it works for some more basic things).
Check the newsgroup archives (mostly the microsoft.public.adsi.general
NG) or the Yahoo! group on ADSI
(http://groups.yahoo.com/group/ADSIANDDirectoryServices/) for messages
describing this method (there are TONS of messages already!)

2) You might want to ask around in the microsoft.public.adsi.general
newsgroups - I think I recall at least one ADSI expert wanted to
create such a "data provider" for AD (not sure if he ever did)

Marc
================================================================
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
 
Back
Top