LDAP query can't run from Intune enrolled client

Allan Reese 6 Reputation points
2024-11-27T07:18:38.9433333+00:00

Hi

For several years I have had VBA code running in Outlook clients. Some of the code makes LDAP queries.

I have had a traditionally AD/DC setup which right now is hybrid. If the LDAP query is initiated from a computer registrered in our AD the query will run perfectly and give me correct answers. When the query is initiated from a computer enrolled in Intune (and thereby not listed in AD) the query can't run. The error is:

"The specified domain either does not exist or could not be contacted"

The 2 computers are on the same LAN and having same DNS settings and query is made from an Outlook client where the same user is logged in.

With regard to the 2 compuer's environment variables they share domain values.

How come the query can't run from the Intune enrolled computer?

Outlook
Outlook
A family of Microsoft email and calendar products.
4,119 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,276 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Crystal-MSFT 50,241 Reputation points Microsoft Vendor
    2024-11-28T06:31:16.1933333+00:00

    @Allan Reese, Thanks for posting in Q&A. For the Intune enrolled device, is it Microsoft Entra joined device or a Microsoft Entra hybrid joined device?

    If it is a Microsoft Entra joined device, it is not joined AD domain and it is unable to do LDAP query due to authentication issue.

    Please check the above information and if there's any update, feel free to let us know.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.