Can we connector to Azure AD using a protocol based library

Arpna 131 Reputation points


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.

const ldap = require('ldapjs');

const client = ldap.createClient({
    url: ['ldap://', 'ldap://']

client.on('error', (err) => {
  // handle connection error
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
14,771 questions
0 comments No comments
{count} votes

Accepted answer
  1. ShashiShailaj-MSFT 7,466 Reputation points Microsoft Employee

    @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 .

    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