all groups > dotnet security > september 2007 >
You're in the

dotnet security

group:

How to specify in coding if accessing "Writable Domain Controller"


How to specify in coding if accessing "Writable Domain Controller" Pucca
9/25/2007 7:22:02 AM
dotnet security:
Hi, I'm using vs2005 and .net 2 for a C# windows application. I looked
around on the net but couldn't get a good description on what is a writable
Domain Controller. I know there are read only DC so is writable just means
one can update the AD database like adding users or groups.... In AD Users
and Computers, when one selects to connect to domain controller, a dialog
windows displays with the option of connecting to "Any Writable Domain
Controller". If I want to do that in my application, how do I specify this
when I define a DirectoryContext or when I use
DomainController.GetDomainController(DC)? Thank you.
--
Re: How to specify in coding if accessing "Writable Domain Control Pucca
9/25/2007 9:40:02 AM
Nope, haven't seen the Writable DC in the option. If all DC are writable now
then that answers my question. Thank you Joe.
--
Thanks.


[quoted text, click to view]
Re: How to specify in coding if accessing "Writable Domain Controller" Joe Kaplan
9/25/2007 10:41:03 AM
I'm not sure if the flags for DC locater for specifying a writable DC have
been exposed yet in .NET. Perhaps they will be exposed in .NET 3.5? I'm
not sure.

Note that until Windows Server 2008 is released and there are actually
read-only domain controllers out there, all AD servers are writable.

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
[quoted text, click to view]

AddThis Social Bookmark Button