Hi, If you can't get enough info from System.DirectoryServices, then maybe the Win32 function DsGetDomainControllerInfo() would be of some help here. Using it, you can get back a DS_DOMAIN_CONTROLLER_INFO_2 structure with all sorts of information on the DC. I know it's a pain to go through P/Invoke, but still. Sometimes, there's nothing better than getting down to the metal. :-)
-Trey ---------------------------- Author of "Accelerated C# 2008" and "Accelerated C# 2005" http://www.amazon.com/Accelerated-C-2008-Trey-Nash/dp/1590598733 > -----Original Message----- > From: Discussion of advanced .NET topics. [mailto:ADVANCED- > [EMAIL PROTECTED] On Behalf Of Mont Rothstein > Sent: Wednesday, July 09, 2008 6:34 PM > To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > Subject: [ADVANCED-DOTNET] Directory Server/Domain discovery > > I am looking for a way to get information about the domain/directory > server > that the current user is logged in under. I need more than the short > name. > I need the long name and/or the server's name/address. > The problem I am trying to overcome is two domains on the same network > with > the same short name (yes I know, can't change it, customer's network). > > I have the server name/address of one of the domain directory servers > and I > need to determine if the user is logged into that one or a different > one. > > Any ideas? > > Thanks, > -Mont > > =================================== > This list is hosted by DevelopMentorR http://www.develop.com > > View archives and manage your subscription(s) at > http://discuss.develop.com =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com