question

Arpna-3737 avatar image
0 Votes"
Arpna-3737 asked shashishailaj answered

Can we connector to Azure AD using a protocol based library

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
})
```

azure-active-directoryazure-ad-graph
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

shashishailaj avatar image
0 Votes"
shashishailaj answered

@Arpna-3737 ,

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://docs.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


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.