|
|
|
date: Fri, 04 Apr 2008 07:51:09 +0200,
group: microsoft.public.platformsdk.active.directory
back
Re: Find any AD Server/Domain Controller within local Network
Are you logged in with an account from the domain where you are trying to
locate a DC? If not, then you have to be if you don't want to supply a
domain hint in your call. If you are logged in with a domain account, then
there is something wrong. Getting NLTEST and using it to diagnose would
probably be a good idea.
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
--
"Benjamin Kalytta" wrote in message
news:uX6KEP3lIHA.5080@TK2MSFTNGP02.phx.gbl...
> Hi Joe,
>
> I made a call like this:
>
> DsGetDcName(0, 0, 0, 0, DS_GC_SERVER_REQUIRED, &pdci)
>
> The returned error is ERROR_NO_SUCH_DOMAIN.
>
> In Network Settings I changed the DNS/Nameserver to the address of the DNS
> Server where DC is also running on. What could be the Problem here?
>
> Regards,
> Benjamin Kalytta
>
date: Sun, 6 Apr 2008 09:18:38 -0500
author: Joe Kaplan
|
|