@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 or upvote 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