A
A
AlexChubukov2019-08-19 17:03:25
Active Directory
AlexChubukov, 2019-08-19 17:03:25

Why can't CD receive data from the workstation?

I am writing a C++ application that collects information about computers in Active Directory using the ADSI API. Deployed a small virtual network: a workstation (WIndows 10 pro for workstations) and a domain controller (Windows server 19) are virtual machines (VirtualBox). When trying to connect to a workstation, the function returns an error "ERROR_BAD_NETPATH". I tried everything I could: turned on all the sharing options, turned off the firewall, all computers are pinged and the traceroute utility gives the path. I also tried various types of virtual machine connections: NAT, NAT network, network bridge. It still gives a network error.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
akelsey, 2019-08-19
@akelsey

When trying to connect to a workstation, the function returns an error

Well, still, probably not to the workstation, but to the domain controller, where the name of the workstation is involved in the call (because since there is ADSI, then all this is stored in ntds.dit)
So leave the workstations alone -) and see what not so on the domain controller, or you have not figured out the principle and if you are trying to find ntds.dit on a workstation, this is a long time.

2
20ivs, 2019-08-20
@20ivs

all computers are pinged and the traceroute utility returns the path.

this is not enough. DNS needs to work properly. all machines, and even more so domain controllers, must be accessible by name.

S
Subarist248, 2019-08-20
@Subarist248

I just clarify))) And the PC is joined to the domain, they generally know about its existence at least at the level of "register the address of the nearest CD in DNS" ???

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question