Can we connector to Azure AD using a protocol based library

Arpna 131 Reputation points
2021-09-22T14:17:44.087+00:00

Hello,

We are planning to integrate with Azure AD and have explored Graph API.

We were thinking if we can connect to Azure AD using a protocol based implementation something like this.

http://ldapjs.org/client.html

const ldap = require('ldapjs');

const client = ldap.createClient({
    url: ['ldap://127.0.0.1:1389', 'ldap://127.0.0.2:1389']
});

client.on('error', (err) => {
  // handle connection error
})
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,365 questions
0 comments No comments
{count} votes

Accepted answer
  1. Shashi Shailaj 7,581 Reputation points Microsoft Employee
    2021-10-06T14:20:06.577+00:00

    @Arpna ,

    No you would not be able to connect to azure AD in that way . Azure AD does not provide LDAP protocol based connectivity . It can only be access via REST Api . As you have already explored graph API , you can use the same for connecting to azure AD . LDAP protocol based libraries may not work here in this case. I think , you were trying to find similar details about websockets which was answered https://learn.microsoft.com/en-us/answers/questions/563723/does-azure-ad-allows-socket-based-connection-from.html .

    I think guidance would be same to use the endpoints mentioned in my other answer.

    Hope this helps. Should you still have any query , feel free to let us know.

    ----------------------------------------------------------------------------------------------------------------------------------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators
    0 comments No comments

0 additional answers

Sort by: Most helpful