Talk About Network

Google





Software > ADSI General > DsGetDcName fai...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 5281 of 5437
Post > Topic >>

DsGetDcName failures.

by =?Utf-8?B?TmljayBCdXJraXR0?= <nick.burkitt@[EMAIL PROTECTED] > May 23, 2008 at 09:43 AM

I have a VC++ application that calls DsGetDcName() to determine the sites 
(and domains) of servers in the network.  I have found that DsGetDcName() 
fails rather often, and the reason(s) is not obvious. The typical error
code 
is RPC_S_SERVER_UNAVAILABLE, although RPC_E_ACCESS_DENIED is popular, as 
well. Often simply retrying the call will result in success (even for
"access 
denied"), but usually it does not.

I'm passing a NETBIOS name as the first parameter and requesting a
DNS-style 
name by setting flag DS_RETURN_DNS_NAME. If the initial call fails with 
ERROR_NO_SUCH_DOMAIN, I set the DS_FORCE_REDISCOVERY flag and repeat the 
call. If the call fails for any other reason, I wait a bit (200 ms, I 
believe), and repeat the call. Ten strikes and you're out. 

What can cause DsGetDcName() to fail (excluding the obvious situation
where 
the server is down or otherwise not accessible)?

Thanks,

-Nick
 




 4 Posts in Topic:
DsGetDcName failures.
=?Utf-8?B?TmljayBCdXJraXR  2008-05-23 09:43:00 
RE: DsGetDcName failures.
jetan@[EMAIL PROTECTED]   2008-05-26 09:18:39 
RE: DsGetDcName failures.
jetan@[EMAIL PROTECTED]   2008-05-27 07:43:41 
Re: DsGetDcName failures.
Gerry Hickman <gerry66  2008-05-31 17:25:58 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Thu Jan 8 19:29:06 PST 2009.