ADsOpenObject() is failed with 8007203a

Navaneeth R 21 Reputation points


ADsOpenObject() is failed with error code "8007203a" (The server is not operational).

When I call ADsOpenObject(lpszPathName, lpszUserName, lpszPassword, dwReserved, riid, **ppObject), it is failed with "8007203a", whereas the lpszPathName is like "LDAP://,CN=users,DC=AD_domain,DC=com"

If I replace with Domain controller's hostname instead of IP address like "LDAP://server01/CN=username,CN=users,DC=AD_domain,DC=com", then it succeeds.

As the target machine is hosted in Azure, we can't provide the domain controller hostname.

And my questions are,
Why ADsOpenObject is failing when we provide IP address?
Is there any alternative way to bind the objects using Domain Controller's IP address?


Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,623 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,233 questions
0 comments No comments
{count} votes

Accepted answer
  1. Daisy Zhou 21,276 Reputation points Microsoft Vendor

    Hello @Navaneeth R ,

    Thank you for posting here.

    1.Based on the description above, what tool did you use to query the information?
    2.Did you call the query on the DC or on the domain-joined machine?
    3.Did you connect with 389 or 636?

    Meanwhile, would you please check if you can query on DC or on one domain-joined amchine as below?

    For example:

    My domain is a.local.

    On DC, IP address:

    1.Open ldp.exe.

    2.Connect DC IP address with 389.

    3.Bind with Current credential.

    4.We can see connect and bind is successful.

    5.We can query information below.

    6.See much information.

    Tip:Ldp is built into Windows Server 2008. It is available if you have the AD DS server role installed. To start ldp, click Start, click Run, type ldp and then click OK.

    Best Regards,
    Daisy Zhou

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Daisy Zhou 21,276 Reputation points Microsoft Vendor

    Hello @Navaneeth R ,

    Thank you for your update and accepting my reply as answer. I am very glad that the information is helpful and the problem has been solved.
    As always, if there is any question in future, we warmly welcome you to post in this forum again. We are happy to assist you!

    Best Regards,
    Daisy Zhou

    1 person found this answer helpful.
    0 comments No comments