ADsOpenObject() is failed with 8007203a

Navaneeth R 21 Reputation points
2021-03-18T02:49:21.307+00:00

Hello,

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://192.168.0.1/CN=username,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?

Thanks!

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
    2021-03-18T07:51:23.94+00:00

    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: 192.168.2.53

    1.Open ldp.exe.
    79093-ldp1.png

    2.Connect DC IP address with 389.
    79094-ldp2.png

    3.Bind with Current credential.
    79101-ldp3.png

    4.We can see connect and bind is successful.
    79017-ldp4.png

    5.We can query information below.
    79102-ldp5.png

    6.See much information.
    79018-ldp6.png

    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
    2021-03-29T06:28:13.317+00:00

    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